diff --git a/GameMod/GameMod.cs b/GameMod/GameMod.cs index 8227e1b7..1dc5874a 100644 --- a/GameMod/GameMod.cs +++ b/GameMod/GameMod.cs @@ -11,7 +11,7 @@ namespace GameMod.Core { public class GameMod { - public static readonly string Version = "olmod 0.3.3"; + public static readonly string Version = "olmod 0.3.4"; private static Version GameVersion; public static void Initialize() diff --git a/GameMod/MPSniperPackets.cs b/GameMod/MPSniperPackets.cs index 828b6539..e545963e 100644 --- a/GameMod/MPSniperPackets.cs +++ b/GameMod/MPSniperPackets.cs @@ -851,11 +851,6 @@ static bool Prefix(Player __instance, ref bool __result) [HarmonyPatch(typeof(PlayerShip), "ProcessFiringControls")] class MPSniperPacketsProcessFiringControls { - static bool Prefix(PlayerShip __instance) - { - return Server.IsActive() || __instance.c_player.isLocalPlayer; - } - static void Postfix(PlayerShip __instance) { if (!MPSniperPackets.enabled) return; @@ -1548,6 +1543,9 @@ static bool Prefix(Player player, CCInput button) { if (!MPSniperPackets.enabled) return true; + // This is necessary for charge effects to be played across all clients. + if (button == CCInput.FIRE_WEAPON && player.m_weapon_type == WeaponType.THUNDERBOLT) return true; + if (player.m_input_count[(int)button] == 1) { ButtonJustPressedMessage msg = new ButtonJustPressedMessage(player.netId, button); diff --git a/GameMod/Properties/AssemblyInfo.cs b/GameMod/Properties/AssemblyInfo.cs index 1cdf0c61..8e1f7216 100644 --- a/GameMod/Properties/AssemblyInfo.cs +++ b/GameMod/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.3.3.0")] -[assembly: AssemblyFileVersion("0.3.3.0")] +[assembly: AssemblyVersion("0.3.4.0")] +[assembly: AssemblyFileVersion("0.3.4.0")] diff --git a/olmod/olmod.rc b/olmod/olmod.rc index e86c8b85..806de9ba 100644 Binary files a/olmod/olmod.rc and b/olmod/olmod.rc differ