mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 08:41:59 +00:00
- added CheckClass ACS function.
This commit is contained in:
parent
da5cf760b0
commit
3299a29c44
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue