Adding New ACS Functions to ACC

From Zandronum Wiki
Jump to: navigation, search
Unkna0.png
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),
	-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