From 45a4d22796dd8b3a2f48cdcc9d4756220cb63c99 Mon Sep 17 00:00:00 2001 From: Cyn <70904206+itscynxx@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:28:29 -0600 Subject: [PATCH 1/3] Move weapon drop callback globalization to `#if MP` --- .../mod/scripts/vscripts/mp/_codecallbacks.gnut | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut index 8644296e4..e44e76963 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut @@ -18,11 +18,11 @@ global function CodeCallback_OnProjectileGrappled global function DamageInfo_ScaleDamage global function CodeCallback_CheckPassThroughAddsMods global function SetTitanMeterGainScale -global function CodeCallback_WeaponDropped -global function AddCallback_OnWeaponDropped #if MP global function CodeCallback_OnServerAnimEvent +global function CodeCallback_WeaponDropped +global function AddCallback_OnWeaponDropped #endif struct AccumulatedDamageData @@ -1055,4 +1055,4 @@ void function CodeCallback_WeaponDropped( entity weapon ) foreach( callback in file.weaponDroppedCallbacks ) callback( weapon ) } -#endif // #if MP \ No newline at end of file +#endif // #if MP From cdfeea096fe353185234ff56ee11cc2d04609eec Mon Sep 17 00:00:00 2001 From: Cyn <70904206+itscynxx@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:37:19 -0600 Subject: [PATCH 2/3] im assuming new line issue was github randomly adding a newline to the end? From 9fbd4a06301705fc3643d7ecbf00cf254a54ca32 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Tue, 26 Mar 2024 13:46:06 +0100 Subject: [PATCH 3/3] style: Revert added newline --- .../mod/scripts/vscripts/mp/_codecallbacks.gnut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut index e44e76963..0d1b42b7e 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_codecallbacks.gnut @@ -1055,4 +1055,4 @@ void function CodeCallback_WeaponDropped( entity weapon ) foreach( callback in file.weaponDroppedCallbacks ) callback( weapon ) } -#endif // #if MP +#endif // #if MP \ No newline at end of file