- Added ACS GetChar function.
- Added Gez's submission for polyobjects being able to crush corpses but made it an explicit MAPINFO option only. SVN r1585 (trunk)
This commit is contained in:
parent
a732687548
commit
eb52c9a90e
8 changed files with 136 additions and 96 deletions
|
|
@ -2795,6 +2795,7 @@ enum EACSFunctions
|
|||
ACSF_SetActivator,
|
||||
ACSF_SetActivatorToTarget,
|
||||
ACSF_GetActorViewHeight,
|
||||
ACSF_GetChar,
|
||||
};
|
||||
|
||||
int DLevelScript::SideFromID(int id, int side)
|
||||
|
|
@ -2893,6 +2894,19 @@ int DLevelScript::CallFunction(int argCount, int funcIndex, SDWORD *args)
|
|||
}
|
||||
else return 0;
|
||||
|
||||
case ACSF_GetChar:
|
||||
{
|
||||
const char *p = FBehavior::StaticLookupString(args[0]);
|
||||
if (p != NULL && args[1] >= 0 && args[1] < strlen(p))
|
||||
{
|
||||
return p[args[1]];
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue