diff options
author | BobTheBob <for.oliver.kirkham@gmail.com> | 2023-03-07 14:56:12 +0000 |
---|---|---|
committer | BobTheBob <for.oliver.kirkham@gmail.com> | 2023-03-07 14:56:12 +0000 |
commit | c6fdbc83b74a57bac91372f028f2dd9b8b74ffd6 (patch) | |
tree | 8942f0e855495509c4aecb97f2fdb016277fdab1 /NorthstarDLL/reloadturrets.cpp | |
parent | 2a20e0088ee4c05edd0b52d213272504e7d4c94e (diff) | |
download | NorthstarLauncher-c6fdbc83b74a57bac91372f028f2dd9b8b74ffd6.tar.gz NorthstarLauncher-c6fdbc83b74a57bac91372f028f2dd9b8b74ffd6.zip |
reload turret settings
Diffstat (limited to 'NorthstarDLL/reloadturrets.cpp')
-rw-r--r-- | NorthstarDLL/reloadturrets.cpp | 11 |
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 +} |