Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Version 0.3.4, fix thunderbolt sound.
  • Loading branch information
roncli committed Sep 8, 2020
1 parent 5a6a3dd commit 50d9354
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion GameMod/GameMod.cs
Expand Up @@ -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()
Expand Down
8 changes: 3 additions & 5 deletions GameMod/MPSniperPackets.cs
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions GameMod/Properties/AssemblyInfo.cs
Expand Up @@ -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")]
Binary file modified olmod/olmod.rc
Binary file not shown.

0 comments on commit 50d9354

Please sign in to comment.