- added CheckClass ACS function.

This commit is contained in:
Christoph Oelckers 2016-08-28 16:14:24 +02:00
parent da5cf760b0
commit 3299a29c44

View file

@ -4449,6 +4449,8 @@ enum EACSFunctions
-106 : KickFromGame(2),
*/
ACSF_CheckClass = 200,
// ZDaemon
ACSF_GetTeamScore = 19620, // (int team)
ACSF_SetTeamScore, // (int team, int value)
@ -6028,6 +6030,12 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
return false;
}
case ACSF_CheckClass:
{
const char *clsname = FBehavior::StaticLookupString(args[0]);
return !!PClass::FindActor(clsname);
}
default:
break;
}