Amplify damage taken from trigger_hurt
I can't find damage type trigger_hurt in the hlsdk_const.ini. Please help me detect the trigger_hurt damage.
Code:
|
Re: Amplify damage taken from trigger_hurt
PHP Code:
That's the only thing on my mind right now, will se anywhere to help! EDIT: I think that this thread, and mostly ConnorMcLeod's reply, will help you. https://forums.alliedmods.net/showthread.php?t=94221 |
Re: Amplify damage taken from trigger_hurt
Trigger_hurt can have different damage types.
I see 2 ways to do this. #1 PHP Code:
Ohter way is to find all trigger_hurts in plugin_init and set they for example pev_iuser to something and then check it. |
Re: Amplify damage taken from trigger_hurt
Why not check inflictors classname? I don't know, but it might work.
|
Re: Amplify damage taken from trigger_hurt
Quote:
You should avoid checking strings on fast called functions. |
Re: Amplify damage taken from trigger_hurt
If he is checking damage >= 100.0 then that string check wouldn't be called that often cause I doubt that there are many things that can cause such damage in one tick/frame :)
|
| All times are GMT -4. The time now is 21:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.