-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cs
49 lines (43 loc) · 1.26 KB
/
Main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using MelonLoader;
using Harmony;
using Assets.Scripts.Simulation.Towers.Weapons;
using Assets.Scripts.Simulation.Towers.Projectiles;
namespace HIPPH
{
public class Main : MelonMod
{
public override void OnApplicationStart()
{
base.OnApplicationStart();
NKHook6.Logger.Log("HIPPH has successfully loaded.");
}
}
[HarmonyPatch(typeof(Weapon), nameof(Weapon.UpdatedModel))]
public class WeaponUpdatedModel_Patch
{
[HarmonyPostfix]
public static void Postfix(Weapon __instance)
{
__instance.weaponModel.rate = 0;
}
}
[HarmonyPatch(typeof(Weapon), nameof(Weapon.Initialise))]
public class WeaponInitialise_Patch
{
[HarmonyPostfix]
public static void Postfix(Weapon __instance)
{
__instance.weaponModel.rate = 0;
}
}
[HarmonyPatch(typeof(Projectile), nameof(Projectile.Initialise))]
public class ProjectileInitialise_Patch
{
[HarmonyPostfix]
public static void Postfix(Projectile __instance)
{
__instance.projectileModel.radius = 10000;
__instance.projectileModel.pierce = 10000;
}
}
}