Left 4 Dead 2

Left 4 Dead 2

[VScript] Unscope on Shoot (For Bolt Actions)
23 条留言
Valencia 10 月 17 日 上午 7:28 
Mfw NMRiH
AVGyerra 8 月 31 日 上午 9:06 
Works like a charm now!
ChapCanai  [作者] 8 月 25 日 上午 6:57 
@kurochama
Thank you, I can try that way instead of pressing the zoom button for the player to unscope
kurochama 8 月 25 日 上午 6:02 
There's a little hint that might be helpful: NetProps.GetPropInt(player, "m_iFOV") .This netprops is to detect whether a player is using scrope. The value "0" is normal state (unscoped) while value above 0 is scoped state. Normally, you can simply just use "weapon_fire" event function, & then use "if" with the netprops above. For example, you can also write it like this on the "weapon_fire":
//Example for awp
if(player.GetActiveWeapon().GetClassname() == "weapon_sniper_awp")
{
if(NetProps.GetPropInt(player, "m_iFOV") != 0)
{
NetProps.SetPropInt(player, "m_iFOV", 0);
}

}

This will automatically cancel scope after firing. If you want to implement auto scoping after unscoping like that on CS, you can use that netprops on "EntFire", & put it on the "weapon_fire" as well.
ChapCanai  [作者] 8 月 22 日 上午 1:29 
I forgot to ask, does any error appear in the console after shooting while scoped?
ChapCanai  [作者] 8 月 20 日 下午 5:32 
@AVGyerra
It works for me, no idea why doesnt work for some
AVGyerra 8 月 20 日 下午 12:19 
Hmmm, this also doesn't work for me.
Xav1eRRz 8 月 5 日 下午 3:30 
Nice bro 🤝
󠁳 8 月 3 日 上午 1:45 
well this is pretty odd, idk what would be making this script to stop working for me, bad luck ig
ChapCanai  [作者] 8 月 3 日 上午 1:34 
Im testing it right now, working for me
󠁳 8 月 3 日 上午 1:31 
yeah well, i dont know either, sad
󠁳 8 月 3 日 上午 1:30 
i tried by disabling all my other addons, restarting the game but it doesnt work yet
ChapCanai  [作者] 8 月 3 日 上午 1:29 
then Im out of clues, sorry
󠁳 8 月 3 日 上午 1:27 
yes i was playing singleplayer campaing, my zoom button its the default bind.
ChapCanai  [作者] 8 月 3 日 上午 1:26 
You playing singleplayer? Did you change your zoom button?

All this script does is press BUTTON_ZOOM for you after you shoot while scoping with awp and scout
󠁳 8 月 3 日 上午 1:21 
i tested everything to make this work, but nothing made it work.
cafe ko duong 7 月 18 日 下午 6:27 
im confused why this script doesnt work for me
Mr. Bones 7 月 17 日 下午 3:38 
Possible ideas:

No Unscoping in rifles when hit by a common infected

Scoping in the SG552 like Pyromaniax said
Raizen 7 月 9 日 上午 8:55 
@Pyromaniax Its possible I think because its been done in sourcemod
Pyromaniax 7 月 7 日 上午 10:48 
im curious, could the scope overlay be added to the sg552 with vscript?
Raizen 7 月 6 日 上午 8:59 
Wow, never thought this would make its way to vscript, I've used a sourcemod version for this for a long time now, I think I might switch to see some differences
(^^^) Xeno 7 月 5 日 下午 2:31 
Gold, gold, gold
AL: the.Useless.man 7 月 5 日 上午 8:02 
I used to unscope on bolt actions in other games, thanks for making this.