ACS: Difference between revisions
DrinkyBird (talk | contribs) (It's no longer incomplete I think) Tag: Source edit |
DrinkyBird (talk | contribs) (Add new scoreboard funcs) Tag: Source edit |
||
Line 31: | Line 31: | ||
* <code>[[GetCurrentGameMode]]</code> | * <code>[[GetCurrentGameMode]]</code> | ||
* <code>[[GetCurrentMapPosition]]</code> {{Devfeature|3.2|alpha}} | * <code>[[GetCurrentMapPosition]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[GetCustomPlayerValue]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[GetEventResult]]</code> {{Devfeature|3.2|alpha}} | * <code>[[GetEventResult]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[GetDBEntries]]</code> | * <code>[[GetDBEntries]]</code> | ||
Line 65: | Line 66: | ||
* <code>[[PlayerTeam]]</code> | * <code>[[PlayerTeam]]</code> | ||
* <code>[[RequestScriptPuke]]</code> | * <code>[[RequestScriptPuke]]</code> | ||
* <code>[[ResetCustomDataToDefault]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[ResetMap]]</code> | * <code>[[ResetMap]]</code> | ||
* <code>[[SendNetworkString]]</code> | * <code>[[SendNetworkString]]</code> | ||
* <code>[[SetActivatorToPlayer]]</code> | * <code>[[SetActivatorToPlayer]]</code> | ||
* <code>[[SetCurrentGameMode]]</code> | * <code>[[SetCurrentGameMode]]</code> | ||
* <code>[[SetCustomPlayerValue]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[SetDBEntry]]</code> | * <code>[[SetDBEntry]]</code> | ||
* <code>[[SetDBEntryString]]</code> | * <code>[[SetDBEntryString]]</code> |
Revision as of 14:02, 13 June 2023
This is a 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.
It is worth reading Clientside Scripting if you intend on using CLIENTSIDE scripts.
ACS Functions
AnnouncerSound
BeginDBTransaction
ChangeTeamScore
(development version 3.2-alpha and above only)ConsoleCommand
ConsolePlayerNumber
CountDBResults
EndDBTransaction
ExecuteClientScript
FreeDBResults
GameType
GetActorSectorLocation
(development version 3.2-alpha and above only)GetChatMessage
GetCurrentGameMode
GetCurrentMapPosition
(development version 3.2-alpha and above only)GetCustomPlayerValue
(development version 3.2-alpha and above only)GetEventResult
(development version 3.2-alpha and above only)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
ResetCustomDataToDefault
(development version 3.2-alpha and above only)ResetMap
SendNetworkString
SetActivatorToPlayer
SetCurrentGameMode
SetCustomPlayerValue
(development version 3.2-alpha and above only)SetDBEntry
SetDBEntryString
SetDeadSpectator
SetGameModeLimit
SetGameplaySetting
(development version 3.2-alpha and above only)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
)