entityguide‎ > ‎

trigger_hurt_remote

This is a more feature-rich variant of game_player_hurt.

Keyvalues

"
Target", target:
Target entity to deal a damage. Write '!activator' to make it hurt activator of the script.

"Target Class", targetclass:
If specified, all entities with the given class will be affected. Write 'player' in this field to make it hurt players.

"Damage", dmg:
Damage to deal. If "Constant" flag is selected, this is a damage to deal every "Delay" seconds. Can be negative to provide healing instead of dealing damage.

"Armor Damage", armordmg:
Armor damage to deal, works only if "Do Armor" flag is selected. When target is out of armor, the damage is not dealt.
Can be negative to give an armor instead of draining it.


"Delay (Only when Constant)", delay:
Delay between hurts when "Constant" flag is selected.

"Damage Type", damagetype:
Used for HUD info icon, determines which damage icon appears when player is taking damage from trigger.


Flags


1: "Instant Kill": Kill the target instantly. That will heal the target instantly when "Damage" value is negative.

2"Constant": Make use of "Delay" keyvalue and affect target entities repeatedly.

4: "Start On": Trigger_hurt_remote is enabled at start, this only makes sense when "Constant" flag is selected.

8: "Do armor": Allows to use "Armor Damage" keyvalue.


Issues

  • Constant feature is unstable for server, it's recommended to trigger this entity with looped mutli_manager to achieve similar effect.


Comments