summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2004-07-28 12:52:20 +0000
committerTim Angus <tim@ngus.net>2004-07-28 12:52:20 +0000
commit266d6696eb0659065bd9d605f91dd4e2e72eabe0 (patch)
tree7787ec7462c762726a18da20f6102d6fc5454d2f /src/game/g_active.c
parent8ff374ee05dc117e2f9d195969a0b7444954025f (diff)
* Most of the changes in the forum thread "Shake up"
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index acd6a4f1..91f513d6 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -1272,6 +1272,15 @@ void ClientThink_real( gentity_t *ent )
client->retriggerArmouryMenu = 0;
}
+ if( ent->suicideTime > 0 && ent->suicideTime < level.time )
+ {
+ ent->flags &= ~FL_GODMODE;
+ ent->client->ps.stats[ STAT_HEALTH ] = ent->health = 0;
+ player_die( ent, ent, ent, 100000, MOD_SUICIDE );
+
+ ent->suicideTime = 0;
+ }
+
// perform once-a-second actions
ClientTimerActions( ent, msec );
}