View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-21-2019 , 17:17   Re: dealing Extra Damage to func_breakable
Reply With Quote #2

First of all you need to register the event as "pre", not "post". Set the last parameter in "RegisterHam" to "false". In "post" you cannot change the damage, as it's already been done. "pre" is called before dealing the damage.

Your arguments in the "Breakable_damage" function are wrong. Take a look at the API. They should be:

PHP Code:
victiminflictorattackerFloat:damagedamage_bits 
Now you need to modify the 4th argument (damage). Doubling it should make the entity die twice as fast.

PHP Code:
SetHamParamFloat(4damage 2
__________________

Last edited by OciXCrom; 07-21-2019 at 17:18.
OciXCrom is offline
Send a message via Skype™ to OciXCrom