Skip to content

SERVER: PHD Flopper fix#159

Merged
MotoLegacy merged 9 commits into
nzp-team:mainfrom
beginnerToSourceSDK:PHD-Flopper-fix
May 5, 2026
Merged

SERVER: PHD Flopper fix#159
MotoLegacy merged 9 commits into
nzp-team:mainfrom
beginnerToSourceSDK:PHD-Flopper-fix

Conversation

@beginnerToSourceSDK
Copy link
Copy Markdown
Contributor

Description of Changes


SERVER: Possible fix for PHD flopper explosions contributing to gun game scores, and thus wrongly upgrading tiers.

Visual Sample


fte-20260429210003-0

Checklist


  • [X ] I have thoroughly tested my changes to the best of my ability
  • [X ] I confirm I have not contributed anything that would impact Nazi Zombies: Portable's licensing and usage
  • This Pull Request fixes a critical issue that should be reviewed and merged as soon as possible

@beginnerToSourceSDK beginnerToSourceSDK changed the title PHD Flopper fix SERVER: PHD Flopper fix Apr 30, 2026
@beginnerToSourceSDK
Copy link
Copy Markdown
Contributor Author

Sorry if it causes any problems, but I had to change the damage type of the perk :)

Says on the tin, implemented a new damage type for to fix this bug without compatibility problems with other weapons
Comment thread source/server/damage.qc
#define DMG_SCORE_GRENADE 50 // Death by Grenade.
#define DMG_SCORE_EXPLOSIVE 60 // Death by Explosive Weapon.
#define DMG_SCORE_TESLA 50 // Death by Tesla.
#define DMG_SCORE_FLOPPER 50 // Death by PhD Flopper
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gamemode_Festive_ScoreForDamage will need modified to add support for this type and return 90 points.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Understood

}
};

void(entity attacker, float death_style) Gamemode_GunGame_DieHandler =
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Flopper isn't a guaranteed kill in the later rounds. Do you get points awarded for non-killing PhD damage too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, it does not currently. Should it be that way?

Copy link
Copy Markdown
Member

@MotoLegacy MotoLegacy left a comment

Choose a reason for hiding this comment

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

Left a couple comments. Would you also mind adding some unit tests to test_score.qc to make sure we always return 0 for PhD Flopper damage/kills in Gun Game, and 90 for kills in Festive? And update Test_AddScore_DamageTypes to reflect your new type?

Feel free to ask for help on this.

Copy link
Copy Markdown
Member

@MotoLegacy MotoLegacy left a comment

Choose a reason for hiding this comment

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

Still missing the required additional unit tests I asked for to for your new behaviors. Otherwise LGTM.

For clarity's sake
@MotoLegacy MotoLegacy merged commit 4f12006 into nzp-team:main May 5, 2026
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