From 244ca55a3bbb62b817aa5293cd64b97358d678da Mon Sep 17 00:00:00 2001 From: LegendGuard <49716252+LegendaryGuard@users.noreply.github.com> Date: Thu, 17 Oct 2024 00:26:58 +0200 Subject: [PATCH] Fix lightning gun weapon number zeroed when sending weapon info to EV_MISSILE_MISS event --- code/game/g_weapon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/g_weapon.c b/code/game/g_weapon.c index 752cb1e21e..a766fd6b36 100644 --- a/code/game/g_weapon.c +++ b/code/game/g_weapon.c @@ -672,6 +672,7 @@ void Weapon_LightningFire( gentity_t *ent ) { } else if ( !( tr.surfaceFlags & SURF_NOIMPACT ) ) { tent = G_TempEntity( tr.endpos, EV_MISSILE_MISS ); tent->s.eventParm = DirToByte( tr.plane.normal ); + tent->s.weapon = ent->s.weapon; } break;