Better vehicle weapon handling and muzzle flash

This commit is contained in:
Sardelka
2022-08-14 13:04:39 +08:00
parent d68941b3ac
commit 8305d9997a
7 changed files with 219 additions and 73 deletions

View File

@ -84,7 +84,7 @@ namespace RageCoop.Client
var v = Shooter?.MainPed?.CurrentVehicle;
if (v!=null)
{
World.CreateParticleEffectNonLooped(SyncEvents.CorePFXAsset, "muz_tank", v.GetMuzzleInfo().Position, v.Bones[35].ForwardVector.ToEulerRotation(v.Bones[35].UpVector), 1);
World.CreateParticleEffectNonLooped(SyncEvents.CorePFXAsset, "muz_tank", v.Bones[v.GetMuzzleIndex()].Position, v.Bones[35].ForwardVector.ToEulerRotation(v.Bones[35].UpVector), 1);
}
}
EntityPool.Add(this);