Notes/Collision
From CloudModding OoT Wiki
This is a sub-page of Notes.
int external_func_8005C050(void * ctxt, void * idk, void * a, Collision_Header * a3) // Argument 3 (a3) contains a pointer to a structure of this format: JAL 0x8005BB48 // Sets up the collision for the hitbox OR A2, S1, R0 // A2 = Current hitbox address typedef struct { u8 u0 u8 u1 u8 u2 u8 u3 u8 u4 u8 pad[5] // Always "00 00 00 00 00" ? u16 no_hitbox // Number of hitboxes... changing this to 0 will disable the actor's collision u32 ptr_hitbox // Pointer to hitbox data } Collision_Header; Wolfos: (data_80B37A20) 09 11 0D 39 10 00 00 00 00 00 00 04 <--- Number of hitboxes 80 B3 79 90 <--- Pointer to hitbox data Queen Ghoma: (data_8091B034) 03 11 09 <--- Setting to not 9 makes it impossible to stun her? 09 10 00 00 00 00 00 00 0D <--- Number of hitboxes 80 91 AE 60 <--- Pointer to hitbox data The damage done by a specific hitbox and its attributes are in the following format (0x24 bytes in length): AA 00 00 00 XX XX XX XX EE DD 00 00 YY YY YY YY 00 00 00 00 BB HH CC 00 FF 00 00 00 00 00 00 00 00 LL 00 64 AA : Unknown XX XX XX XX : Usually "FF CF FF FF"... Perhaps normals? I can see this as being the direction to deal/receive damage EE : Effect of damage (fire, ice, electric, stun, etc) 00 = None 01 = Fire 02 = Ice 03 = Electricity 04 = Knockback DD : Amount of damage (when hitting link) YY YY YY YY : Usually "FF CF FF FF"... Perhaps normals? I can see this is being the direction to deal/receive damage BB : Unknown HH : Seems to have something to do with being hookshotable... Change to 05 to make the hitbox hookshotable CC : Unknown FF : Unknown LL : Length of damage collision (allows an attack to reach further away) Wolfos: (data_80B37990) 01 : 00 00 00 00 FF CF FF FF 00 04 00 00 00 00 00 00 00 00 00 00 01 00 00 00 0F 00 00 00 00 00 00 00 00 0F 00 64 02 : 00 00 00 00 FF CF FF FF 00 04 00 00 00 00 00 00 00 00 00 00 01 00 00 00 15 00 00 00 00 00 00 00 00 0F 00 64 03 : 01 00 00 00 00 00 00 00 00 00 00 00 FF C1 FF FF 00 00 00 00 00 05 01 00 11 00 03 20 00 00 00 00 00 19 00 64 04 : 01 00 00 00 00 00 00 00 00 00 00 00 FF C1 FF FF 00 00 00 00 00 05 01 00 0C 00 00 00 00 00 00 00 00 1E 00 64 Queen Ghoma: (data_8091AE60) (0x5450) 01 : 03 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 05 00 00 00 00 00 04 B0 00 14 00 64 02 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 0B 00 00 00 00 00 00 00 00 14 00 64 03 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 0C 00 00 00 00 00 00 00 00 0F 00 64 04 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 0D 00 00 00 00 00 00 00 00 0C 00 64 05 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 0E 00 00 00 00 00 00 00 00 19 00 64 06 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 16 00 00 00 00 00 00 00 00 1E 00 64 07 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 17 00 00 00 00 00 00 00 00 0F 00 64 08 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 1D 00 00 00 00 00 00 00 00 0F 00 64 09 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 39 00 00 00 00 00 00 00 00 14 00 64 10 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 40 00 00 00 00 00 00 00 00 14 00 64 11 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 4A 00 00 00 00 00 00 00 00 1E 00 64 12 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 4B 00 00 00 00 00 00 00 00 0F 00 64 13 : 02 00 00 00 FF CF FF FF 00 08 00 00 FF CF FF FF 00 00 00 00 01 01 01 00 51 00 00 00 00 00 00 00 00 0F 00 64