View Single Post
SephirothSG
SourceMod Donor
Join Date: Jun 2013
Old 01-04-2014 , 07:35   Re: How would I modify a trigger_hurt...
Reply With Quote #3

Quote:
Originally Posted by MasterOfTheXP View Post
You can probably just use Stripper:Source to change it, but if you need code to do it in a SourceMod plugin:
PHP Code:
DispatchKeyValueFloat(entityIndex"damage"5.0); 
or...
PHP Code:
SetEntPropFloat(entityIndexProp_Data"m_flDamage"5.0); 
or possibly even...
PHP Code:
SetVariantFloat(5.0);
AcceptEntityInput(entityIndex"SetDamage"); 
Damage datamaps for trigger_hurt
Boy do I feel dumb, completely forgot that that stripper:source even existed... Thanks heaps mate
SephirothSG is offline