Code to be Added or Changed
g_combat.c
Look for the G_Damage function, and fin these lines:
knockback = damage;
if ( knockback > 200 ) {
knockback = 200;
}
Increasing this upper limit will let the player take more knockback. Now you can just change the value of knockback, the higher the value the further the knockback, but even changing it to 300 will send you flying a good distance, so don't over do it.
if ( knockback > 300 ) {
knockback = 300;
}
Alternatively you could add some code to give you more knockback from splash damage only, like this, giving you double the knockback:
//CORVEN splash damage knockback
if ( dflags & DAMAGE_RADIUS ) {
knockback *= 2;
} |