Counter-Strike 2 Update
[p]\[ MAP SCRIPTING ][/p][p]Added CSHostage[/p] [p]Added CSHostage.IsBeingPickedUp[/p][/*] [p]Added CSHostage.IsBeingCarried[/p][/*] [p]Added CSHostage.IsRescued[/p][/*] [p]Added CSHostage.GetRescuer[/p][/*] [p]Added CSHostage.GetPickUpStartTime[/p][/*] [p]Added CSHostage.GetPickUpFinishTime[/p][/*] [p]Added CSPlayerPawn.GetHostage[/p][/*] [p]Added Instance.OnHostagePickUpStart[/p][/*] [p]Added Instance.OnHostagePickUpAbort[/p][/*] [p]Added Instance.OnHostagePickUp[/p][/*] [p]Added Instance.OnHostageDrop[/p][/*] [p]Added Instance.OnHostageRescue[/p][/*] [p]Added Instance.OnHostageKill[/p][/*][/*] [p]Added new top level export Console[/p] [p]Added Console.GetConvarBoolean[/p][/*] [p]Added Console.GetConvarNumber[/p][/*] [p]Added Console.GetConvarString[/p][/*] [p]Added Console.GetConvarVector[/p][/*] [p]Added Console.GetConvarQAngle[/p][/*] [p]Added Console.GetConvarColor[/p][/*] [p]Added Console.SetConvar[/p] [p]Console.SetConvar is not restricted by sv_cheats and executes synchronously[/p][/*][/*] [p]Renamed Instance.Msg to Console.Log[/p][/*] [p]Moved Instance.ClientCommand, ServerCommand and RegisterCheatCommand to Console[/p][/*][/*] [p]Added new top level export GameRules[/p] [p]Added GameRules.StartWarmup[/p][/*] [p]Added GameRules.EndWarmup[/p][/*] [p]Added GameRules.GetTeamScore[/p][/*] [p]Added GameRules.AddTeamScore[/p][/*] [p]Added GameRules.TerminateRound[/p][/*] [p]Moved Instance.IsWarmupPeriod, IsFreezePeriod, IsTeamIntroPeriod, GetRoundsPlayed, GetRoundRemainingTime, SetRoundRemainingTime and AddTeamMoney to GameRules[/p][/*][/*] [p]Moved and renamed methods are still available in their original location, deprecated[/p][/*] [p]Added top-level custom_hud_layout classes HUD_TEAMMENU_VISIBLE andΒ HUD_CHAT_VISIBLE[/p][/*] [p]radar_element can now appear on the radar in every game mode, not just Rush[/p][/*] [p]Added support for GameRules.AddTeamMoney with CSTeamMoneyReason.NONE and an amount[/p][/*] [p]Fixed a crash in GameRules.AddTeamMoney with CSTeamMoneyReason.NONE[/p][/*] [p]Fixed CSTeamMoneyReason enum values not matching point_script.d.ts[/p][/*] [p]Fixed CSWeaponAttackType enum values not matching point_script.d.ts[/p][/*] [p]Fixed CSRadarPoint.IsVisibleToTeam returning a number instead of a boolean[/p][/*] [p]Fixed CSObservablePoint.IsObservableForTeam returning a number instead of a boolean[/p][/*] [p]Logged warnings now include the JS call stack[/p][/*] [p]Logged warnings now include details about bad argument values[/p][/*] [p]Logged warnings now count arguments from 0 instead of 1[/p][/*] [p]Improved auto complete of the map_workshop command[/p][/*]
- [p]Added Instance.Precache[/p]
- [p]Returns a CSPrecache object[/p][/*]
- [p]Added CSPrecache.IsServerLoading[/p][/*]
- [p]Added CSPrecache.IsServerLoaded[/p][/*]
- [p]Added CSPrecache.IsClientLoading[/p][/*]
- [p]Added CSPrecache.IsClientLoaded[/p][/*]
- [p]Added CSPrecache.IsLoadedForAll[/p][/*]
- [p]Added CSPrecache.Release[/p][/*]