Adding New ACS Functions to ACC: Difference between revisions

From Zandronum Wiki
No edit summary
(Updated the list of Zandronum's built-in ACS functions in zspecial.acs as of 3.2-alpha.)
Tag: Source edit
 
(One intermediate revision by one other user not shown)
Line 31: Line 31:
-124:EndDBTransaction(0),
-124:EndDBTransaction(0),
-125:GetDBEntries(1),
-125:GetDBEntries(1),
        -126:NamedRequestScriptPuke(1,4),
-126:NamedRequestScriptPuke(1,4),
        -127:SystemTime(0),
-127:SystemTime(0),
  -128:GetTimeProperty(2, 3),
  -128:GetTimeProperty(2,3),
-129:Strftime(2, 3),
-129:Strftime(2,3),
        -130:SetDeadSpectator(2),
-130:SetDeadSpectator(2),
        -131:SetActivatorToPlayer(1),
-131:SetActivatorToPlayer(1),
-132:SetCurrentGamemode(1),
-133:GetCurrentGamemode(0),
-134:SetGamemodeLimit(2),
-135:SetPlayerClass(3),
-136:SetPlayerChasecam(2),
-137:GetPlayerChasecam(1),
-138:SetPlayerScore(3),
-139:GetPlayerScore(2),
-140:InDemoMode(0),
-144:ExecuteClientScript(2,6),
-145:NamedExecuteClientScript(2,6),
-146:SendNetworkString(2,3),
-147:NamedSendNetworkString(2,3),
-148:GetChatMessage(2,3),
-149:GetMapRotationSize(0),
-150:GetMapRotationInfo(2),
-151:GetCurrentMapPosition(0),
-152:GetEventResult(0),
-153:GetActorSectorLocation(2),
-154:ChangeTeamScore(3,4),
-155:SetGameplaySetting(2),
-19260:GetTeamScore(1),
-19260:GetTeamScore(1),
-19261:SetTeamScore(2),
-19261:SetTeamScore(2),
Line 45: Line 66:


[[Category:Level Development]]
[[Category:Level Development]]
[[Category:ACS Functions]]
[[Category:ACS]]

Latest revision as of 14:59, 29 November 2022

Warning: With ACC 1.54 and later, the functions in this example have already been added to zspecial.acs, so there is no need for you to do this. This example is kept here in case new functions are added to Zandronum before ACC again in the future.

Zandronum introduces several built-in ACS functions that are not yet supported by ACC, but it is simple to add them.

Steps

Find your ACC directory. The functions are enumerated in the zspecial.acs file. Near the bottom, find the line containing -1000:__EndOfList__(10); and delete it or comment it out. Then paste

	-100:ResetMap(0),
	-101:PlayerIsSpectator(1),
	-102:ConsolePlayerNumber(0),
	-103:GetTeamProperty(2),
	-104:GetPlayerLivesLeft(1),
	-105:SetPlayerLivesLeft(2),
	-106:KickFromGame(2),
	-107:GetGamemodeState(0),
	-108:SetDBEntry(3),
	-109:GetDBEntry(2),
	-110:SetDBEntryString(3),
	-111:GetDBEntryString(2),
	-112:IncrementDBEntry(3),
	-113:PlayerIsLoggedIn(1),
	-114:GetPlayerAccountName(1),
	-115:SortDBEntries(4),
	-116:CountDBResults(1),
	-117:FreeDBResults(1),
	-118:GetDBResultKeyString(2),
	-119:GetDBResultValueString(2),
	-120:GetDBResultValue(2),
	-121:GetDBEntryRank(3),
	-122:RequestScriptPuke(4),
	-123:BeginDBTransaction(0),
	-124:EndDBTransaction(0),
	-125:GetDBEntries(1),
	-126:NamedRequestScriptPuke(1,4),
	-127:SystemTime(0),
 	-128:GetTimeProperty(2,3),
	-129:Strftime(2,3),
	-130:SetDeadSpectator(2),
	-131:SetActivatorToPlayer(1),
	-132:SetCurrentGamemode(1),
	-133:GetCurrentGamemode(0),
	-134:SetGamemodeLimit(2),
	-135:SetPlayerClass(3),
	-136:SetPlayerChasecam(2),
	-137:GetPlayerChasecam(1),
	-138:SetPlayerScore(3),
	-139:GetPlayerScore(2),
	-140:InDemoMode(0),
	-144:ExecuteClientScript(2,6),
	-145:NamedExecuteClientScript(2,6),
	-146:SendNetworkString(2,3),
	-147:NamedSendNetworkString(2,3),
	-148:GetChatMessage(2,3),
	-149:GetMapRotationSize(0),
	-150:GetMapRotationInfo(2),
	-151:GetCurrentMapPosition(0),
	-152:GetEventResult(0),
	-153:GetActorSectorLocation(2),
	-154:ChangeTeamScore(3,4),
	-155:SetGameplaySetting(2),
	-19260:GetTeamScore(1),
	-19261:SetTeamScore(2),
        -100000:__EndOfList__(10);

in its place. This will allow you to compile those commands in your ACS!

Related Articles

ACS Functions