From f15ee5ac6702e14a827a2643bfa893796c5659df Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Sat, 29 Feb 2020 02:31:53 +0000 Subject: add !practise command --- src/game/g_combat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/g_combat.c') diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 5350895..85880ef 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -1336,6 +1336,9 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, if(targ->s.eType == ET_BUILDABLE && g_cheats.integer && g_devmapNoStructDmg.integer) return; + + if( targ->s.eType == ET_BUILDABLE && g_practise.integer ) + return; } // add to the attacker's hit counter -- cgit