Counter-Strike 2 Update: Map Scripting and API Improvements

Sep 25, 2025 | 0 comments

Counter-Strike 2 Update:

Map Scripting Updates:
– Updated tsconfig.json in the script_zoo for more accurate type analysis.
– Changed point_script entity behavior to stay inactive and listen for script changes if script load fails during spawn.
– Fixed potential crashes after unsuccessful script reload while in tools mode.
– Improved memory handling for Instance.OnBeforeReload callback.
– Updated methods to error instead of calling toString for arguments of the wrong type.
– Modified Instance.Msg and Instance.DebugScreenText to accept any type for text value.
– Resolved bug causing RunScriptInput to crash with null caller or activator.
– Replaced Instance.OnGameEvent with per-event registration methods for API stability.
– Added various new Instance methods for events like player connect, disconnect, round start and end, bomb plant and defuse, player kill, chat, gun fire, grenade throw, etc.
– Expanded functionality for Entity and CSWeaponBase classes.

Additional Changes:
– Included "train_zoo.vmap" with de_train assets for mapmakers.
– More details on API can be found in maps/editor/zoo/scripts/point_script.d.ts.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Related News

No results found.

Latest Game Guides

No results found.