trigger_hurt_remote

From Sven Co-op
Jump to navigation Jump to search
trigger_hurt_remote
Type

point

Status

supported

 


This is a more feature-rich variant of game_player_hurt.

1 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.

2 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.

3 Issues

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