• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Help with CVARs, #gameVariables and other variables

seven

Community Moderator
I'm trying to learn more about the titled variables but information is rather slim. So, just some basic questions to start.

In buffs.xml it lists a number of read only CVARs from _degreesabsorbed to _stunned. Is this a complete list? I'll include the list below.

The file also mentions game variables ($gameVariable) which are read only constants. The only example shown is #GameTime. Are there any others?

There are other variables that can be used in the game UI like maptemperature, mapwind, mapelevation etc. Can these be assigned to cvars and then used in a compare in a new buff? Like if I wanted to mod a buff that triggers if ambient temperature (not player core temp) was below a set value?

Read only CVARs from buffs.xml

_degreesabsorbed :
_coretemp :
_sheltered :
_shaded :
_wetness :
_underwater :
_difficulty :
_biomeradiation :
_encumberedslots :
_encumbrance :
_fallSpeed :
_crouching :
_notAlerted :
_stunned :

 
Back
Top