Top 5 This Week

Related Posts

CS2 February 26 Update Brings Several Improvements to Map Scripting

Valve’s latest Counter-Strike 2 update brings back essential scripting tools for workshop creators, including Steam Cloud data saving and player input detection. Check out the full breakdown of the February 25 changes.

Updated Add as preferred source

Valve has shipped out a new update to Counter-Strike 2 on February 26, and while it isn’t a major update that fans have been hoping for, it does bring with it some improvements to map scripting alongside a minor change for map guides.

For starters, workshop maps in CS2 can now save and load data to and from Steam Cloud servers, with save files taking up to a maximum of 1 MB. This, alongside a number of aspects related to map scripting, was already existent back in CS:GO, but was removed from the game when it got upgraded to CS2.

There are also a number of new improvements to scripting that let maps modify instances of damage dealt to players and let maps read player inputs on their keyboard.

- Advertisement -

Lastly, there’s a tiny change to map guides, with guides for Ancient now being usable on the night version of the map and vice versa.

If you’re curious to know more about the patch notes of the latest CS2 update, we’ve got you covered.

CS2 February 26 Update: Full Patch Notes

Here are the detailed patch notes of the CS2 February 26 update, as confirmed by Valve.

[ MAP SCRIPTING ]

  • Added Instance.SetSaveData
  • Added Instance.GetSaveData
    • Workshop maps can write up to 1MB of save data.
    • Workshop saves leverage Steam Cloud and persist across installs.
    • Save data size limit can be configured with sv_workshop_map_save_data_max_filesize_mb.
  • Added Instance.OnModifyPlayerDamage
    • Called after all damage properties have been calculated, just before armor and health are modified
    • Replaces Instance.OnBeforePlayerDamage
    • Includes hitgroup in event data
  • Added hitgroup to OnPlayerDamage event data
  • Added CSDamageFlags.IGNORE_ARMOR
  • Added CSPlayerPawn.IsInputPressed
  • Added CSPlayerPawn.WasInputJustPressed
  • Added CSPlayerPawn.WasInputJustReleased
  • Added enum CSInputs
  • Fixed bug where CSDamageTypes was exported under the name CSDamageType

[ MISC ]

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

More on Counter Strike 2

- Advertisement -
Sonu Banerjee
Sonu Banerjeehttp://www.talkesport.com
Fervent gamer who's either attempting (and failing) to master competitive shooters, or savoring co-op RPGs with friends. When flying solo, Sonu can be found replaying Halo for the ‘I’ve lost track’th time or grinding the newest roguelike title on Steam. Beyond the gaming realm, he enjoys binging on sitcoms, watching offbeat movies, and reading.

Popular Articles