ACS: Difference between revisions
DrinkyBird (talk | contribs) (...and devfeature templates for lump functions) Tag: Source edit |
(Changes after the Lump Reading API refactor) |
||
Line 57: | Line 57: | ||
* <code>[[KickFromGame]]</code> | * <code>[[KickFromGame]]</code> | ||
* <code>[[LumpOpen]]</code> {{Devfeature|3.2|alpha}} | * <code>[[LumpOpen]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[ | * <code>[[LumpRead]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[ | * <code>[[LumpReadArray]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[LumpReadString]]</code> {{Devfeature|3.2|alpha}} | * <code>[[LumpReadString]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[ | * <code>[[LumpGetInfo]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[LumpClose]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[ExecuteClientScript|NamedExecuteClientScript]]</code> | * <code>[[ExecuteClientScript|NamedExecuteClientScript]]</code> | ||
* <code>[[RequestScriptPuke|NamedRequestScriptPuke]]</code> | * <code>[[RequestScriptPuke|NamedRequestScriptPuke]]</code> |
Revision as of 09:32, 3 January 2024
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
LumpOpen
(development version 3.2-alpha and above only)LumpRead
(development version 3.2-alpha and above only)LumpReadArray
(development version 3.2-alpha and above only)LumpReadString
(development version 3.2-alpha and above only)LumpGetInfo
(development version 3.2-alpha and above only)LumpClose
(development version 3.2-alpha and above only)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
)