Filesystem/Race/Common.szs/kartAIActionParam.bin
kartAIActionParam.bin is a sub file of /Race/Common.szs. It contains random number probabilities for CPU actions, for each difficulty mode. AIParam.baa overrides the entire file if it's present in the AIParam folder in the course's file.
File Format
The file consists of 36 entries, each one containing eight single-precision floating point values (0x20 bytes). These entries are split up into three sections, which match the CPU difficulty, or engine class if the mode is Grand Prix.
Offset | Size | Description |
---|---|---|
0x0 | 0x20*12 | Easy difficulty entries (50cc GP). |
0x180 | 0x20*12 | Normal difficulty entries (100cc GP). |
0x300 | 0x20*12 | Hard difficulty entries (150cc/Mirror GP). |
0x480 | End of the file |
Entry
There are 12 entries in each section, matching each CPU player. Each value is percentage based. The game generates a random number from 0 to 99 and then compares it to one of the fields. If the random number is less than the value, the CPU will perform the action.
Offset | Type | Action |
---|---|---|
0x00 | Float | Getting the rocket boost. |
0x04 | Float | Busting the engine, if missed the rocket boost. |
0x08 | Float | Starting a drift on a curve/force drift section. |
0x0C | Float | Releasing a mini-turbo after a drift. |
0x10 | Float | Doing a trick. |
0x14 | Float | Performing a wheelie on a force wheelie section. |
0x18 | Float | Unknown. |
0x1C | Float | Unknown. Triggered right before swerving left/right? |
Tools
The following tools can handle kartAIActionParam.bin:
- (none)