From 6c2c7e881f41f4d6e593e20ea156e1af74b5abe0 Mon Sep 17 00:00:00 2001 From: Sardelka Date: Sat, 2 Jul 2022 13:12:59 +0800 Subject: [PATCH] Add TAMPA3 weapon, closes #19 --- RageCoop.Client/Sync/SyncEvents.cs | 5 +++++ RageCoop.Client/Util/WeaponUtil.cs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/RageCoop.Client/Sync/SyncEvents.cs b/RageCoop.Client/Sync/SyncEvents.cs index e2d72b3..394d0c3 100644 --- a/RageCoop.Client/Sync/SyncEvents.cs +++ b/RageCoop.Client/Sync/SyncEvents.cs @@ -169,6 +169,11 @@ namespace RageCoop.Client { weaponHash=1176362416; break; + // Tampa3, not working for some reason + case 3670375085: + weaponHash=1176362416; + break; + // SAVAGE case 1638077257: weaponHash=(uint)VehicleWeaponHash.PlayerLazer; diff --git a/RageCoop.Client/Util/WeaponUtil.cs b/RageCoop.Client/Util/WeaponUtil.cs index 2187d67..f973e13 100644 --- a/RageCoop.Client/Util/WeaponUtil.cs +++ b/RageCoop.Client/Util/WeaponUtil.cs @@ -66,6 +66,10 @@ namespace RageCoop.Client int i; switch (v.Model.Hash) { + // TAMPA3 + case -1210451983: + return new MuzzleInfo(v.Bones[87].Position, v.Bones[87].ForwardVector); + // SCRAMJET case -638562243: i=BulletsShot%2==0 ? 44 : 45;