We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fccb38 commit 8cea39dCopy full SHA for 8cea39d
code/cgame/cg_weapons.c
@@ -2475,6 +2475,11 @@ void CG_FireWeapon( centity_t *cent ) {
2475
}
2476
weap = &cg_weapons[ ent->weapon ];
2477
2478
+ if ( ent->number >= 0 && ent->number < MAX_CLIENTS && cent != &cg.predictedPlayerEntity ) {
2479
+ // point from external event to client entity
2480
+ cent = &cg_entities[ ent->number ];
2481
+ }
2482
+
2483
// mark the entity as muzzle flashing, so when it is added it will
2484
// append the flash to the weapon model
2485
cent->muzzleFlashTime = cg.time;
0 commit comments