From b6e08abd5e8cc0cf2788d881d57e3fa92d386601 Mon Sep 17 00:00:00 2001 From: diwoc <108992394+scoqx@users.noreply.github.com> Date: Wed, 1 Jul 2026 14:23:44 +0300 Subject: [PATCH] Fix shotgun pattern origin in g_weapon.c Make server-side start point the same as client's prediction https://github.com/ec-/baseq3a/blob/e24c8418b54948b3c6e05ac6987aab29033fd179/code/cgame/cg_weapons.c#L2222 --- code/game/g_weapon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/g_weapon.c b/code/game/g_weapon.c index 19440ab2..21c32138 100644 --- a/code/game/g_weapon.c +++ b/code/game/g_weapon.c @@ -376,7 +376,7 @@ static void weapon_supershotgun_fire( gentity_t *ent ) { tent->s.eventParm = rand() & 255; // seed for spread pattern tent->s.otherEntityNum = ent->s.number; - ShotgunPattern( muzzle_origin, tent->s.origin2, tent->s.eventParm, ent ); + ShotgunPattern( tent->s.pos.trBase, tent->s.origin2, tent->s.eventParm, ent ); }