From 5a9bee68cd17b2b725528a7604ff7ebc18796225 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 25 Jun 2002 02:43:12 +0000 Subject: Zap now seperate from Tesla --- src/game/bg_misc.c | 1 + src/game/bg_public.h | 1 + src/game/g_weapon.c | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c index d7422b09..a7f4d440 100644 --- a/src/game/bg_misc.c +++ b/src/game/bg_misc.c @@ -3332,6 +3332,7 @@ char *eventnames[] = { "EV_ITEM_EXPLOSION", //TA: human item explosions "EV_RAILTRAIL", "EV_TESLATRAIL", + "EV_ALIENZAP", "EV_SHOTGUN", "EV_BULLET", // otherEntity is the shooter diff --git a/src/game/bg_public.h b/src/game/bg_public.h index bbaf6e53..c474357e 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -545,6 +545,7 @@ typedef enum { EV_ITEM_EXPLOSION, //TA: human item explosions EV_RAILTRAIL, EV_TESLATRAIL, + EV_ALIENZAP, EV_SHOTGUN, EV_BULLET, // otherEntity is the shooter diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 9e751209..f75a33d6 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -772,7 +772,7 @@ void areaZapFire( gentity_t *ent ) SnapVectorTowards( tr.endpos, muzzle ); // send railgun beam effect - tent = G_TempEntity( enemy->s.pos.trBase, EV_TESLATRAIL ); + tent = G_TempEntity( enemy->s.pos.trBase, EV_ALIENZAP ); VectorCopy( muzzle, tent->s.origin2 ); @@ -844,7 +844,7 @@ void directZapFire( gentity_t *ent ) SnapVectorTowards( tr.endpos, muzzle ); // send railgun beam effect - tent = G_TempEntity( target->s.pos.trBase, EV_TESLATRAIL ); + tent = G_TempEntity( target->s.pos.trBase, EV_ALIENZAP ); VectorCopy( muzzle, tent->s.origin2 ); -- cgit