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 a_GetCVarFixed and a_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 function, which would cause a compiler error in GDCC if the ACSUtils functions were called just GetCVarFixed and GetUserCVarFixed.</note>

new/getcvarfixed.1518830687.txt.gz ยท Last modified: 2018/02/17 03:24 by korshun