Skip to content

Conversation

@DESTROYGIRL
Copy link
Contributor

Description

Rather than resetting all XP only rank players down to sergeant if they had higher than 10 xp, otherwise players keep the xp they had

Toolchain

  • Windows MSVC VS2022

@DESTROYGIRL DESTROYGIRL added this to the Continued Development milestone Jan 23, 2026
@DESTROYGIRL DESTROYGIRL requested a review from a team January 23, 2026 17:15
@DESTROYGIRL DESTROYGIRL added the JGR Related to the Juggernaut gamemode. label Jan 23, 2026
if (pPlayer && pPlayer->m_iXP.Get() > 10)
{
pPlayer->m_iXP.GetForModify() = 0;
pPlayer->m_iXP.GetForModify() = 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could maybe use the constant XP_SERGEANT from src/game/shared/neo/neo_weapon_loadout.h

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those should probably be moved into neo_enums or something because I did not see them and they don't seem to be used inside of gamerules for xp stuff currently

@sunzenshen sunzenshen requested a review from a team January 26, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JGR Related to the Juggernaut gamemode.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants