diff options
author | Connie Price <contact@connieprice.co.uk> | 2021-12-30 23:42:25 +0000 |
---|---|---|
committer | Connie Price <contact@connieprice.co.uk> | 2021-12-30 23:42:25 +0000 |
commit | bac68cf87a2091f62d8e99f527c59e96d82741ed (patch) | |
tree | f705891c8554d00af1abc68039b178ab248a11f8 /Northstar.CustomServers/mod/scripts | |
parent | aed2841ebbecb6376f00bf190503ce5c694f9fa4 (diff) | |
download | NorthstarMods-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.
Diffstat (limited to 'Northstar.CustomServers/mod/scripts')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_titan_transfer.nut | 3 |
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 = "" |