12-Jul-2023
Point entity which allows you to set several control variables ("CVars") such as sv_gravity. To do so, give it a name, set which CVar to change as well as the new desired value and trigger it.
Keyvalues |
OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.
Name targetname : Set name of trigger_setcvar so other entities can trigger it to set cvar. Only 'On' and 'Toggle' trigger use-types are accepted. Can be kill-targeted.
CVAR (only these are allowed) m_iszCVarToChange : Set the name of the CVar to change.
New Value message : Specify the new CVar value.
Trigger after set netname : Entity to trigger whenever a CVar is set. Trigger use-type is 'Toggle'.
Which CVARs to set SetType : Allows to filter CVAR Types.
Players and the server console will receive a console message reading which CVar has changed and to what value. If you set a skill-CVar, only the server console will get information about the change printed.