logic_active_autosave

From Source Entities
Jump to navigation Jump to search

Code classes:

logic_active_autosave is a point entity present in all Source games. It looks for safe points at which a player can save the game (singleplayer only). Once their health goes below a certain point, the game will automatically save once they're up to a certain amount again. Only useful in Hl2.png since health regenerates so fast in P1.pngP2.png.

Keyvalues[edit | edit source]

Initiation Hit Points/Minimum Hit Points (MinimumHitPoints) <integer>
If the player's health drops below this much, the entity begins looking for a point to save at.
Trigger Hit Points (TriggerHitPoints) <integer>
Once the player's health has dropped below Initiation Hit Points, the game will be saved when the player has healed to this amount.
Time to trigger (TimeToTrigger) <float>
Once the player's health has dropped below Initiation Hit Points, how long to check for a good save point before giving up. If not wanted, leave at 0.
Important: There's a typo in the FGD!! Open base.fgd, find "TimeToTrigget" and replace the last t with an r.
Dangerous time (DangerousTime) <integer>
If not 0, the entity does a dangerous save (see CLogicAutosave) with this amount of seconds as the "danger timer".

Inputs[edit | edit source]

Enable
Makes the entity active.
Disable
Makes the entity inactive.