From c04bac87f340c7b18248150d8d9992ee22ee0b8c Mon Sep 17 00:00:00 2001 From: Adam Olsen Date: Sun, 7 Oct 2001 22:47:59 +0000 Subject: [PATCH] - gib people who leave the map :) --- client.qc | 4 ++++ obituary.qc | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client.qc b/client.qc index c7b2adf..17cb5ae 100644 --- a/client.qc +++ b/client.qc @@ -2755,6 +2755,10 @@ void() PlayerPreThink = self.hover_time = (MAX_HOVER_FUEL * 2); } } + + if (self.health > 0 && pointcontents (self.origin) == CONTENTS_SOLID) + TF_T_Damage (self, world, world, self.health + 100, + TF_TD_IGNOREARMOUR, TF_TD_OTHER); }; /* diff --git a/obituary.qc b/obituary.qc index 020f03e..d3ed472 100644 --- a/obituary.qc +++ b/obituary.qc @@ -1188,7 +1188,9 @@ void (entity targ, entity attacker) Obituary_Player_Misc = Give_Frags_Out (targ, targ, -1, 1, 1, 1, 0); // logfrag (targ, targ); - if (targ.watertype == CONTENTS_WATER) { + if (pointcontents (self.origin) == CONTENTS_SOLID) { + deathstring = " left the map\n"; + } else if (targ.watertype == CONTENTS_WATER) { local float rnum = random (); if (rnum < FRAC (1, 4))