aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/reloadturrets.cpp
diff options
context:
space:
mode:
authorBobTheBob <for.oliver.kirkham@gmail.com>2023-03-07 14:56:12 +0000
committerBobTheBob <for.oliver.kirkham@gmail.com>2023-03-07 14:56:12 +0000
commitc6fdbc83b74a57bac91372f028f2dd9b8b74ffd6 (patch)
tree8942f0e855495509c4aecb97f2fdb016277fdab1 /NorthstarDLL/reloadturrets.cpp
parent2a20e0088ee4c05edd0b52d213272504e7d4c94e (diff)
downloadNorthstarLauncher-c6fdbc83b74a57bac91372f028f2dd9b8b74ffd6.tar.gz
NorthstarLauncher-c6fdbc83b74a57bac91372f028f2dd9b8b74ffd6.zip
reload turret settings
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
+}