summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2010-04-03 20:47:11 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:33 +0000
commit784c7b351d013e77d5aeaca6fdf98341fb75b284 (patch)
treecac2dbb07bf5ea1f337c7bdcc30ebf0d39f551ce /src/game/g_cmds.c
parent3ffe579310f49043d7350adc7b5a2f3d23b48c85 (diff)
* Queue BP according to the proportion of damage that came from not-friendly-fire (e.g. things killed entirely by FF have their BP returned instantly, and those killed by enemies/other have their BP queued, and others split accordingly)
* Human buildings dying from no power now uses MOD_NOCREEP instead of MOD_SUICIDE * Attribute deaths caused by nopower, nocreep, and human buildable blowup-chain-reactions to the person that killed the egg/power/original building that started the chain * Minor cleanups of unused functions/variables
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 65f34ef6..d194c142 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1700,7 +1700,8 @@ void Cmd_Destroy_f( gentity_t *ent )
ent->client->ps.stats[ STAT_MISC ] +=
BG_Buildable( traceEnt->s.modelindex )->buildTime / 4;
}
- G_LogDestruction( traceEnt, ent, MOD_DECONSTRUCT );
+ G_Damage( traceEnt, ent, ent, forward, tr.endpos,
+ traceEnt->health, 0, MOD_DECONSTRUCT );
G_FreeEntity( traceEnt );
}
}