ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


getcvarfixed

This is an old revision of the document!


GetCVarFixed

fixed a_GetCVarFixed(str name)
fixed a_GetUserCVarFixed(int player, str name)

ZDoom doesn't provide a way to get a value of a float CVar as a fixed-point number.

GetCVarFixed and GetUserCVarFixed are implemented by using GetCVarString and GetUserCVarString to get the value as a string and converting it into a fixed-point number using Number parsing functions.

The functions have an a_ prefix, because GDCC has its own unrelated GetCVarFixed.
getcvarfixed.1519037755.txt.gz · Last modified: 2018/02/19 12:55 by korshun