Disable In_Attack for x seconds on player_spawn?
- Hey all,
I got some funky stuff goin' on as a product of some new plugins I've been testing (firing a weapon the very frame they spawn), and am wondering if I could address that with this method ...but I don't know how to go about flipping IN_ATTACK and appending it to a short timer. Thanks in advance! |
Re: Disable In_Attack for x seconds on player_spawn?
PHP Code:
|
Re: Disable In_Attack for x seconds on player_spawn?
Thank you for the reply EasSidezz,
This is what I have: Code:
new Handle:hEnableAutoRespawn; From further testing, it appears that this glitch only happens when the player is holding attack1 while dead- and the player spawns while still holding attack1, which causes the dead client's input to become a live client's input- causing a random weapon to fire on the first frame of spawn? (I say first frame because the projectile hole is sometimes elevated and in a different direction then the direction the player spawns facing.) Game is HL2DM if that helps :( |
Re: Disable In_Attack for x seconds on player_spawn?
I'm not sure exactly what the problem you're describing is, but why the hell are you looping client indexes when you are already being handed them???? This is probably why you're getting mixed client input...
Try this. PHP Code:
|
Re: Disable In_Attack for x seconds on player_spawn?
No Headline,
Unfortunately, this issue was present before EasSidezz recommended the client index loop. Also, with your recommendation, the issue persists. Once a player is killed, if they hold attack1, they will instantly fire a weapon once they spawn, before they even really know where they are. Thanks for your reply. |
Re: Disable In_Attack for x seconds on player_spawn?
It'll do it on the clientside due to prediction, if you were to do this on a LAN Server it wouldn't fire.. or it shouldn't
|
Re: Disable In_Attack for x seconds on player_spawn?
@EasSidezz
Would sv_lan 1 still be viable for this? Using Headline's example, I've tested on my server with sv_lan 1, and it's still not negating IN_ATTACK. |
Re: Disable In_Attack for x seconds on player_spawn?
I have fixed this bug by stripping player weapons in the player_death event as well.
Thanks for the help. |
Re: Disable In_Attack for x seconds on player_spawn?
Please, do not blank out the question...
|
Re: Disable In_Attack for x seconds on player_spawn?
Quote:
|
All times are GMT -4. The time now is 15:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.