
Rocket Jumping Hack!
More Jump! No
Damage! Halaluya!
This tutorial will;
a) remove self damage for rocket explosions, and
b) allow you to jump higher.
Remember to add in the blue code.
We only need to add 4 lines to g_combat.c in T_Damage procedure:
void T_Damage
(edict_t *targ, edict_t *inflictor, edict_t *attacker, vec3_t dir, vec3_t
point, vec3_t normal, int damage, int knockback, int dflags, int mod)
{
gclient_t
*client;
int take;
int save;
int asave;
int psave;
int te_sparks;
if (!targ->takedamage)
return;
if ((mod = MOD_R_SPLASH) && (targ == attacker))
{
damage = 0; // No Damage
knockback *= 1.2; // Rocket Jumping Jump Height * 1.2
}
//
friendly fire avoidance
//
if enabled you can't hurt teammates (but you can hurt yourself)
//
knockback still occurs
...
};
Tutorial by [L]arou[X]
Quake Style - Tutorials