AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hook damage to an entity (https://forums.alliedmods.net/showthread.php?t=87435)

Hunter-Digital 03-11-2009 15:59

hook damage to an entity
 
PHP Code:

RegisterHam(Ham_TakeDamage"info_target""fwHam_takeDamage")
...
public 
fwHam_takeDamage() // huh ???
{
      
// ???


I don't have the slightest Ideea on how to make it... I want to check the damade dealt to an solid created entity, get attacker, damage, etc :}

also what pev_ values can I use for custom values on an entity... pev_iuserX are free for this type of usage ? :}

Arkshine 03-11-2009 16:04

Re: hook damage to an entity
 
- Look into ham_const.inc next time :

public fwHam_takeDamage ( entity, idinflictor, idattacker, Float:damage, damagebits )

- Sure.


All times are GMT -4. The time now is 08:59.

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