diff options
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut | 5 |
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 a768b3f3..4e8f85ac 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() |