PDA

View Full Version : Capping xp per kill


rabbet330
06-01-2019, 09:12 AM
Is there a way to cap experience per kill? I'm experimenting with higher expmultiplier values in the rule_values table, but of course that means you could theoretically skip levels with a single kill. I'd like to combine that with an absolute maximum of 20% (one "bar") per character per kill.

Maze_EQ
06-03-2019, 01:38 PM
It's a source change.



uint32 expcap = (GetEXPForLevel(GetLevel() + 1) - GetEXPForLevel(GetLevel())) * .14;
if (!resexp && add_exp > expcap) {
add_exp = expcap;
}

add_exp = GetEXP() + add_exp;


}

This would be in EXP.cpp

This will essentially cap ALL exp at 14% maximum, no matter the circumstances, other than resurrections where you lost > 14%.