Difference between revisions of "Network Protocol/ITEM"
Jump to navigation
Jump to search
m (Official Item Names) |
(Star says this is padding) |
||
Line 16: | Line 16: | ||
/*05*/ u8 acknowledge; // ? 0=ok, 1=fail | /*05*/ u8 acknowledge; // ? 0=ok, 1=fail | ||
/*06*/ u8 ack_timer; // return the timer value to accept item of other client | /*06*/ u8 ack_timer; // return the timer value to accept item of other client | ||
− | /*07*/ u8 | + | /*07*/ u8 padding_07; // padding, always 0 |
/*08*/ | /*08*/ |
Revision as of 14:12, 2 April 2021
This pages is related to MKWii Network Protocol and describes the record type ITEM. One record for each player is transmitted together with the race data:
Template:MKWii Network Protocol RACE
Description of the record type ITEM in GNU C notation.
typedef struct udp_item_t { /*00*/ u8 timer; // start time of item in 8/60s := RACE.timer/8 /*01*/ u8 item_box; // item in the box => mkw_item_type_t /*02*/ u8 item_tail; // item at tail => mkw_item_type_t /*03*/ u8 mode; // activation mode: 0=no item, 1-7=handshake /*04*/ u8 tail_mode; // ? 3=hold, 4=shoot, 5=3/3, 6=2/3, 7=1/3 /*05*/ u8 acknowledge; // ? 0=ok, 1=fail /*06*/ u8 ack_timer; // return the timer value to accept item of other client /*07*/ u8 padding_07; // padding, always 0 /*08*/ } __attribute__ ((packed)) udp_item_t;
Item types
The members item_box and item_tail describe, which item is available in the box (top left of the screen) and at the tail of the vehicle (or around the vehicle). Sometimes item_box switch back to no item, but because of previous modes, a mushroom can be identified. This make some cheat detection more difficult.
The following table shows the item codes. Item cheats use the same codes:
code | name | comments |
---|---|---|
0x00 | Green Shell | — |
0x01 | Red Shell | — |
0x02 | Banana | — |
0x03 | Fake Item Box | — |
0x04 | Mushroom | — |
0x05 | Triple Mushroom | — |
0x06 | Bob-omb | — |
0x07 | Spiny Shell | — |
0x08 | Lightning | — |
0x09 | Star | — |
0x0a | Golden Mushroom | — |
0x0b | Mega Mushroom | — |
0x0c | Blooper | — |
0x0d | POW Block | — |
0x0e | Thundercloud | — |
0x0f | Bullet Bill | — |
0x10 | Triple Green Shell | — |
0x11 | Triple Red Shell | — |
0x12 | Triple Banana | — |
0x13 | not used | This code was never seen. |
0x14 | none item | Code for no item available. Sometimes (context dependent) this code means Mushroom. |