Logic active autosave: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(-added class hierarchy, internal names, cleanup)
Line 1: Line 1:
{{CD|CLogicActiveAutosave|file1=logicentities.cpp}}
{{base point|logic_active_autosave}}
{{base point|logic_active_autosave}}


==Entity description==
It is used to look for opportunities to autosave.
It is used to look for opportunities to autosave.


== Keyvalues ==
== Keyvalues ==
{{KV|Initiation Hit Points|integer|Start looking for an opportunity to save if player drops below this hitpoint level.}}
{{KV|Initiation Hit Points|intn=MinimumHitPoints|integer|Start looking for an opportunity to save if player drops below this hitpoint level.}}
{{KV|Trigger Hit Points|integer|If started looking for an opportunity, save when hitpoints reach this level.}}
{{KV|Trigger Hit Points|intn=TriggerHitPoints|integer|If started looking for an opportunity, save when hitpoints reach this level.}}
{{KV|Time to trigger|float|If > 0, how long to try and get a save off before giving up}}
{{KV|Time to trigger|intn=TimeToTrigget|float|If > 0, how long to try and get a save off before giving up}}
{{KV|Dangerous time|float|If 0, just autosave. Otherwise, do an autosavedangerous with this time threshold}}
{{KV|Dangerous time|intn=DangerousTime|float|If 0, just autosave. Otherwise, do an autosavedangerous with this time threshold}}
{{KV Targetname}}
{{KV Targetname}}


== Inputs ==
== Inputs ==
{{IO|Enable|Enable the entity}}
{{I EnableDisable}}
{{IO|Disable|Enable the entity}}
{{I Targetname}}
 
== Outputs ==
{{O Targetname}}

Revision as of 15:44, 6 November 2022

C++ Class hierarchy
CLogicActiveAutosave
CLogicAutosave
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ logicentities.cpp

Template:Base point

It is used to look for opportunities to autosave.

Keyvalues

Initiation Hit Points (MinimumHitPoints) <integer>
Start looking for an opportunity to save if player drops below this hitpoint level.
Trigger Hit Points (TriggerHitPoints) <integer>
If started looking for an opportunity, save when hitpoints reach this level.
Time to trigger (TimeToTrigget) <float>
If > 0, how long to try and get a save off before giving up
Dangerous time (DangerousTime) <float>
If 0, just autosave. Otherwise, do an autosavedangerous with this time threshold
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

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.