PatchDiff
newsabout

Map Scripting

GeneralSystem · Developer · Modding · Workshop · Mapmaking · Maps
5 patcheslast touched 4d ago▲ +9

Power trajectory

Up = buffed, down = nerfed
0+9Sep 16, 2025May 18, 2026Sep 16, 2025 — Counter-Strike 2 Update +0 / -0 (cum 0)Sep 25, 2025 — Counter-Strike 2 Update +4 / -0 (cum +4)Oct 13, 2025 — Counter-Strike 2 Pre-Release Update +3 / -0 (cum +7)Mar 4, 2026 — Counter-Strike 2 Update +2 / -0 (cum +9)May 18, 2026 — Counter-Strike 2 Update +0 / -0 (cum +9)
Zoom into one ability:8 abilities tracked
Filter by change type:6 types in this subject

Patch history

    • NewAPI FunctionsAdded

      Added numerous new scripting functions for player controllers, pawns, and weapon states (e.g., money management, helmet status, scoped state).

      new

    • 🔁ReworkOnPlayerUseactivator/caller

      Changed the activator to always be the player and the caller to always be the used entity for OnPlayerUse.

      rework

    • NewOnBulletImpacthitEntityAdded

      Added hitEntity to OnBulletImpact event data, allowing scripts to identify what was hit.

      API expansion

    • NewCSWeaponBaseAmmo MethodsAdded

      Added Get/Set methods for Clip and Reserve ammo, providing better weapon state control for modders.

      API expansion

    • 🐛Bug fixCSPlayerPawnDucking StateMissingFixed

      Fixed missing IsDucking() and IsDucked() methods for player pawns.

      Bugfix

    • 🔁Reworkcs_script enumsTypeScript compatible

      Updated cs_script enums to be importable and behave like TypeScript enums, improving developer workflow.

      Enums now behave like TypeScript enums.

    • NewScripting EnumsAdded

      Added several new enums including CSRoundEndReason and CSHitGroup to expand map scripting capabilities.

      Added CSRoundEndReason, CSHitGroup, etc.

    • 🔁ReworkInstance.OnBeforePlayerDamageModified

      Enhanced OnBeforePlayerDamage to allow scripts to receive and modify damage types and flags.

      Now receives and can modify damageType and damageFlags.

  1. Sep 25, 2025·Counter-Strike 2 Update+4
    • 📊Numerictsconfig targetes2022

      Updated tsconfig.json to target es2022, improving type analysis for script developers.

      Updated target for more accurate type analysis.

    • 🎯Behaviorpoint_scriptspawn behaviorremove selfinactive state

      point_script entities now remain inactive instead of being removed upon failed script loads, allowing for live updates in tools mode.

      Prevents entity deletion on failed script load in tools mode.

    • 🐛Bug fixpoint_scriptstability

      Fixed a crash that could occur when point_script failed to reload an invalid script in tools mode.

      Fixed crash on unsuccessful reload.

    • ✂️RemovedInstance.OnGameEventavailabilityAvailableRemoved

      Removed Instance.OnGameEvent in favor of specific event registration methods to improve API stability.

      Replaced by per-event registration methods.

    • NewInstancedebug toolsAdded

      Added DebugLine and DebugBox to the Instance API to assist mapmakers with visual debugging.

      Added DebugLine and DebugBox.

    • NewInstanceevent hooksAdded

      Added a wide array of new event hooks including RoundStart, RoundEnd, BombPlant, BombDefuse, and PlayerKill for more complex map scripting.

      Added various game event hooks (RoundStart, BombPlant, etc).

    • NewCSPlayerPawnstate queriesAdded

      Added new methods to check if a player is crouching or noclipping, allowing for more reactive script triggers.

      Added IsCrouching, IsCrouched, and IsNoclipping.

    • Newscripting systemcs_script

      Added cs_script, a JavaScript-based scripting system allowing map creators to implement more complex logic.

      JS integration

    • Newdemo mapscript_zoo.vmap

      Added script_zoo.vmap to demonstrate the functionality and usage of the new cs_script system.

      Example map