Skip to content

Implement a new system allowing players to select custom beam sprites…#1266

Open
akanora wants to merge 2 commits intoshavitush:masterfrom
akanora:patch-1
Open

Implement a new system allowing players to select custom beam sprites…#1266
akanora wants to merge 2 commits intoshavitush:masterfrom
akanora:patch-1

Conversation

@akanora
Copy link
Contributor

@akanora akanora commented Feb 3, 2026

Implement a new system allowing players to select custom beam sprites for individual zones and tracks via the Custom Zones menu.

Key changes:

  • Replaced the single gCV_UseCustomSprite convar with a list of available sprites defined in shavit-zones.cfg.
  • Added gA_ZoneSprites to store valid sprite options parsed from config.
  • Updated DrawZone to support per-client sprite rendering, allowing different players to see different zone boundaries.
  • Added "Sprite" option to the Custom Zones menu (sm_czones), listing available sprites dynamically.
  • Implemented cookie storage for sprite preferences so selections persist across sessions.

… for individual zones and tracks via the Custom Zones menu.

Key changes:
- Replaced the single `gCV_UseCustomSprite` convar with a list of available sprites defined in `shavit-zones.cfg`.
- Added `gA_ZoneSprites` to store valid sprite options parsed from config.
- Updated `DrawZone` to support per-client sprite rendering, allowing different players to see different zone boundaries.
- Added "Sprite" option to the Custom Zones menu (`sm_czones`), listing available sprites dynamically.
- Implemented cookie storage for sprite preferences so selections persist across sessions.
…a previously loaded sprite instead of the expected default.

- Added an explicit reset loop in `LoadZonesConfig` to clear stale settings (specifically `sBeam`) before reading the new configuration.
- Updated `LoadZoneSettings` to correctly fall back to the first custom sprite in the list (index 0) when no beam is specified, ensuring the intended default sprite is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant