Add Get/SetLineActivation ACS functions

This commit is contained in:
Randy Heit 2014-02-04 19:36:29 -06:00
parent 8b02bb55aa
commit 3cff307e77

View file

@ -4251,6 +4251,8 @@ enum EACSFunctions
ACSF_CheckFont, ACSF_CheckFont,
ACSF_DropItem, ACSF_DropItem,
ACSF_CheckFlag, ACSF_CheckFlag,
ACSF_SetLineActivation,
ACSF_GetLineActivation,
// ZDaemon // ZDaemon
ACSF_GetTeamScore = 19620, // (int team) ACSF_GetTeamScore = 19620, // (int team)
@ -5296,6 +5298,26 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
break; break;
} }
case ACSF_SetLineActivation:
if (argCount >= 2)
{
int line = -1;
while ((line = P_FindLineFromID(args[0], line)) >= 0)
{
lines[line].activation = args[1];
}
}
break;
case ACSF_GetLineActivation:
if (argCount > 0)
{
int line = P_FindLineFromID(args[0], -1);
return line >= 0 ? lines[line].activation : 0;
}
break;
default: default:
break; break;
} }