Feb 25, 2026
View on Steam

Counter-Strike 2 Update

3/5 Moderate

Workshop map creators gain persistent save data via Steam Cloud and advanced scripting hooks for damage and player input.

Share:

Key Changes

  • 1Added persistent Workshop map save data (up to 1MB) via Steam Cloud
  • 2New Instance.OnModifyPlayerDamage hook for precise damage manipulation
  • 3Added player input detection methods (IsInputPressed, WasInputJustPressed, etc.)
  • 4Map guides for de_ancient and de_ancient_night are now cross-compatible
  • 5Added CSDamageFlags.IGNORE_ARMOR for custom damage logic
  • 6Fixed CSDamageTypes export naming error

All Changes

🛠️Map Scripting(14)

  • newInstance.SetSaveData: Added Instance.SetSaveData to allow maps to store information.
  • newInstance.GetSaveData: Added Instance.GetSaveData to retrieve stored map information.
  • newWorkshop Maps: Workshop maps can now write up to 1MB of save data.
  • newWorkshop Maps: Workshop saves now leverage Steam Cloud to persist across different installs.
  • newsv_workshop_map_save_data_max_filesize_mb: Added sv_workshop_map_save_data_max_filesize_mb to configure the save data size limit.
  • newInstance.OnModifyPlayerDamage: Added Instance.OnModifyPlayerDamage, called after damage calculations but before health/armor modification.
  • changeInstance.OnModifyPlayerDamage: Instance.OnModifyPlayerDamage replaces the deprecated Instance.OnBeforePlayerDamage.
  • newInstance.OnModifyPlayerDamage: Instance.OnModifyPlayerDamage now includes hitgroup in the event data.
  • newOnPlayerDamage: Added hitgroup data to the OnPlayerDamage event.
  • newCSDamageFlags.IGNORE_ARMOR: Added CSDamageFlags.IGNORE_ARMOR to scripting flags.
  • newCSPlayerPawn.IsInputPressed: Added CSPlayerPawn.IsInputPressed to check current player input state.
  • newCSPlayerPawn.WasInputJustPressed: Added CSPlayerPawn.WasInputJustPressed to detect new player inputs.
  • newCSPlayerPawn.WasInputJustReleased: Added CSPlayerPawn.WasInputJustReleased to detect when a player stops an input.
  • newCSInputs: Added enum CSInputs for scripting use.

🗺️Maps(1)

  • changede_ancient: Map guides for de_ancient can now be used on de_ancient_night and vice versa.

🐛Bug Fixes(1)

  • fixCSDamageTypes: Fixed a bug where CSDamageTypes was incorrectly exported under the name CSDamageType.

Summary

Map Scripting

This update introduces significant tools for Workshop map developers, most notably the ability to save up to 1MB of persistent data per map that syncs via Steam Cloud. New scripting hooks like Instance.OnModifyPlayerDamage provide deeper control over combat mechanics, while new input detection methods allow for more interactive custom game modes.

Maps & Misc

Quality of life improvements for map guides ensure that guides created for the standard version of Ancient are now compatible with the night version and vice versa.