Logic autosave: Difference between revisions
Jump to navigation
Jump to search
m (link) |
(Cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{base point|logic_autosave}} | ||
{{base_point}} | {{base_point}} | ||
Line 5: | Line 5: | ||
An [[entity]] that is used to force an autosave. It is usually triggered before large firefights or dangerous areas where the player might die. | An [[entity]] that is used to force an autosave. It is usually triggered before large firefights or dangerous areas where the player might die. | ||
* Arguably pointless for multiplayer. | * Arguably pointless for multiplayer. | ||
==Outputs== | == Keyvalues == | ||
{{KV|Force New Level Unit|boolean|If set, the save will discard any savedata from previous levels, for the purpose of keeping savegame filesizes down. Can only be safely used if there is no way for the player to return to previous levels.}} | |||
:* 0 : No | |||
:* 1 : Yes | |||
{{KV|Minimum Hit Points|integer|Don't save dangerous when player has less than this many hitpoints.}} | |||
{{KV|Minimum Hit Points to Commit|integer|Minimum hitpoints required to commit to save. The save will be made if you have at least Minimum Hit Points, but when the autosave timer expires, the autosave is only kept if you have at least Min Hitpoints to Commit.}} | |||
{{KV Targetname}} | |||
== Inputs == | |||
{{IO|Save|Force an autosave.}} | |||
{{IO|SaveDangerous|Force an autosave as autosavedangerous.sav. If the player is alive after the passed number of seconds it replaces the standard auto save.|param=float}} | |||
{{IO|SetMinHitpointsThreshold|Set MinimumHitPoints to this.|param=integer}} | |||
{{I Targetname}} | |||
== Outputs == | |||
{{O Targetname}} |
Revision as of 22:54, 8 June 2011
Template:Base point Template:Base point
Entity Description
An entity that is used to force an autosave. It is usually triggered before large firefights or dangerous areas where the player might die.
- Arguably pointless for multiplayer.
Keyvalues
- Force New Level Unit ([todo internal name (i)]) <boolean>
- If set, the save will discard any savedata from previous levels, for the purpose of keeping savegame filesizes down. Can only be safely used if there is no way for the player to return to previous levels.
- 0 : No
- 1 : Yes
- Minimum Hit Points ([todo internal name (i)]) <integer>
- Don't save dangerous when player has less than this many hitpoints.
- Minimum Hit Points to Commit ([todo internal name (i)]) <integer>
- Minimum hitpoints required to commit to save. The save will be made if you have at least Minimum Hit Points, but when the autosave timer expires, the autosave is only kept if you have at least Min Hitpoints to Commit.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- Save
- Force an autosave.
- SaveDangerous <float >
- Force an autosave as autosavedangerous.sav. If the player is alive after the passed number of seconds it replaces the standard auto save.
- SetMinHitpointsThreshold <integer >
- Set MinimumHitPoints to this.