diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-15 17:58:33 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-15 17:58:33 +0000 |
commit | 06924c215dcf8d4dd425cbbf178509bc222c2f7d (patch) | |
tree | 36db62761142f7a3430a5be26a335168d2da8d65 /Northstar.CustomServers/mod/scripts/vscripts/earn_meter | |
parent | 1b6e5af70bf442c684b891003e516329b190c130 (diff) | |
download | NorthstarMods-06924c215dcf8d4dd425cbbf178509bc222c2f7d.tar.gz NorthstarMods-06924c215dcf8d4dd425cbbf178509bc222c2f7d.zip |
more playtest fixes
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/earn_meter')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut index b9a8fc7c..da8ca9f5 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut @@ -165,6 +165,11 @@ void function EarnMeterMP_BoostEarned( entity player ) if ( burncard.extraWeaponMod != "" ) mods.append( burncard.extraWeaponMod ) + // ensure inventory slot isn't full to avoid crash + entity preexistingWeapon = player.GetOffhandWeapon( OFFHAND_INVENTORY ) + if ( IsValid( preexistingWeapon ) ) + player.TakeWeaponNow( preexistingWeapon.GetWeaponClassName() ) + player.GiveOffhandWeapon( burncard.weaponName, OFFHAND_INVENTORY, mods ) Remote_CallFunction_Replay( player, "ServerCallback_RewardReadyMessage", player.s.respawnTime ) } |