You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes, my VOTE ! i really think we need more events to keep coding alive and stuff
HookReturnCode onPlayerHurt (CEntityDamageEvent@ ede) {
ede.GetVictim(); // in this case, always a Player
ede.GetDamageType(); // fire, poison, crush, etc ...
ede.GetDamage(); // int
ede.SetDamage(int); // <<-- THIS can change the outcome or even negate the event
ede.GetAttacker() // entity (or null if falldamage etc was the cause)
ede.GetCause() // new Enum: WORLD, TRIGGER, PLAYER, NPC, SCRIPT, ...
}
Script types: All
Getting target type, damage dealt, damage type, etc.
See
CBaseEntity::TakeDamage
andCBaseEntity::TraceAttack
The text was updated successfully, but these errors were encountered: