2026-02-25
15 changes
Workshop Maps Can Now Save Up to 1MB of Data via Steam Cloud
Workshop maps can now persist up to 1MB of save data across installs using Steam Cloud, with the size limit configurable via a new convar. Scripting also gains a new damage event that fires after damage is calculated but before armor and health are modified, replacing Instance.OnBeforePlayerDamage, plus new CSPlayerPawn input-state methods. Map guides written for de_ancient now also work on de_ancient_night.
Ancientscripting
- reworkAdded Instance.SetSaveData
- reworkWorkshop maps can write up to 1MB of save data.
- reworkWorkshop saves leverage Steam Cloud and persist across installs.
- reworkSave data size limit can be configured with sv_workshop_map_save_data_max_filesize_mb.
- reworkCalled after all damage properties have been calculated, just before armor and health are modified
- reworkReplaces Instance.OnBeforePlayerDamage
- reworkIncludes hitgroup in event data
- reworkAdded hitgroup to OnPlayerDamage event data
- reworkAdded CSDamageFlags.IGNORE_ARMOR
- reworkAdded CSPlayerPawn.IsInputPressed
- reworkAdded CSPlayerPawn.WasInputJustPressed
- reworkAdded CSPlayerPawn.WasInputJustReleased
- reworkAdded enum CSInputs
- fixFixed bug where CSDamageTypes was exported under the name CSDamageType
map
- reworkMap guides for de_ancient can now be used on de_ancient_night and vice versa.Ancient
Valve's original notes
[p]\[ MAP SCRIPTING ][/p][list][*][p]Added Instance.SetSaveData[/p][/*][*][p]Added Instance.GetSaveData[/p][list][*][p]Workshop maps can write up to 1MB of save data.[/p][/*][*][p]Workshop saves leverage Steam Cloud and persist across installs.[/p][/*][*][p]Save data size limit can be configured with sv_workshop_map_save_data_max_filesize_mb.[/p][/*][/list][/*][*][p]Added Instance.OnModifyPlayerDamage[/p][list][*][p]Called after all damage properties have been calculated, just before armor and health are modified[/p][/*][*][p]Replaces Instance.OnBeforePlayerDamage[/p][/*][*][p]Includes hitgroup in event data[/p][/*][/list][/*][*][p]Added hitgroup to OnPlayerDamage event data[/p][/*][*][p]Added CSDamageFlags.IGNORE_ARMOR[/p][/*][*][p]Added CSPlayerPawn.IsInputPressed[/p][/*][*][p]Added CSPlayerPawn.WasInputJustPressed[/p][/*][*][p]Added CSPlayerPawn.WasInputJustReleased[/p][/*][*][p]Added enum CSInputs[/p][/*][*][p]Fixed bug where CSDamageTypes was exported under the name CSDamageType[/p][/*][/list][p]\[ MISC ][/p][list][*][p]Map guides for de_ancient can now be used on de_ancient_night and vice versa.[/p][/*][/list]
Published by Valve on Steam.