Skip to content

Conversation

@Dolly132
Copy link
Contributor

  • Added DamageGame mode
  • Made it so zms can have their original speed during RLGL mode
  • Some code improvements

@Dolly132 Dolly132 marked this pull request as draft November 20, 2025 16:16
@Rushaway Rushaway marked this pull request as ready for review December 1, 2025 09:34
Copilot AI review requested due to automatic review settings December 1, 2025 09:34
Copy link

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

This PR introduces a new DamageGame mode where humans with the lowest damage dealt to zombies receive periodic damage, adds functionality to restore zombie original speeds during RLGL mode, and includes various code style improvements. The changes also add the zombiereloaded dependency and refactor VIPMode event handling.

  • Added DamageGame mode with timer-based damage penalties for low-damage dealers
  • Implemented zombie speed restoration logic for RLGL mode to preserve original speeds
  • Refactored event hook functions in VIPMode to be stock functions called from central handlers

Reviewed changes

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

Show a summary per file
File Description
sourceknight.yaml Added zombiereloaded dependency to the project configuration
addons/sourcemod/scripting/Fun_Modes/VIPMode.sp Refactored OnTakeDamagePost and ZR_OnClientInfected to be stock functions, removed redundant mode checks
addons/sourcemod/scripting/Fun_Modes/RedLightGreenLight.sp Added speed restoration logic with g_fOriginalSpeed tracking and ChangeSpeed macro
addons/sourcemod/scripting/Fun_Modes/DamageGame.sp New game mode implementation that tracks damage dealt and penalizes low-damage players
addons/sourcemod/scripting/FunModes.sp Integrated DamageGame mode, added ZR_OnClientInfected forward, refactored SDKHook handling, code style improvements

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

@Rushaway Rushaway merged commit c7c019b into srcdslab:main Dec 5, 2025
3 checks passed
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