Skip to content

[UPD] Item Purchase Limits#1

Open
ShookEagle wants to merge 10 commits intodevfrom
feat/itemLimits
Open

[UPD] Item Purchase Limits#1
ShookEagle wants to merge 10 commits intodevfrom
feat/itemLimits

Conversation

@ShookEagle
Copy link
Copy Markdown

Overview

Introduces a unifying item purchase limit system for the shop. Previously, items implemented their own limit system, causing repeated functionality.

Three Limit Modes:

  • OFF - No limits (default behavior)
  • PER_PLAYER - Each player can purchase up to X items
  • PER_TEAM - The entire team can purchase up to X items collectively

Fake ConVars

All items now have associated convars to set limits temporarily by players with high enough permissions.

  • css_ttt_shop_{item}_max_purchases - Maximum number of times a player/team can purchase that item per round
  • css_ttt_shop_{item}_limit_mode - 0 = Unlimited, 1 = Per Player, 2 = Per Team

Item Changes

  • All Items implementing their own limits were shifted to this system
  • Hurt Station changed from Unlimited -> 1 Per Player

@ShookEagle ShookEagle self-assigned this Jan 4, 2026
@ShookEagle ShookEagle added priority::3 Medium We want to address this but may have other higher priority items. status::3 Development In the process of being worked on by someone, should be assigned at this point type::2 Update Changes to currently existing features labels Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority::3 Medium We want to address this but may have other higher priority items. status::3 Development In the process of being worked on by someone, should be assigned at this point type::2 Update Changes to currently existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant