From c2772cce6c591f4b043da4526764298d88cce9a9 Mon Sep 17 00:00:00 2001 From: Michael Levin Date: Sat, 3 Oct 2009 11:25:47 +0000 Subject: Server logs look weird with MOD_SUICIDE listed as method of death for buildable deconstruction. Added two new MODs, MOD_DECONSTRUCT and MOD_NOCREEP for more descriptive reasons. --- src/game/bg_public.h | 2 ++ src/game/g_buildable.c | 6 +++--- src/game/g_combat.c | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/game/bg_public.h b/src/game/bg_public.h index f78218ac..68af42cc 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -866,6 +866,8 @@ typedef enum MOD_TELEFRAG, MOD_FALLING, MOD_SUICIDE, + MOD_DECONSTRUCT, + MOD_NOCREEP, MOD_TARGET_LASER, MOD_TRIGGER_HURT, diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 911884b0..1a532ca1 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -638,9 +638,9 @@ void AGeneric_CreepCheck( gentity_t *self ) { if( spawn && self->killedBy != ENTITYNUM_NONE ) G_Damage( self, NULL, g_entities + self->killedBy, NULL, NULL, - self->health, 0, MOD_SUICIDE ); + self->health, 0, MOD_NOCREEP ); else - G_Damage( self, NULL, NULL, NULL, NULL, self->health, 0, MOD_SUICIDE ); + G_Damage( self, NULL, NULL, NULL, NULL, self->health, 0, MOD_NOCREEP ); return; } G_CreepSlow( self ); @@ -2782,7 +2782,7 @@ void G_FreeMarkedBuildables( gentity_t *deconner ) { ent = level.markedBuildables[ i ]; - G_Damage( ent, NULL, deconner, NULL, NULL, ent->health, 0, MOD_SUICIDE ); + G_Damage( ent, NULL, deconner, NULL, NULL, ent->health, 0, MOD_DECONSTRUCT ); G_FreeEntity( ent ); } } diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 20864852..74b8b141 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -95,6 +95,8 @@ char *modNames[ ] = "MOD_TELEFRAG", "MOD_FALLING", "MOD_SUICIDE", + "MOD_DECONSTRUCT", + "MOD_NOCREEP", "MOD_TARGET_LASER", "MOD_TRIGGER_HURT", -- cgit