summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Levin <risujin@fastmail.fm>2009-10-03 11:25:47 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:14:58 +0000
commitc2772cce6c591f4b043da4526764298d88cce9a9 (patch)
tree63f862614dd96a30c18e56b824950046ee94f752
parent64755fae9f8aa7b4992227b045a93749ce87b56b (diff)
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.
-rw-r--r--src/game/bg_public.h2
-rw-r--r--src/game/g_buildable.c6
-rw-r--r--src/game/g_combat.c2
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",