• You are not yet a member of GhostingSquad. Applying is fast and simple.
USCCA Referral
Sponsored / Referral
Concealed carry protection made simple
Training, legal defense, and peace of mind with USCCA.
Disclosure: I may earn a referral commission.
Learn More

Counter-Strike 2 Update

\[ MAP SCRIPTING ]


  • Added Instance.Precache

    • Returns a CSPrecache object


    • Added CSPrecache.IsServerLoading


    • Added CSPrecache.IsServerLoaded


    • Added CSPrecache.IsClientLoading


    • Added CSPrecache.IsClientLoaded


    • Added CSPrecache.IsLoadedForAll


    • Added CSPrecache.Release

  • Added CSHostage

    • Added CSHostage.IsBeingPickedUp


    • Added CSHostage.IsBeingCarried


    • Added CSHostage.IsRescued


    • Added CSHostage.GetRescuer


    • Added CSHostage.GetPickUpStartTime


    • Added CSHostage.GetPickUpFinishTime


    • Added CSPlayerPawn.GetHostage


    • Added Instance.OnHostagePickUpStart


    • Added Instance.OnHostagePickUpAbort


    • Added Instance.OnHostagePickUp


    • Added Instance.OnHostageDrop


    • Added Instance.OnHostageRescue


    • Added Instance.OnHostageKill

  • Added new top level export Console

    • Added Console.GetConvarBoolean


    • Added Console.GetConvarNumber


    • Added Console.GetConvarString


    • Added Console.GetConvarVector


    • Added Console.GetConvarQAngle


    • Added Console.GetConvarColor


    • Added Console.SetConvar

      • Console.SetConvar is not restricted by sv_cheats and executes synchronously

    • Renamed Instance.Msg to Console.Log


    • Moved Instance.ClientCommand, ServerCommand and RegisterCheatCommand to Console

  • Added new top level export GameRules

    • Added GameRules.StartWarmup


    • Added GameRules.EndWarmup


    • Added GameRules.GetTeamScore


    • Added GameRules.AddTeamScore


    • Added GameRules.TerminateRound


    • Moved Instance.IsWarmupPeriod, IsFreezePeriod, IsTeamIntroPeriod, GetRoundsPlayed, GetRoundRemainingTime, SetRoundRemainingTime and AddTeamMoney to GameRules

  • Moved and renamed methods are still available in their original location, deprecated


  • Added top-level custom_hud_layout classes HUD_TEAMMENU_VISIBLE and HUD_CHAT_VISIBLE


  • radar_element can now appear on the radar in every game mode, not just Rush


  • Added support for GameRules.AddTeamMoney with CSTeamMoneyReason.NONE and an amount


  • Fixed a crash in GameRules.AddTeamMoney with CSTeamMoneyReason.NONE


  • Fixed CSTeamMoneyReason enum values not matching point_script.d.ts


  • Fixed CSWeaponAttackType enum values not matching point_script.d.ts


  • Fixed CSRadarPoint.IsVisibleToTeam returning a number instead of a boolean


  • Fixed CSObservablePoint.IsObservableForTeam returning a number instead of a boolean


  • Logged warnings now include the JS call stack


  • Logged warnings now include details about bad argument values


  • Logged warnings now count arguments from 0 instead of 1


  • Improved auto complete of the map_workshop command

Continue reading...
 
Back
Top