aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-28 05:10:24 +0000
committerGitHub <noreply@github.com>2022-01-28 05:10:24 +0000
commitdaa93d2afb697b2538e80c802cded459ba627af0 (patch)
tree77c32e88d72c611c111189b201d4866285c9eb61
parent838dff86a1868e908c9c6b8d3f5f8255f82dbb7b (diff)
parentcfff4af0d0a7a91e9f50296ffc610a10decbfb5b (diff)
downloadNorthstarMods-daa93d2afb697b2538e80c802cded459ba627af0.tar.gz
NorthstarMods-daa93d2afb697b2538e80c802cded459ba627af0.zip
Merge pull request #165 from connieprice/fixed-boost-loadout-thing
Changed callback in "pilot inventory" from respawning to loadout giving.
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut5
1 files changed, 2 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut b/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut
index a768b3f35..4e8f85aca 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut
@@ -18,7 +18,7 @@ struct
void function Sv_ItemInventory_Init()
{
AddCallback_OnClientConnected( Sv_ItemInventory_OnClientConnected )
- AddCallback_OnPlayerRespawned( Sv_ItemInventory_OnPlayerRespawned )
+ AddCallback_OnPlayerGetsNewPilotLoadout( Sv_ItemInventory_OnPlayerGetsNewPilotLoadout )
}
void function Sv_ItemInventory_OnClientConnected( entity player )
@@ -26,7 +26,7 @@ void function Sv_ItemInventory_OnClientConnected( entity player )
file.playerInventoryStacks[ player ] <- []
}
-void function Sv_ItemInventory_OnPlayerRespawned( entity player )
+void function Sv_ItemInventory_OnPlayerGetsNewPilotLoadout( entity player, PilotLoadoutDef newPilotLoadout )
{
array<InventoryItem> playerInventoryStack = file.playerInventoryStacks[ player ]
@@ -38,7 +38,6 @@ void function Sv_ItemInventory_OnPlayerRespawned( entity player )
return
}
-
int function SvPlayerInventory_ItemCount( entity player )
{
return file.playerInventoryStacks[ player ].len()