Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Skin.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 132

Deprecated: Assigning the return value of new by reference is deprecated in /home/jkhub/public_html/library/includes/Title.php on line 219
JK Hub - [Reference]

COG Message - Autoselect

The Autoselect message is sent when one of four events occurs. The chart below lists the events and corresponding senderrefs. Autoselect must return a value to whatever called it. If the player is mounting the weapon or SelectWeapon() has been used, autoselect only needs to return a value greater than -1. But if it's a powerup or misc cog, there's a good chance that all weapons are being queried and the one with the highest returned value will be selected. The Weapon Section's notes includes a chart of the default autoselect return values.

Sender: See the chart below.
Source: The player whose weapon is being queried.
Sender Type: System (1).
Source Type: Thing (3).
Sleepable: No.


SenderMeaning
0Next / Prev Weapon keys queried 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.
  • Create:
This page was last modified 03:12, 20 December 2005.   This page has been accessed 535 times.