Autoselect


1) The Autoselect message is run when one of four events occurs. First, when AutoselectWeapon() queries all weapons cogs. Second, when the player mounts the weapon. And lastly, when the next / prev weapon keys query the weapon. In each case, the senderref is different.


SenderSee the chart below.
SourceThe player whose weapon is being queried.

Sender TypeSystem (1).
Source TypeThing (3).

SleepableNo.

SenderMeaning
-1Player is mounting the weapon.
0Next / Prev Weapon keys query the weapon.
Also used when a cog queries for the weapon's priority.
1A miscellanious cog has queried for the best weapon.
2A powerup cog has queried for the best weapon.