ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new: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 version of GetCVar that returns the value of a float cvar.

ACSUtils implements GetCVarFixed and GetUserCVarFixed by calling GetCVarString to retrieve its value as a string and parsing that string using ACSUtils number parsing functions.

The functions have an a_ prefix, because GDCC has its own unrelated GetCVarFixed, which would cause a compiler error in GDCC if the functions were called just GetCVarFixed and GetUserCVarFixed.
new/getcvarfixed.1518810989.txt.gz ยท Last modified: 2018/02/16 21:56 by korshun