Skip to content

make all map buttons pvper only - #12

Open
StrawWagen wants to merge 4 commits into
mainfrom
gm_darkfusion
Open

make all map buttons pvper only#12
StrawWagen wants to merge 4 commits into
mainfrom
gm_darkfusion

Conversation

@StrawWagen

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request restricts map button usage on the gm_darkfusion map to PvP players only, preventing builders from interacting with map buttons. The restriction only applies when the CFCPvp addon is present and includes a distance check to prevent remote activation via tools like Wire.

Changes:

  • Added a PlayerUse hook to block builder access to map buttons
  • Implemented distance validation to prevent remote button activation
  • Made the feature conditional on CFCPvp addon presence

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/map_scripts/maps/gm_darkfusion.lua Outdated
Comment thread lua/map_scripts/maps/gm_darkfusion.lua Outdated
StrawWagen and others added 3 commits February 15, 2026 01:07
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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