[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"cs2-update-10":3},{"notFound":4,"detail":5},false,{"id":6,"title":7,"enTitle":8,"posttimeMs":9,"officialZhAtMs":10,"zhSource":11,"steamUrl":12,"postId":13,"blocks":14,"enBlocks":180},10,"CS2 更新 · 10月23日","Counter-Strike 2 Update · Oct 23",1792709770000,1793060329704,"official","https:\u002F\u002Fstore.steampowered.com\u002Fnews\u002Fapp\u002F730\u002Fview\u002F694275728822244200","",[15,18],{"kind":16,"text":17},"heading","[ 地图脚本 ]",{"kind":19,"items":20},"list",[21,45,87,120,141,144,147,150,153,156,159,162,165,168,171,174,177],{"text":22,"children":23},"新增Instance.Precache",[24,27,30,33,36,39,42],{"text":25,"children":26},"返回一个CSPrecache对象",[],{"text":28,"children":29},"新增CSPrecache.IsServerLoading",[],{"text":31,"children":32},"新增CSPrecache.IsServerLoaded",[],{"text":34,"children":35},"新增CSPrecache.IsClientLoading",[],{"text":37,"children":38},"新增CSPrecache.IsClientLoaded",[],{"text":40,"children":41},"新增CSPrecache.IsLoadedForAll",[],{"text":43,"children":44},"新增CSPrecache.Release",[],{"text":46,"children":47},"新增CSHostage",[48,51,54,57,60,63,66,69,72,75,78,81,84],{"text":49,"children":50},"新增CSHostage.IsBeingPickedUp",[],{"text":52,"children":53},"新增CSHostage.IsBeingCarried",[],{"text":55,"children":56},"新增CSHostage.IsRescued",[],{"text":58,"children":59},"新增CSHostage.GetRescuer",[],{"text":61,"children":62},"新增CSHostage.GetPickUpStartTime",[],{"text":64,"children":65},"新增CSHostage.GetPickUpFinishTime",[],{"text":67,"children":68},"新增CSPlayerPawn.GetHostage",[],{"text":70,"children":71},"新增Instance.OnHostagePickUpStart",[],{"text":73,"children":74},"新增Instance.OnHostagePickUpAbort",[],{"text":76,"children":77},"新增Instance.OnHostagePickUp",[],{"text":79,"children":80},"新增了Instance.OnHostageDrop",[],{"text":82,"children":83},"新增Instance.OnHostageRescue",[],{"text":85,"children":86},"新增Instance.OnHostageKill",[],{"text":88,"children":89},"新增顶层导出项 Console",[90,93,96,99,102,105,108,111,114,117],{"text":91,"children":92},"新增Console.GetConvarBoolean",[],{"text":94,"children":95},"新增Console.GetConvarNumber",[],{"text":97,"children":98},"新增Console.GetConvarString",[],{"text":100,"children":101},"新增Console.GetConvarVector",[],{"text":103,"children":104},"新增Console.GetConvarQAngle",[],{"text":106,"children":107},"新增Console.GetConvarColor",[],{"text":109,"children":110},"新增Console.SetConvar",[],{"text":112,"children":113},"Console.SetConvar不受 sv_cheats限制，并且会同步执行",[],{"text":115,"children":116},"将Instance.Msg重命名为Console.Log",[],{"text":118,"children":119},"将Instance.ClientCommand、ServerCommand和RegisterCheatCommand移至 Console",[],{"text":121,"children":122},"新增顶层导出GameRules",[123,126,129,132,135,138],{"text":124,"children":125},"新增GameRules.StartWarmup",[],{"text":127,"children":128},"新增GameRules.EndWarmup",[],{"text":130,"children":131},"新增GameRules.GetTeamScore",[],{"text":133,"children":134},"新增GameRules.AddTeamScore",[],{"text":136,"children":137},"新增GameRules.TerminateRound",[],{"text":139,"children":140},"将Instance.IsWarmupPeriod、IsFreezePeriod、IsTeamIntroPeriod、GetRoundsPlayed、GetRoundRemainingTime、SetRoundRemainingTime和AddTeamMoney移至GameRules",[],{"text":142,"children":143},"已移动和重命名的方法仍可在其原位置使用，但已被弃用",[],{"text":145,"children":146},"新增顶层custom_hud_layout类HUD_TEAMMENU_VISIBLE和HUD_CHAT_VISIBLE",[],{"text":148,"children":149},"radar_element现在可以在所有游戏模式的雷达上显示，而不再仅限于冲锋模式",[],{"text":151,"children":152},"新增对GameRules.AddTeamMoney搭配CSTeamMoneyReason.NONE与金额参数的支持",[],{"text":154,"children":155},"修复了在GameRules.AddTeamMoney中使用CSTeamMoneyReason.NONE时崩溃的问题",[],{"text":157,"children":158},"修复了CSTeamMoneyReason枚举值与point_script.d.ts不匹配的问题",[],{"text":160,"children":161},"修复了CSWeaponAttackType枚举值与point_script.d.ts不匹配的问题",[],{"text":163,"children":164},"修复了CSRadarPoint.IsVisibleToTeam返回数字而非布尔值的问题",[],{"text":166,"children":167},"修复了CSObservablePoint.IsObservableForTeam返回数字而非布尔值的问题",[],{"text":169,"children":170},"现在已记录的警告包含JS调用堆栈",[],{"text":172,"children":173},"现在日志中记录的警告包含有关错误参数值的详细信息",[],{"text":175,"children":176},"现在日志警告中的参数计数从0开始，而非从1开始",[],{"text":178,"children":179},"改进了map_workshop命令的自动补全功能",[],[181,183],{"kind":16,"text":182},"[ MAP SCRIPTING ]",{"kind":19,"items":184},[185,209,251,284,305,308,311,314,317,320,323,326,329,332,335,338,341],{"text":186,"children":187},"Added Instance.Precache",[188,191,194,197,200,203,206],{"text":189,"children":190},"Returns a CSPrecache object",[],{"text":192,"children":193},"Added CSPrecache.IsServerLoading",[],{"text":195,"children":196},"Added CSPrecache.IsServerLoaded",[],{"text":198,"children":199},"Added CSPrecache.IsClientLoading",[],{"text":201,"children":202},"Added CSPrecache.IsClientLoaded",[],{"text":204,"children":205},"Added CSPrecache.IsLoadedForAll",[],{"text":207,"children":208},"Added CSPrecache.Release",[],{"text":210,"children":211},"Added CSHostage",[212,215,218,221,224,227,230,233,236,239,242,245,248],{"text":213,"children":214},"Added CSHostage.IsBeingPickedUp",[],{"text":216,"children":217},"Added CSHostage.IsBeingCarried",[],{"text":219,"children":220},"Added CSHostage.IsRescued",[],{"text":222,"children":223},"Added CSHostage.GetRescuer",[],{"text":225,"children":226},"Added CSHostage.GetPickUpStartTime",[],{"text":228,"children":229},"Added CSHostage.GetPickUpFinishTime",[],{"text":231,"children":232},"Added CSPlayerPawn.GetHostage",[],{"text":234,"children":235},"Added Instance.OnHostagePickUpStart",[],{"text":237,"children":238},"Added Instance.OnHostagePickUpAbort",[],{"text":240,"children":241},"Added Instance.OnHostagePickUp",[],{"text":243,"children":244},"Added Instance.OnHostageDrop",[],{"text":246,"children":247},"Added Instance.OnHostageRescue",[],{"text":249,"children":250},"Added Instance.OnHostageKill",[],{"text":252,"children":253},"Added new top level export Console",[254,257,260,263,266,269,272,275,278,281],{"text":255,"children":256},"Added Console.GetConvarBoolean",[],{"text":258,"children":259},"Added Console.GetConvarNumber",[],{"text":261,"children":262},"Added Console.GetConvarString",[],{"text":264,"children":265},"Added Console.GetConvarVector",[],{"text":267,"children":268},"Added Console.GetConvarQAngle",[],{"text":270,"children":271},"Added Console.GetConvarColor",[],{"text":273,"children":274},"Added Console.SetConvar",[],{"text":276,"children":277},"Console.SetConvar is not restricted by sv_cheats and executes synchronously",[],{"text":279,"children":280},"Renamed Instance.Msg to Console.Log",[],{"text":282,"children":283},"Moved Instance.ClientCommand, ServerCommand and RegisterCheatCommand to Console",[],{"text":285,"children":286},"Added new top level export GameRules",[287,290,293,296,299,302],{"text":288,"children":289},"Added GameRules.StartWarmup",[],{"text":291,"children":292},"Added GameRules.EndWarmup",[],{"text":294,"children":295},"Added GameRules.GetTeamScore",[],{"text":297,"children":298},"Added GameRules.AddTeamScore",[],{"text":300,"children":301},"Added GameRules.TerminateRound",[],{"text":303,"children":304},"Moved Instance.IsWarmupPeriod, IsFreezePeriod, IsTeamIntroPeriod, GetRoundsPlayed, GetRoundRemainingTime, SetRoundRemainingTime and AddTeamMoney to GameRules",[],{"text":306,"children":307},"Moved and renamed methods are still available in their original location, deprecated",[],{"text":309,"children":310},"Added top-level custom_hud_layout classes HUD_TEAMMENU_VISIBLE and HUD_CHAT_VISIBLE",[],{"text":312,"children":313},"radar_element can now appear on the radar in every game mode, not just Rush",[],{"text":315,"children":316},"Added support for GameRules.AddTeamMoney with CSTeamMoneyReason.NONE and an amount",[],{"text":318,"children":319},"Fixed a crash in GameRules.AddTeamMoney with CSTeamMoneyReason.NONE",[],{"text":321,"children":322},"Fixed CSTeamMoneyReason enum values not matching point_script.d.ts",[],{"text":324,"children":325},"Fixed CSWeaponAttackType enum values not matching point_script.d.ts",[],{"text":327,"children":328},"Fixed CSRadarPoint.IsVisibleToTeam returning a number instead of a boolean",[],{"text":330,"children":331},"Fixed CSObservablePoint.IsObservableForTeam returning a number instead of a boolean",[],{"text":333,"children":334},"Logged warnings now include the JS call stack",[],{"text":336,"children":337},"Logged warnings now include details about bad argument values",[],{"text":339,"children":340},"Logged warnings now count arguments from 0 instead of 1",[],{"text":342,"children":343},"Improved auto complete of the map_workshop command",[]]