Light equation changes and weapon and ai spawn proper muzzle flashes.

This commit is contained in:
Justin Marshall
2026-05-12 21:44:50 -07:00
parent a797428ee5
commit cdb45e4155
5 changed files with 3796 additions and 3165 deletions
+1543 -1215
View File
File diff suppressed because it is too large Load Diff
+2136 -1921
View File
File diff suppressed because it is too large Load Diff
+9
View File
@@ -519,6 +519,15 @@ void idAI::MuzzleFlash(const char* jointname) {
idVec3 muzzle;
idMat3 axis;
// Match the idWeapon behavior: the short-lived muzzle light should attach
// to the same joint the script fired from, not blindly to a hardcoded joint.
if (jointname && jointname[0]) {
jointHandle_t joint = animator.GetJointHandle(jointname);
if (joint != INVALID_JOINT) {
flashJointWorld = joint;
}
}
GetMuzzle(jointname, muzzle, axis);
TriggerWeaponEffects(muzzle);
}