aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnie Price <contact@connieprice.co.uk>2021-12-30 23:42:25 +0000
committerConnie Price <contact@connieprice.co.uk>2021-12-30 23:42:25 +0000
commitbac68cf87a2091f62d8e99f527c59e96d82741ed (patch)
treef705891c8554d00af1abc68039b178ab248a11f8
parentaed2841ebbecb6376f00bf190503ce5c694f9fa4 (diff)
downloadNorthstarMods-bac68cf87a2091f62d8e99f527c59e96d82741ed.tar.gz
NorthstarMods-bac68cf87a2091f62d8e99f527c59e96d82741ed.zip
Added a pro screen check to titan to pilot loadout retrieval.
Just like the normal loadout "giver", prevents an error when a weapon is not properly setup to use the proscreen, but has been given as part of a loadout.
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut3
1 files changed, 2 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
index c84e6aba..0d8a3ec5 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut
@@ -175,7 +175,8 @@ void function GiveWeaponsFromStoredArray( entity player, array<StoredWeapon> sto
if ( storedWeapon.isProScreenOwner )
{
weapon.SetProScreenOwner( player )
- UpdateProScreen( player, weapon )
+ if ( weapon.HasMod( "pro_screen" ) )
+ UpdateProScreen( player, weapon )
}
string weaponCategory = ""