diff options
author | RoyalBlue1 <realEmail@veryRealURL.com> | 2023-01-24 18:56:16 +0100 |
---|---|---|
committer | RoyalBlue1 <realEmail@veryRealURL.com> | 2023-01-24 18:56:16 +0100 |
commit | 540e4e51957652d542095e6eed27c442fad1eeaa (patch) | |
tree | af4b0b7e5e6196eafa27918c83f7695d6d2a399a /Northstar.CustomServers/mod | |
parent | 7ba6b053f093554df663d05ce06b9655186d1e08 (diff) | |
parent | 9775ffb3b478a921f7d64d8907ab6c2b91128f40 (diff) | |
download | NorthstarMods-540e4e51957652d542095e6eed27c442fad1eeaa.tar.gz NorthstarMods-540e4e51957652d542095e6eed27c442fad1eeaa.zip |
Merge remote-tracking branch 'upsteam/main' into gamemode_fd
Diffstat (limited to 'Northstar.CustomServers/mod')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut | 11 |
1 files changed, 10 insertions, 1 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 7c08c036..6f228f7c 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 @@ -8,6 +8,7 @@ global function PlayerInventory_EndCriticalSectionForWeaponOnEndFrame global function PlayerInventory_PushInventoryItem global function PlayerInventory_PushInventoryItemByBurnRef global function PlayerInventory_PopInventoryItem +global function PlayerInventory_TakeAllInventoryItems global function PlayerInventory_CountBurnRef struct @@ -145,6 +146,14 @@ void function PlayerInventory_PopInventoryItem( entity player ) return } +void function PlayerInventory_TakeAllInventoryItems( entity player ) +{ + file.playerInventoryStacks[ player ].clear() + waitthread PlayerInventory_TakeInventoryItem( player ) + player.SetPlayerNetInt( "itemInventoryCount", 0 ) + return +} + void function PlayerInventory_RefreshEquippedState( entity player ) { @@ -158,4 +167,4 @@ void function PlayerInventory_StartCriticalSection( entity player ) void function PlayerInventory_EndCriticalSectionForWeaponOnEndFrame( entity weapon ) { -}
\ No newline at end of file +} |