Info survivor rescue: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Add internal names of keyval keys)
m (Classifying as model entity)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{l4d series point|info_survivor_rescue}} It is the location of a survivor rescue point.
{{CD|CSurvivorRescue}}
{{This is a|model entity|name=info_survivor_rescue|series=Left 4 Dead}} It is the location of a survivor rescue point. [[L4D_Level_Design/Additional_Finale_Components#Creating_a_Rescue_Closet|Here's a short guide on making functional rescue closets.]]


== Keyvalues ==
== Keyvalues ==
{{KV|Eye position of survivors waiting for rescue|intn=rescueEyePos|vecline}}
{{KV|World model|intn=model|studio|World model, used by Hammer only.}}
{{KV Targetname}}
{{KV Targetname}}
{{KV|Eye position of survivors waiting for rescue|intn=rescueEyePos|vecline|{{TODO|What's this for ?}}}}
{{KV Angles}}
{{KV Angles}}


== Inputs ==
== Inputs ==
{{I Targetname}}
{{I|Rescue|nofgd=1|Rescue dead players if available.}}


== Outputs ==
== Related console commands ==
{{O Targetname}}
=== ConVars ===
{{varcom|start}}
{{varcom|rescue_distance|4500|[[Unit]]s|Living survivors must travel this far past a dead survivor's corpse to be able to rescue him}}
{{varcom|rescue_finale_ignore_distance|4000|[[Unit]]s|If living survivors are this far past a rescuable survivor, he stops calling for help}}
{{varcom|rescue_finale_spawn_range|4000|[[Unit]]s|info_survivor_rescue ents will be considered if they are this close to the leading survivor}}
{{varcom|rescue_ignore_distance|2000|[[Unit]]s|If living survivors are this far past a rescuable survivor, he stops calling for help}}
{{varcom|rescue_interval|2.5|seconds|Dead survivors are checked to start calling for help this often}}
{{varcom|rescue_min_dead_time|60|seconds|Duration in seconds a survivor must be dead before being rescuable}}
{{varcom|rescue_range|1000|[[Unit]]s|if a survivor gets this close to an active info_survivor_rescue, it will be triggered}}
{{varcom|rescue_spawn_flow|400|[[Unit]]s|info_survivor_rescue ents will be considered if they are no more than this far ahead in flow distance from the leading survivor}}
{{varcom|rescue_spawn_range|2000|[[Unit]]s|info_survivor_rescue ents will be considered if they are this close to the leading survivor}}
{{varcom|rescue_yell_delay|1|seconds|Delay before yelling when activating}}
{{varcom|rescue_yell_interval|6|seconds|Interval at which an info_survivor_rescue yells for help}}
{{varcom|end}}
 
=== ConCommands ===
{{varcom|start}}
{{varcom|rescue_show|||Shows debugging info for info_survivor_rescue ents}}
{{varcom|rescue_show_blocked|||Shows bboxes for blocked info_survivor_rescue ents}}
{{varcom|rescue_update_nav|||Updates RESCUE_CLOSET nav flags}}
{{varcom|end}}

Latest revision as of 04:31, 19 May 2025

C++ Class hierarchy
CSurvivorRescue
CFlexExpresser
CFlexExpresserShim
CFlexCycler
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

info_survivor_rescue is a model entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It is the location of a survivor rescue point. Here's a short guide on making functional rescue closets.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Eye position of survivors waiting for rescue (rescueEyePos) <vector>
Todo: What's this for ?
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

Rescue  !FGD
Rescue dead players if available.

Related console commands

ConVars

Cvar/Command Parameters or default value Descriptor Effect
rescue_distance 4500 Units Living survivors must travel this far past a dead survivor's corpse to be able to rescue him
rescue_finale_ignore_distance 4000 Units If living survivors are this far past a rescuable survivor, he stops calling for help
rescue_finale_spawn_range 4000 Units info_survivor_rescue ents will be considered if they are this close to the leading survivor
rescue_ignore_distance 2000 Units If living survivors are this far past a rescuable survivor, he stops calling for help
rescue_interval 2.5 seconds Dead survivors are checked to start calling for help this often
rescue_min_dead_time 60 seconds Duration in seconds a survivor must be dead before being rescuable
rescue_range 1000 Units if a survivor gets this close to an active info_survivor_rescue, it will be triggered
rescue_spawn_flow 400 Units info_survivor_rescue ents will be considered if they are no more than this far ahead in flow distance from the leading survivor
rescue_spawn_range 2000 Units info_survivor_rescue ents will be considered if they are this close to the leading survivor
rescue_yell_delay 1 seconds Delay before yelling when activating
rescue_yell_interval 6 seconds Interval at which an info_survivor_rescue yells for help

ConCommands

Cvar/Command Parameters or default value Descriptor Effect
rescue_show Shows debugging info for info_survivor_rescue ents
rescue_show_blocked Shows bboxes for blocked info_survivor_rescue ents
rescue_update_nav Updates RESCUE_CLOSET nav flags