Skip to content

fix: night vision abuse and increased max world bound checks #73 - #74

Merged
ADRFranklin merged 1 commit into
masterfrom
fix-issue-73
Aug 11, 2025
Merged

fix: night vision abuse and increased max world bound checks #73#74
ADRFranklin merged 1 commit into
masterfrom
fix-issue-73

Conversation

@ADRFranklin

Copy link
Copy Markdown
Collaborator

This pull request introduces improvements to player sync handling, specifically for night vision and thermal goggles, and expands the allowed world boundaries for position validation. The main changes add tracking for goggles usage and timing, update the sync logic to prevent unwanted firing when goggles are equipped, and adjust map boundary checks to allow a much larger playable area.

Player goggles sync improvements:

  • Added gogglesTick and gogglesUsed arrays to the Player namespace to track when goggles are equipped and how long they've been used (Player.cpp, Player.h). [1] [2]
  • Updated sync logic in SyncProcessing to block the fire key when night vision or thermal goggles are equipped, and implemented a timer-based mechanism to prevent rapid toggling or firing while goggles are active (SyncProcessing.inl).
  • Included Utils.h in SyncProcessing.h to support new timing logic.

World boundary expansion:

  • Increased the allowed X/Y/Z world coordinates in ValidatePosition to support much larger map areas, and relaxed Z-axis bounds for more vertical freedom (Utils.cpp).

@ADRFranklin
ADRFranklin merged commit 4fcae70 into master Aug 11, 2025
3 checks passed
@ADRFranklin
ADRFranklin deleted the fix-issue-73 branch August 11, 2025 13:31
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