- Added sqrt, fixedsqrt, and vectorlength to ACC.

SVN r3884 (trunk)
This commit is contained in:
Randy Heit 2012-10-11 03:40:21 +00:00
parent 9af2df3096
commit 7aa5c4d120
3 changed files with 9 additions and 0 deletions

View file

@ -476,6 +476,9 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
"PCD_CALLSTACK", // from Eternity "PCD_CALLSTACK", // from Eternity
"PCD_SCRIPTWAITNAMED", "PCD_SCRIPTWAITNAMED",
"PCD_TRANSLATIONRANGE3", "PCD_TRANSLATIONRANGE3",
"PCD_SQRT",
"PCD_FIXEDSQRT",
"PCD_VECTORLENGTH",
}; };
// CODE -------------------------------------------------------------------- // CODE --------------------------------------------------------------------

View file

@ -425,6 +425,9 @@ typedef enum
PCD_CALLSTACK, // from Eternity PCD_CALLSTACK, // from Eternity
PCD_SCRIPTWAITNAMED, PCD_SCRIPTWAITNAMED,
PCD_TRANSLATIONRANGE3, PCD_TRANSLATIONRANGE3,
PCD_SQRT,
PCD_FIXEDSQRT,
PCD_VECTORLENGTH,
PCODE_COMMAND_COUNT PCODE_COMMAND_COUNT
} pcd_t; } pcd_t;

View file

@ -143,6 +143,9 @@ static internFuncDef_t InternalFunctions[] =
{ "sin", PCD_NOP, PCD_SIN, 1, 0, 0, YES, NO }, { "sin", PCD_NOP, PCD_SIN, 1, 0, 0, YES, NO },
{ "cos", PCD_NOP, PCD_COS, 1, 0, 0, YES, NO }, { "cos", PCD_NOP, PCD_COS, 1, 0, 0, YES, NO },
{ "vectorangle", PCD_NOP, PCD_VECTORANGLE, 2, 0, 0, YES, NO }, { "vectorangle", PCD_NOP, PCD_VECTORANGLE, 2, 0, 0, YES, NO },
{ "vectorlength", PCD_NOP, PCD_VECTORLENGTH, 2, 0, 0, YES, NO },
{ "sqrt", PCD_NOP, PCD_SQRT, 1, 0, 0, YES, NO },
{ "fixedsqrt", PCD_NOP, PCD_SQRT, 1, 0, 0, YES, NO },
{ "checkweapon", PCD_NOP, PCD_CHECKWEAPON, 1, 0, 0, YES, NO }, { "checkweapon", PCD_NOP, PCD_CHECKWEAPON, 1, 0, 0, YES, NO },
{ "setweapon", PCD_NOP, PCD_SETWEAPON, 1, 0, 0, YES, NO }, { "setweapon", PCD_NOP, PCD_SETWEAPON, 1, 0, 0, YES, NO },
{ "setmarineweapon", PCD_NOP, PCD_SETMARINEWEAPON, 2, 0, 0, NO, NO }, { "setmarineweapon", PCD_NOP, PCD_SETMARINEWEAPON, 2, 0, 0, NO, NO },