-
Notifications
You must be signed in to change notification settings - Fork 4
API Changes SC 5.24
KernCore edited this page Feb 20, 2024
·
1 revision
- Added a shared map script "hideandseek.as" for a Hide & Seek game mode any mapper can use:
- Based on the behaviour of community map "SC5X Bonus".
- Designed to do all the heavy lifting minimizing the amount of "control" entities a mapper needs to implement.
- Provides simple map CVARs to flex its behaviour such as hiding time/speed/model, seeking time/speed/model, points awarded, and hider-to-seeker ratio.
- See the accompanying
"hideandseek.md"
for usage instructions.
- Added missing
Tokenize()
function andString::NO_MORE_TOKENS
constant tostring
documentation. - Expose
CBaseEntity
functions:-
GetClassificationName()
: Get a full name for its classification. (E.g. "Player", "Human Military", "Team 2".) -
GetClassificationTag()
: Get a tag name for its classification. (E.g. "player", "human_military", "team2".)
-
- Expose
CBasePlayer
functions:-
GetCheat()
: Get a cheat mode of a player. -
GetCheats()
: Get all cheat modes of a player. -
ResetOverriddenPlayerModel()
: Reset a player's temporary model. -
SendScoreInfo()
: Force an update of a player's score board information either to another specific player or all other players. -
SetCheat()
: Set/unset a cheat mode on a player. (Game cheat rules will still be enforced.) Plug-ins should no longer need to brute-force cheats by manipulating special entity keys. -
SetOverriddenPlayerModel()
: Change a player's model temporarily. (Does not change their preference.)
-
- Expose definitions for MOVETYPE_NONE_EXPLICIT and SOLID_NOT_EXPLICIT. (Both are
-1
.) - Expose utility functions:
-
BuildEntityLogString()
: For generating a log string for an entity. -
BuildPlayerLogString()
: For generating a log string for a player. -
GetPlayerLog()
: For fetching a log string for a player. (Use of this is usually preferred overBuildPlayerLogString()
.)
-