Skip to content

feat(core): Translations support, entities management, cleanup code#22

Merged
Rushaway merged 2 commits intosrcdslab:masterfrom
Rushaway:x
Mar 21, 2026
Merged

feat(core): Translations support, entities management, cleanup code#22
Rushaway merged 2 commits intosrcdslab:masterfrom
Rushaway:x

Conversation

@Rushaway
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 20, 2026 16:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds translation support and improves runtime safety/cleanup for the Shop_ZRSkins SourceMod plugin, aligning chat output and preview handling with more robust entity/timer management.

Changes:

  • Introduces a new translations file and loads it at plugin startup for localized chat messages.
  • Refactors preview/timer logic to use userids + TIMER_FLAG_NO_MAPCHANGE, adds client validation, and adds an edicts-limit guard before spawning preview entities.
  • Updates CI packaging to include the addons/sourcemod/translations directory in build artifacts.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
addons/sourcemod/translations/Shop_ZRSkins.phrases.txt Adds localized phrases used by the plugin’s chat output.
addons/sourcemod/scripting/Shop_ZRSkins.sp Loads translations, refactors skin/preview logic, adds validation and entity-limit checks, and cleans up code paths.
.github/workflows/ci.yml Copies translations into the packaged artifact so servers receive the new phrases file.

Comment thread addons/sourcemod/scripting/Shop_ZRSkins.sp Outdated
Comment thread addons/sourcemod/scripting/Shop_ZRSkins.sp Outdated
Comment thread addons/sourcemod/translations/Shop_ZRSkins.phrases.txt
@Rushaway Rushaway merged commit 9ebe2ab into srcdslab:master Mar 21, 2026
3 checks passed
@Rushaway Rushaway deleted the x branch March 21, 2026 06:44
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.

2 participants