Posts: 300
Threads: 20
Joined: Jan 2013
I want edit quicknadethrow script, my aim is to throw nades fast like with quicknadethrow but also knifing with the same bind when you current weapon is knife :)
Helps?
I dont know cubescripts, so i random edit this script i found in "scrpits" into my ac folder.
lol
alias quicknadethrow [
alias prevweapon (curweapon)
if (> (magcontent 6) 0) [
grenades
attack
] []
onrelease [ sleep 1 [ weapon $prevweapon ] ]
]
loop i 8 [ alias (concatword altaction_ $i) quicknadethrow ] // quick nade throw is default
alias altaction_4 [ zoom 1; onrelease [ zoom 0 ] ] // sniper
alias altaction_6 [ attack ] // grenade
Posts: 739
Threads: 20
Joined: Jun 2010
aint no contest when you put a man vs a machine
Posts: 205
Threads: 3
Joined: Jun 2010
Don't edit the original scripts.cfg, add a script in autoexec.cfg instead.
[cubescript]bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [quicknadethrow] [melee]]][/cubescript]
I think this is what you asked for.
Posts: 2,144
Threads: 38
Joined: Aug 2010
Wasn't quick stuff removed from the game?
I remember when people were all about that quick switch and something else (quick knife I think?)
Posts: 2,841
Threads: 44
Joined: Jun 2010
23 Feb 13, 08:32PM
(This post was last modified: 23 Feb 13, 08:32PM by #M|A#Wolf.)
(23 Feb 13, 08:22PM)ShadowFlameZ Wrote: Wasn't quick stuff removed from the game?
I remember when people were all about that quick switch and something else (quick knife I think?)
This isn't like the quick knife script. This one just runs the attack action only when you have the knife out.
Posts: 300
Threads: 20
Joined: Jan 2013
23 Feb 13, 08:58PM
(This post was last modified: 23 Feb 13, 10:00PM by DeathCrew77.)
[cubescript]bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [quicknadethrow] [melee]]][/cubescript]
it works well, but i dont want change weapon when i throw a nade, is it possible?
If i bind mouse1 i cant join matches while i'm spectating.
Thanks all!! :D
Posts: 116
Threads: 10
Joined: Jun 2011
23 Feb 13, 11:36PM
(This post was last modified: 24 Feb 13, 09:53AM by 888.)
yes its possible
alias altaction_8 [ attack ] // Grenade // with this comment, you throw the nade and the nade is unselected : Brahma
You must delete the comment in the file "script.cfg"
[/quote]
I advise you in lss :
bind mouse1 [weapon 0;attack]
bind mouse2 [weapon 8;attack] for no change weapon or bind mouse2 quicknadetrow for changing the weapon
You avoid use the alias altaction
Posts: 739
Threads: 20
Joined: Jun 2010
what is the ms delay when switching to knife?
Posts: 116
Threads: 10
Joined: Jun 2011
24 Feb 13, 09:53AM
(This post was last modified: 24 Feb 13, 11:46AM by 888.)
I believe when you throw your nade ,you switch automaticaly .
Else it s 100ms ,very short ...
Posts: 300
Threads: 20
Joined: Jan 2013
@888
If i delete this comment:
alias altaction_8 [ attack ] // Grenade // with this comment, you throw the nade and the nade is unselected : Brahma
Nades still swtich into knife.
I have bind mouse1 with this script:
bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [quicknadethrow] [melee]]]
and mouse2 binded with jump
I want throw nades like with quicknadethrow, and still using knife when is my current weapon, but i dont want switch weapon when i throw a nade, thats all :P
Ty
Posts: 116
Threads: 10
Joined: Jun 2011
24 Feb 13, 12:10PM
(This post was last modified: 24 Feb 13, 12:12PM by 888.)
bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [weapon 8;attack] [melee]]]
Try this script ....
Posts: 300
Threads: 20
Joined: Jan 2013
It works, i love you <3 <3 <3 <3 <3 <3 <3 <3 <3
Thanks Man.
Awesome.
Thanks!!!!!!!!!!! :)
Posts: 116
Threads: 10
Joined: Jun 2011
Posts: 300
Threads: 20
Joined: Jan 2013
Nah, it's usefull with my different settings ;D
Posts: 300
Threads: 20
Joined: Jan 2013
26 Feb 13, 09:19PM
(This post was last modified: 26 Feb 13, 09:57PM by DeathCrew77.)
Oh dude its not working...
bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [weapon 8;attack] [melee]]]
instead this work but it switch weapon and i cant knife.. :(
bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [quicknadethrow] [melee]]]
Posts: 116
Threads: 10
Joined: Jun 2011
(26 Feb 13, 09:19PM)DeathCrew77 Wrote: Oh dude its not working...
bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [weapon 8;attack] [melee]]]
instead this work but it switch weapon and i cant knife.. :(
bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [quicknadethrow] [melee]]]
Ok I understand my error .
You can not realize this script because you can not switch directly when you attack .
Quicknadethrow must be modified in the new version ...
Posts: 300
Threads: 20
Joined: Jan 2013