aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/reloadturrets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/reloadturrets.cpp')
-rw-r--r--NorthstarDLL/reloadturrets.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/NorthstarDLL/reloadturrets.cpp b/NorthstarDLL/reloadturrets.cpp
new file mode 100644
index 00000000..611f8ae3
--- /dev/null
+++ b/NorthstarDLL/reloadturrets.cpp
@@ -0,0 +1,11 @@
+ON_DLL_LOAD_CLIENT("client.dll", ClientModReloadTurretSettings, (CModule module))
+{
+ // always reload turret settings on level load (ai and player settings do this already)
+ module.Offset(0x584B85).Patch("EB"); // jle => jmp
+}
+
+ON_DLL_LOAD_CLIENT("server.dll", ServerModReloadTurretSettings, (CModule module))
+{
+ // always reload turret settings on level load (ai and player settings do this already)
+ module.Offset(0x667115).Patch("EB"); // jle => jmp
+}