ACS: Difference between revisions
DrinkyBird (talk | contribs) (Remove Teleport_NoStop link) Tag: Source edit |
DrinkyBird (talk | contribs) (Misc formatting) Tag: Source edit |
||
Line 3: | Line 3: | ||
For a list of all the ACS functions supported by Zandronum, [[List of ACS functions in Zandronum|click here]]. | For a list of all the ACS functions supported by Zandronum, [[List of ACS functions in Zandronum|click here]]. | ||
==Features== | == Features == | ||
Zandronum supports [[Databases|databases]], powered by [http://sqlite.org/ SQLite]. | Zandronum supports [[Databases|databases]], powered by [http://sqlite.org/ SQLite]. | ||
==Script | == Script types == | ||
'''<code>[[EVENT_scripts|EVENT]]</code>''' scripts are executed when specific game events occur. | '''<code>[[EVENT_scripts|EVENT]]</code>''' scripts are executed when specific game events occur. | ||
Line 13: | Line 13: | ||
* <code>'''CLIENTSIDE'''</code> scripts client-side and can not be executed by the puke command. | * <code>'''CLIENTSIDE'''</code> scripts client-side and can not be executed by the puke command. | ||
* <code>'''NET CLIENTSIDE'''</code> scripts are client-side and can be executed by the puke command. | * <code>'''NET CLIENTSIDE'''</code> scripts are client-side and can be executed by the puke command. | ||
In this example, when someone picks up the enemy item it will start this script on the client side: | |||
<syntaxhighlight lang="c" line="1"> | |||
Script 1 PICKUP CLIENTSIDE | |||
{ | |||
{{zdoomwiki|Print}}(s:"Someone got the flag!"); | |||
} | |||
</syntaxhighlight> | |||
It is worth reading [[Clientside Scripting]] if you intend on using CLIENTSIDE scripts. | It is worth reading [[Clientside Scripting]] if you intend on using CLIENTSIDE scripts. | ||
Line 86: | Line 87: | ||
* <code>[[Team_Score]]</code> | * <code>[[Team_Score]]</code> | ||
==Deprecated== | == Deprecated == | ||
These functions are '''deprecated'''. They still work, but will be removed eventually. It is recommended you use more up to date functions. | These functions are '''deprecated'''. They still work, but will be removed eventually. It is recommended you use more up to date functions. | ||
Revision as of 01:23, 3 July 2022
This is an incomplete list of Zandronum-only ACS functions and extensions. See here for a list of ZDoom-supported ACS functions.
For a list of all the ACS functions supported by Zandronum, click here.
Features
Zandronum supports databases, powered by SQLite.
Script types
EVENT
scripts are executed when specific game events occur.
There are additional script types that can be appended to regular script types:
NET
scripts are server-side and can be executed by clients using the puke command.CLIENTSIDE
scripts client-side and can not be executed by the puke command.NET CLIENTSIDE
scripts are client-side and can be executed by the puke command.
In this example, when someone picks up the enemy item it will start this script on the client side:
Script 1 PICKUP CLIENTSIDE
{
{{zdoomwiki|Print}}(s:"Someone got the flag!");
}
It is worth reading Clientside Scripting if you intend on using CLIENTSIDE scripts.
ACS Functions
AnnouncerSound
BeginDBTransaction
ConsoleCommand
ConsolePlayerNumber
CountDBResults
EndDBTransaction
ExecuteClientScript
FreeDBResults
GameType
GetChatMessage
GetCurrentGameMode
GetDBEntries
GetDBEntry
GetDBEntryRank
GetDBEntryString
GetDBResultKeyString
GetDBResultValue
GetDBResultValueString
GetGameModeState
GetInvasionState
GetInvasionWave
GetMapRotationInfo
GetMapRotationSize
GetPlayerAccountName
GetPlayerChasecam
GetPlayerLivesLeft
GetPlayerScore
GetTeamProperty
GetTimeProperty
IncrementDBEntry
InDemoMode
IsMultiplayer
IsOneFlagCTF
KickFromGame
NamedExecuteClientScript
NamedRequestScriptPuke
NamedSendNetworkString
Player_SetTeam
PlayerArmorpoints
PlayerHealth
PlayerIsLoggedIn
PlayerIsSpectator
PlayerTeam
RequestScriptPuke
ResetMap
SendNetworkString
SetActivatorToPlayer
SetCurrentGameMode
SetDBEntry
SetDBEntryString
SetDeadSpectator
SetGameModeLimit
SetPlayerChasecam
SetPlayerClass
SetPlayerLivesLeft
SetPlayerScore
SortDBEntries
Strftime
SystemTime
Team_GivePoints
Team_Score
Deprecated
These functions are deprecated. They still work, but will be removed eventually. It is recommended you use more up to date functions.
BlueCount
(deprecated, seeGetTeamProperty
)BlueScore
(deprecated, seeGetTeamProperty
)GetTeamScore
(deprecated, seeGetTeamProperty
)Music_Change
(deprecated, seeSetMusic
)RedCount
(deprecated, seeGetTeamProperty
)RedScore
(deprecated, seeGetTeamProperty
)SinglePlayer
(deprecated, seeGameType
)BlueTeamCount
(deprecated, seeGetTeamProperty
)BlueTeamScore
(deprecated, seeGetTeamProperty
)RedTeamCount
(deprecated, seeGetTeamProperty
)RedTeamScore
(deprecated, seeGetTeamProperty
)