Added Instance.Precache, which returns a CSPrecacheobject. Its new methods: IsServerLoading, IsServerLoaded, IsClientLoading, IsClientLoaded, IsLoadedForAll і Release.
Added CSHostage with the methods IsBeingPickedUp, IsBeingCarried, IsRescued, GetRescuer, GetPickUpStartTime і GetPickUpFinishTime. Also added CSPlayerPawn.GetHostage and the events Instance.OnHostagePickUpStart, OnHostagePickUpAbort, OnHostagePickUp, OnHostageDrop, OnHostageRescue і OnHostageKill.
Added the top-level export Console with the methods GetConvarBoolean, GetConvarNumber, GetConvarString, GetConvarVector, GetConvarQAngle, GetConvarColor і SetConvar. Console.SetConvar runs synchronously and is not limited by sv_cheats. Instance.Msg renamed to Console.Log, а Instance.ClientCommand, ServerCommand і RegisterCheatCommand moved to Console.
Added the top-level export GameRules from StartWarmup, EndWarmup, GetTeamScore, AddTeamScore і TerminateRoundThe following were moved to it: Instance.IsWarmupPeriod, IsFreezePeriod, IsTeamIntroPeriod, GetRoundsPlayed, GetRoundRemainingTime, SetRoundRemainingTime і AddTeamMoneyThe moved and renamed methods remain available in their previous location, but are marked as deprecated.
Other changes
For custom_hud_layout added the top-level classes HUD_TEAMMENU_VISIBLE і HUD_CHAT_VISIBLEThe radar_element element can now be displayed on the radar in all modes, not just Rush.
Added support for GameRules.AddTeamMoney from CSTeamMoneyReason.NONE and amount; fixed this method crashing with NONE.
Fixed a mismatch in the values of CSTeamMoneyReason і CSWeaponAttackType у point_script.d.ts. CSRadarPoint.IsVisibleToTeam і CSObservablePoint.IsObservableForTeam now return a boolean instead of a number.
Log warnings now include the JavaScript call stack and details of invalid argument values; argument numbering starts at 0. Also improved command autocomplete for map_workshop.
Comments (0)