Raised This Month: $ Target: $400
 0% 

Amplify damage taken from trigger_hurt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 06-22-2014 , 14:35   Re: Amplify damage taken from trigger_hurt
Reply With Quote #1

Trigger_hurt can have different damage types.
I see 2 ways to do this.

#1
PHP Code:
if( attacker 32 || is_valid_entity(attacker) || pevattackerpev_solid ) == SOLID_TRIGGER )
{
// trigger_hurt or ohter entity what did damage and have solid_trigger
// ps: only costom entities can be that way

#2
Ohter way is to find all trigger_hurts in plugin_init and set they for example pev_iuser to something and then check it.
.Dare Devil. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode