aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/burnmeter
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-28 17:49:07 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-28 17:49:07 +0000
commitf61ecb463a481d5547ddb34e794c901c099f2d83 (patch)
tree5be5a08545af9155bd6d6c5a1535db6b3d31e6a6 /Northstar.CustomServers/mod/scripts/vscripts/burnmeter
parent55b3eece0a79cc38be44e455cc95f84634050ffb (diff)
downloadNorthstarMods-f61ecb463a481d5547ddb34e794c901c099f2d83.tar.gz
NorthstarMods-f61ecb463a481d5547ddb34e794c901c099f2d83.zip
dropship intro changes and fix for infinite amped weapons on disembark
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/burnmeter')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut8
1 files changed, 8 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut b/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut
index 4be04643..efaea76f 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut
@@ -49,6 +49,7 @@ void function BurnMeter_Init()
AddCallback_OnClientConnected( InitBurncardsForLateJoiner )
AddCallback_OnPlayerRespawned( StartPhaseRewindLifetime )
+ AddCallback_OnTitanBecomesPilot( RemoveAmpedWeaponsForTitanPilot )
// necessary signals
RegisterSignal( "StopAmpedWeapons" )
@@ -263,6 +264,13 @@ void function PlayerUsesAmpedWeaponsBurncardThreaded( entity player )
}
}
+void function RemoveAmpedWeaponsForTitanPilot( entity player, entity titan )
+{
+ foreach ( entity weapon in player.GetMainWeapons() )
+ foreach ( string mod in GetWeaponBurnMods( weapon.GetWeaponClassName() ) )
+ weapon.RemoveMod( mod )
+}
+
void function PlayerUsesSmartPistolBurncard( entity player )
{
// take secondary weapon