mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 19:23:51 +02:00
Light equation changes and weapon and ai spawn proper muzzle flashes.
This commit is contained in:
+1543
-1215
File diff suppressed because it is too large
Load Diff
+2136
-1921
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user