AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Possible to edit hegrenade damage on Ham_takedamage?? (https://forums.alliedmods.net/showthread.php?t=92982)

_lol_ 05-22-2009 20:14

Possible to edit hegrenade damage on Ham_takedamage??
 
or i have to do this on the "Damage" event?because i`ve tries in the forwards, and i couldnt do it...

PHP Code:

if (iWeapID == CSW_HEGRENADE)
                    
raptorpostdamage raptordamage *= 10000000.0 (This doesnt work...)
                else
                    
raptorpostdamage raptordamage *= 2.5 


_lol_ 05-22-2009 20:15

Re: Possible yo edit hegrenade damage on Ham_takedamage??
 
y have used the same way with other weaps, and it works perfect...

Hunter-Digital 05-22-2009 20:24

Re: Possible yo edit hegrenade damage on Ham_takedamage??
 
That's because you can't check it like that, either check if inflictor is an grenade entity or check if damagebits & DMG_BLAST

_lol_ 05-22-2009 20:29

Re: Possible yo edit hegrenade damage on Ham_takedamage??
 
so, can you give me an eg? xd please

Hunter-Digital 05-22-2009 20:43

Re: Possible to edit hegrenade damage on Ham_takedamage??
 
http://forums.alliedmods.net/showthread.php?p=595564 :crab:


All times are GMT -4. The time now is 01:36.

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