unpackStringCommand: support "cvar:[cvar_name]" query syntax

This commit is contained in:
Marco Cawthorne 2024-09-06 09:27:03 -07:00
parent 9bb8dcab7c
commit 74bc920c60
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -426,6 +426,10 @@ unpackStringCommand(string commandString)
if (substring(commandString, 0, 6) == "skill:") {
return Skill_GetStringValue(substring(commandString, 6, -1), "");
}
/* is this supposed to be read from a skill cvar? */
if (substring(commandString, 0, 5) == "cvar:") {
return cvar_string(substring(commandString, 5, -1), "");
}
#endif
return Constants_LookUp(commandString, commandString);