28 Dec 12, 07:02AM
Hi guys...i'm confused,how to make a script for throwing grenades and it saids "Fire In The Hole!" on chat?
Tell me how to make a script?
|
28 Dec 12, 07:02AM
Hi guys...i'm confused,how to make a script for throwing grenades and it saids "Fire In The Hole!" on chat?
28 Dec 12, 01:11PM
28 Dec 12, 07:03PM
(28 Dec 12, 01:11PM)888 Wrote:(28 Dec 12, 07:02AM)ONYX Wrote: Hi guys...i'm confused,how to make a script for throwing grenades and it saids "Fire In The Hole!" on chat? Is that for autoexec script or server script?
28 Dec 12, 07:25PM
[SELECT ALL] Code: alias altaction_8 [ attack; say "Fire In The Hole!" ]
28 Dec 12, 07:28PM
when i tried on autoexec it didn't work...
29 Dec 12, 12:55AM
how about left click?
I always want left click when i throw grenades... (28 Dec 12, 07:25PM)macm Wrote: when it saids "Fire In The Hole!" when we throw it not holding it...
Current version:
[cubescript] bind mouse1 [ if (checkalias onAttack) onAttack; attack ] onAttack = [ if (= (curweapon) 8) [ say "Fire in the hole!" ] ] [/cubescript] Next version: [cubescript]checkinit onAttack [ if (= (curweapon) $GRENADES) [ say "Fire in the hole!" ] ][/cubescript] If you want the message to appear as you let go of the grenade, no matter how long you have "cooked" it, you will need to tweak it a bit: Current version: [cubescript] bind mouse1 [ if (checkalias onAttack) onAttack; WEAPON_USED = (curweapon); attack; onrelease [ if (checkalias offAttack) offAttack ] ] offAttack = [ if (&& (alive) (= $WEAPON_USED 8)) [ say "Fire in the hole!" ] ] [/cubescript] Next version: [cubescript] bind mouse1 [ WEAPON_USED = (curweapon); attack; onrelease [ if (checkalias offAttack) offAttack ] ] offAttack = [ if (&& (alive) (= $WEAPON_USED $GRENADES)) [ say "Fire in the hole!" ] ] [/cubescript] As pointed out previously, these kind of scripts are considered spam by many players. I tend to use /ignore on people who use such scripts. (30 Dec 12, 06:37PM)Bukz Wrote: As pointed out previously, these kind of scripts are considered spam by many players. I tend to use /ignore on people who use such scripts. so it will not vote kicked when spamming? Can u tell me more How to put four word random when throwing grenades?
To randomize what is said when you throw a grenade, just change this portion of the script:
[cubescript]say "Fire in the hole!"[/cubescript] to: [cubescript]randomNadeMsg[/cubescript] Then add this to the bottom of the script: [cubescript]list_of_nade_msgs = [ "Random message #1" "Random message #2" "Random message #3" "Random message #4" ] randomNadeMsg = [ say (at $list_of_nade_msgs (rnd (listlen $list_of_nade_msgs))) ][/cubescript] I doubt you will be able to throw grenades often enough to get autokicked by the server for spamming, but you may annoy enough people that if someone were to attempt to votekick you that it would pass.
31 Dec 12, 05:15PM
lss gogogo
22 Jan 13, 01:43PM
And After that,How to put sounds in it?
22 Jan 13, 08:04PM
You can use the command voicecom or sound .
01 Feb 13, 08:00AM
put in where?
|
« Next Oldest | Next Newest »
|