[TF2] Killing during setup.
Is there a way other than a plugin to prevent others from killing or injuring through gates? Like a way to disable damage dealt during setup time? Kind of like applying bonus round immunity to both teams during setup (Without disabling explosive forces such as rocket jumping, etc)
Thank you. |
Re: [TF2] Killing during setup.
You can try hooking "player_hurt" and if the attacker isn't the userid getting hurt, then return Plugin_Stop.
|
Re: [TF2] Killing during setup.
That will NOT work.
Blocking the player_hurt event does not change the damage actually dealt. The event is sent out as a notification after the damage is already calculated and worked. |
Re: [TF2] Killing during setup.
How could this be done?
|
Re: [TF2] Killing during setup.
You would need to use SDKHooks to hook OnTakeDamage, then just return Plugin_Handled if the attack happened before the round started.
|
Re: [TF2] Killing during setup.
As with my other request I'll gladly pay $15 (Hope that's fair) if someone can code that for me.
|
Re: [TF2] Killing during setup.
2 Attachment(s)
Do all maps on your server have a setup time? I could do this one easily, but it might cause problems on maps without setup.
[edit] Assuming all maps have a Setup time, the attached plugin should do the trick (requires SDKHooks). |
Re: [TF2] Killing during setup.
Thanks bl4nk. Will test and post back with results.
|
Re: [TF2] Killing during setup.
I get this when testing with my friend and bots and I successfully killed him during setup but I think the plugin never loaded due to an error:
Code:
L 03/16/2011 - 11:42:14: Info (map "cp_dustbowl") (file "errors_20110316.log") |
All times are GMT -4. The time now is 23:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.