trigger_infect
Jump to navigation
Jump to search

trigger_infect is a trigger entity available in
No More Room in Hell.
Entity Description
The trigger_infect is a brush entity variant of trigger_hurt that features the Infection Chance KeyValue, allowing this entity to potentially (or guaranteed) apply the Infected status to a poor Survivor.
KeyValues
- Name (targetname) <string>
- The name that other entities refer to this entity by.
- Parent (parentname) <string>
- The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
- Origin (X Y Z) (origin) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
- Start Disabled (StartDisabled) <boolean>
- Should we start off Disabled?
- Global Entity Name (globalname) <string>
- Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
- Filter Name (filtername) <string>
- Filter to use to see if activator triggers me. See filter_activator_name for more explanation.
- Entity Scripts (vscripts) <string>
- Name(s) of script files that are executed after all entities have spawned.
- Script think function (thinkfunction) <string>
- Name of a function in this entity's script scope which will be called automatically.
- Damage (damage) <integer>
- The amount of damage done to entities that touch this trigger. The damage is done every half-second. See also 'Damage Model' for extra details on how damage can be dealt.
- Damage Cap (damagecap) <integer>
- Maximum damage dealt per second. This field is only used if you select the Doubling w/Forgiveness damage model, via the spawnflag.
- Damage Type (damagetype) <choices>
- What type of damage should we consider this?
- Damage Model (damagemodel) <choices>
- How damage is dealt. Normal always does the specified amount of damage each half second. Doubling starts with the specified amount and doubles it each time it hurts the toucher. Forgiveness means that if the toucher gets out of the trigger the damage will reset to the specified value. Good for making triggers that are deadly over time without having to cause massive damage on each touch.
- Zero Damage Force (nodmgforce) <boolean>
- Should the damaged entity receive no physics force from this trigger.
- Infection Chance (infect_chance) <float>
- Chance the hurt entity will be infected on each damage tick.
Flags
- Clients : [1]
- Clients.
- Disallow Bots : [4096]
- Prevents Survivor Bots from triggering.
You probably shouldn't use the other Flags on this entity, many are inherited from the trigger_ base.
Inputs
- Kill
- Kill this entity.
- Toggle
- Toggles this trigger brush from it's current state. Enable -> Disable, and vice versa.
- Enable
- Enable this trigger brush.
- Disable
- Disable this trigger brush.
- DisableAndEndTouch
- Disable this trigger brush and forcibly ignore touching entities.
Outputs
- OnHurt
- Fired when something is hurt by this trigger.
- OnHurtPlayer
- Fired when a Survivor is hurt by this trigger.
- OnPlayerDeath
- Fired when a Survivor dies to this trigger.
- OnEndTouch
- Fired when a valid entity stops touching this trigger.
- OnEndTouchAll
- Fired when all valid entities stop touching this trigger.
- OnStartTouch
- Fired when a valid entity starts touching this trigger.
- OnStartTouchAll
- Fired when a valid entity starts touching this trigger, and no other entities are touching it. If there are any other entities touching the trigger when a new one begins to touch, only OnStartTouch will fire.
- OnUser1 to OnUser4
- Fired in response to the FireUser inputs.