ACS: Difference between revisions
DrinkyBird (talk | contribs) (It's no longer incomplete I think) Tag: Source edit |
(Renamed GetCurrentMapPosition to GetMapPosition.) Tag: Source edit |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 17: | Line 17: | ||
==ACS Functions== | ==ACS Functions== | ||
* <code>[[AddBot]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[AnnouncerSound]]</code> | * <code>[[AnnouncerSound]]</code> | ||
* <code>[[BanFromGame]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[BeginDBTransaction]]</code> | * <code>[[BeginDBTransaction]]</code> | ||
* <code>[[ChangeTeamScore]]</code> {{Devfeature|3.2|alpha}} | * <code>[[ChangeTeamScore]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[CloseMenu]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[ConsoleCommand]]</code> | * <code>[[ConsoleCommand]]</code> | ||
* <code>[[ConsolePlayerNumber]]</code> | * <code>[[ConsolePlayerNumber]]</code> | ||
Line 30: | Line 33: | ||
* <code>[[GetChatMessage]]</code> | * <code>[[GetChatMessage]]</code> | ||
* <code>[[GetCurrentGameMode]]</code> | * <code>[[GetCurrentGameMode]]</code> | ||
* <code>[[ | * <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 42: | Line 45: | ||
* <code>[[GetInvasionState]]</code> | * <code>[[GetInvasionState]]</code> | ||
* <code>[[GetInvasionWave]]</code> | * <code>[[GetInvasionWave]]</code> | ||
* <code>[[GetMapPosition]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[GetMapRotationInfo]]</code> | * <code>[[GetMapRotationInfo]]</code> | ||
* <code>[[GetMapRotationSize]]</code> | * <code>[[GetMapRotationSize]]</code> | ||
* <code>[[GetPlayerAccountName]]</code> | * <code>[[GetPlayerAccountName]]</code> | ||
* <code>[[GetPlayerChasecam]]</code> | * <code>[[GetPlayerChasecam]]</code> | ||
* <code>[[GetPlayerCountry]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[GetPlayerJoinQueuePosition]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[GetPlayerLivesLeft]]</code> | * <code>[[GetPlayerLivesLeft]]</code> | ||
* <code>[[GetPlayerScore]]</code> | * <code>[[GetPlayerScore]]</code> | ||
* <code>[[GetPlayerSkin]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[GetPlayerStatus]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[GetTeamProperty]]</code> | * <code>[[GetTeamProperty]]</code> | ||
* <code>[[GetTimeProperty]]</code> | * <code>[[GetTimeProperty]]</code> | ||
* <code>[[GivePlayerMedal]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[IncrementDBEntry]]</code> | * <code>[[IncrementDBEntry]]</code> | ||
* <code>[[InDemoMode]]</code> | * <code>[[InDemoMode]]</code> | ||
Line 55: | Line 64: | ||
* <code>[[IsOneFlagCTF]]</code> | * <code>[[IsOneFlagCTF]]</code> | ||
* <code>[[KickFromGame]]</code> | * <code>[[KickFromGame]]</code> | ||
* <code>[[LumpOpen]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[LumpRead]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[LumpReadArray]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[LumpReadString]]</code> {{Devfeature|3.2|alpha}} | |||
* <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> | ||
* <code>[[SendNetworkString|NamedSendNetworkString]]</code> | * <code>[[SendNetworkString|NamedSendNetworkString]]</code> | ||
* <code>[[OpenMenu]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[Player_SetTeam]]</code> | * <code>[[Player_SetTeam]]</code> | ||
* <code>[[PlayerArmorpoints]]</code> | * <code>[[PlayerArmorpoints]]</code> | ||
Line 64: | Line 80: | ||
* <code>[[PlayerIsSpectator]]</code> | * <code>[[PlayerIsSpectator]]</code> | ||
* <code>[[PlayerTeam]]</code> | * <code>[[PlayerTeam]]</code> | ||
* <code>[[RemoveBot]]</code> {{Devfeature|3.2|alpha}} | |||
* <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> | ||
Line 74: | Line 93: | ||
* <code>[[SetGameModeLimit]]</code> | * <code>[[SetGameModeLimit]]</code> | ||
* <code>[[SetGameplaySetting]]</code> {{Devfeature|3.2|alpha}} | * <code>[[SetGameplaySetting]]</code> {{Devfeature|3.2|alpha}} | ||
* <code>[[SetNextMapPosition]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[SetPlayerChasecam]]</code> | * <code>[[SetPlayerChasecam]]</code> | ||
* <code>[[SetPlayerClass]]</code> | * <code>[[SetPlayerClass]]</code> | ||
* <code>[[SetPlayerLivesLeft]]</code> | * <code>[[SetPlayerLivesLeft]]</code> | ||
* <code>[[SetPlayerScore]]</code> | * <code>[[SetPlayerScore]]</code> | ||
* <code>[[SetPlayerSkin]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[SetPlayerWeaponZoomFactor]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[SkipJoinQueue]]</code> {{Devfeature|3.2|alpha}} | |||
* <code>[[SortDBEntries]]</code> | * <code>[[SortDBEntries]]</code> | ||
* <code>[[Strftime]]</code> | * <code>[[Strftime]]</code> |
Latest revision as of 17:29, 17 November 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
AddBot
(development version 3.2-alpha and above only)AnnouncerSound
BanFromGame
(development version 3.2-alpha and above only)BeginDBTransaction
ChangeTeamScore
(development version 3.2-alpha and above only)CloseMenu
(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
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
GetMapPosition
(development version 3.2-alpha and above only)GetMapRotationInfo
GetMapRotationSize
GetPlayerAccountName
GetPlayerChasecam
GetPlayerCountry
(development version 3.2-alpha and above only)GetPlayerJoinQueuePosition
(development version 3.2-alpha and above only)GetPlayerLivesLeft
GetPlayerScore
GetPlayerSkin
(development version 3.2-alpha and above only)GetPlayerStatus
(development version 3.2-alpha and above only)GetTeamProperty
GetTimeProperty
GivePlayerMedal
(development version 3.2-alpha and above only)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
OpenMenu
(development version 3.2-alpha and above only)Player_SetTeam
PlayerArmorpoints
PlayerHealth
PlayerIsLoggedIn
PlayerIsSpectator
PlayerTeam
RemoveBot
(development version 3.2-alpha and above only)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)SetNextMapPosition
(development version 3.2-alpha and above only)SetPlayerChasecam
SetPlayerClass
SetPlayerLivesLeft
SetPlayerScore
SetPlayerSkin
(development version 3.2-alpha and above only)SetPlayerWeaponZoomFactor
(development version 3.2-alpha and above only)SkipJoinQueue
(development version 3.2-alpha and above only)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
)