Quicknadethrow
#1
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
Thanks given by:
#2
aint no contest when you put a man vs a machine
Thanks given by:
#3
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.
Thanks given by:
#4
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?)
Thanks given by:
#5
(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.
Thanks given by:
#6
[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
Thanks given by:
#7
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
Thanks given by:
#8
what is the ms delay when switching to knife?
Thanks given by:
#9
I believe when you throw your nade ,you switch automaticaly .
Else it s 100ms ,very short ...
Thanks given by:
#10
@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
Thanks given by:
#11
bind key [if (= (curweapon) 0) [attack] [if (> (magcontent 8) 0) [weapon 8;attack] [melee]]]


Try this script ....
Thanks given by:
#12
It works, i love you <3 <3 <3 <3 <3 <3 <3 <3 <3

Thanks Man.
Awesome.
Thanks!!!!!!!!!!! :)
Thanks given by:
#13
Useless script :)
Thanks given by:
#14
Nah, it's usefull with my different settings ;D
Thanks given by:
#15
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]]]
Thanks given by:
#16
(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 ...
Thanks given by:
#17
Noone understand me ._.
Thanks given by: