Left 4 Dead 2

Left 4 Dead 2

[VScript] Yet Another CS Sniper Buff
46 Comments
Duke Nukem 8 Sep @ 6:13pm 
Any chance for a version that stumble every infected when shot? This one is awesome.
I STAPLE TAPEWORMS ON MY  [author] 14 Mar @ 3:22am 
i could fix that
Solid 13 Mar @ 8:00pm 
I wish this script gibbed enemies properly like the enemy died to the bullet normally, with how it is now you can't blow legs off in expert realism with it. Is there a way to multiply the damage of the bullet instead of just sethealth to 0? I haven't written a vscript before that wasn't just a single line with a console command so I don't know shit.
Harry Osporn Nobel Prize 6 Mar @ 3:55am 
oooooooh, thank you so much
I STAPLE TAPEWORMS ON MY  [author] 6 Mar @ 3:17am 
@Harry Osporn Nobel Prize no thats the comment, you gotta remove the victim.GetZombieType() == 6 (6 is the charger)
Harry Osporn Nobel Prize 6 Mar @ 3:08am 
in the script file, i see a line with the words tank, charger, survivor
all i need to do is remove the word "charger" ...right ?
I STAPLE TAPEWORMS ON MY  [author] 5 Mar @ 3:25am 
remove the check for if an infected is a common or witch and remove the check for if the hurt player (special infected) is a charger while keeping the one for if theyre a tank
Harry Osporn Nobel Prize 5 Mar @ 3:01am 
is there a way to make it also stumble Charger and witch but not tank ?
Milcoенг 3 Mar @ 9:53pm 
VNVBN
VNV
BNVN
V
NVNB
VBN
Azy 14 Feb @ 3:02pm 
Oh, thank you :bunnyinablanket:
Azy 14 Feb @ 2:42pm 
I like your viewmodel and that animation on scout which one are u using :o
I STAPLE TAPEWORMS ON MY  [author] 14 Feb @ 6:49am 
@Back ok its fixed
I STAPLE TAPEWORMS ON MY  [author] 14 Feb @ 6:41am 
i never noticed that it could happen cause i didnt test for it and i just never friendly fired
I STAPLE TAPEWORMS ON MY  [author] 14 Feb @ 6:34am 
oh ill fix it
leva 14 Feb @ 6:31am 
@Wenda friendly fire can stumble survivors
I STAPLE TAPEWORMS ON MY  [author] 14 Feb @ 6:15am 
what do you mean
leva 14 Feb @ 2:52am 
is it able to remove survivors stagger?
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 7:21pm 
@FreezeBlue i could try
FrreezeBlue 13 Feb @ 7:03pm 
Can u make one for shotgun but when they are on close range?
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 5:15pm 
@smilehigh_2007 tumtara
smilehigh_2007 13 Feb @ 4:54pm 
map name plss
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:48pm 
i should probably add a thing to make it not for riot zombies
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:48pm 
it can
leva 13 Feb @ 1:36pm 
i wonder if it can 1 shot uncommons
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:27pm 
oh its fine, im happy it works
leva 13 Feb @ 1:26pm 
oh nvm it was scout skin i was using that have script in it, sry for disturbing u :needy_heart:
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:20pm 
all this script does is set common health to 0 when damaged, with the scout or awp, aswell as have specials stumble without damaging them. It shouldn't be touching damage at all?
leva 13 Feb @ 1:18pm 
uhh homemade script that increase the base damage to 288
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:17pm 
what scout script are you using?
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:17pm 
this addon doesnt have weapon scripts in it at all, only 2 vscript files. There shouldn't be any reason its doing that?
leva 13 Feb @ 1:15pm 
its colliding with my scout script tho but not awp
leva 13 Feb @ 1:12pm 
it doesnt effect the awp damage but only the scout?
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:11pm 
@Back this doesnt effect the damage of the weapon at all
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:11pm 
its getting the origin for any time any player takes damage, which includes fall damage. the world, who would be the attacker in this case, does not have an origin, so the console puts that when it happens.
leva 13 Feb @ 1:11pm 
now this lock the scout damage to default :sob:
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 1:10pm 
ok wait i figured out the problem
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 12:51pm 
@Јамеѕ do you maybe have a survivor script mod?
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 12:50pm 
idk why it broke but i fixed it
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 12:48pm 
i fixed it
Јамеѕ 13 Feb @ 12:47pm 
You mean weapon scripts? Yes.
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 12:39pm 
wtf, it was working fine before???
leva 13 Feb @ 11:08am 
for whatever reason, this stumble charger and tank with the only except is witches
I STAPLE TAPEWORMS ON MY  [author] 13 Feb @ 5:28am 
@Јамеѕ do you have another script that effects them? are you on a different version of the game? I'm not getting these in my testing even rn
Јамеѕ 12 Feb @ 8:54pm 
This error is spammed in the console each time i think either a special, or survivor gets hurt.
Јамеѕ 12 Feb @ 8:53pm 
AN ERROR HAS OCCURED [the index 'GetOrigin' does not exist]

CALLSTACK
*FUNCTION [OnGameEvent_player_hurt()] scripts/vscripts/cssniper1shotcommon.nut line [26]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[victim] INSTANCE
[attacker] NULL
[params] TABLE
[this] TABLE
[funcName] "OnGameEvent_player_hurt"
[idx] 2
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "player_hurt"
[this] TABLE
[params] TABLE
[event] "player_hurt"
[this] TABLE