Notes on Multiplayer Verbs


The Backpack System

A backpack is a special powerup that usually contains the weapons and ammo of a dead player. Backpacks are created with CreateBackpack(). This verb will add all items whose inventory bin has the 0x80 Inventory Flag to the backpack. PickupBackpack() is used to add all of the items in the backpack to a player's inventory. But PickupBackpack() was probably created to replace a more complicated system using the NthBackpack verbs. Should you want to use those obsolete verbs, or just learn the system, read this chart:

Item Storage In A Backpack
Item NumberBinAmountThis would be:
121Bryar.
271Rail Detonator.
3101Lightsaber.
41150Energy ammo.
5156Rail charges.

The number of items in a backpack is returned by NumBackpackItems(). Once you know how many items are in a backpack, how do you find out what they are? NthBackpackBin() will return the bin ID of an item. And once you have the bin number, you can find out how much is in the bin with NthBackpackValue(). This verb returns the amount of the specified item.

Team System

When teamplay is used in a Multplayer game (not CTF), four teams can be used: red, yellow, blue, and green. When teamplay is not checked, all players will have a team of 0 which cannot be changed. Remember that whether teamplay is on or not, players always have a team.