Damage
From EventScripts Community Encyclopedia
OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.DescriptionDamages a player with specified amount of damage.
Note: It doesn't expand server variables. Prefix the command with es to expand variables (es damage). Parameters
<userComments></userComments> Damage types0 GENERIC 1 CRUSH 2 BULLET 4 SLASH 8 BURN 16 FREEZE 32 FALL (default) 64 BLAST 128 CLUB 256 SHOCK 512 SONIC 1024 ENERGYBEAM 16384 DROWN 32768 PARALYSE 65536 NERVEGAS 131072 POISON 262144 RADIATION 524288 DROWNRECOVER 1048576 CHEMICAL 2097152 SLOWBURN 4194304 SLOWFREEZE The damage type might not make any difference depending on in which Source game this command is used in. More information about different damage types is available at developer.valvesoftware.com. Notes
Examples// Causes 100 extra damage by any attack // If the player health values are normal, this makes all weapons // cause instant death on hit, the attacker is credited normally event player_hurt { if (event_var(weapon) != "point_hurt") do { es damage event_var(userid) 100 32 event_var(attacker) } } // GODJonez's console hax es_xset gjuserid 0 es_getuserid gjuserid GODJonez es damage !#all 200 32 server_var(gjuserid) // !#all causes all users on server to be damaged except for server_var(gjuserid) See also |
|
