Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin 0x0, 0x8 #bones 3,6,10,15,21. Skip 19 because it has an offset that I can't take into account
- pushInt. 0x0 #set the initial variables to 0
- floatVarSet. 0x0, 0x0 #minX
- floatVarSet. 0x0, 0x1 #midX
- floatVarSet. 0x0, 0x2 #maxX
- floatVarSet. 0x0, 0x3 #minY
- floatVarSet. 0x0, 0x4 #midY
- floatVarSet 0x0, 0x5 #maxY
- pushInt. 0x2723 #clear previous GFX
- pushInt. 0x1000013
- pushInt. 0x0
- pushInt. 0x0
- sys 0x4, 0x1c
- #for every bone I have to update these values to make a bounding box
- pushInt. 0x0
- pushInt. 0x3
- sys. 0x2, 0x28 #Global X position of bone 3
- pushInt. 0x1
- sys. 0x1, 0x15 #Global X position of character (TransN)
- subf.
- floatVarSet 0x0, 0x6 #X offset
- pushInt. 0x1
- pushInt. 0x3
- sys. 0x2, 0x28 #Global Y of bone 3
- pushInt. 0x2
- sys. 0x1, 0x15 #Global Y position of character (TransN)
- subf.
- floatVarSet 0x0, 0x7 #Y offset
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x2
- floatGreater.
- if loc_1 #basically just update the min/max values for every bone
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x2
- loc_1:
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x0
- floatLess.
- if loc_2
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x0
- loc_2:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x5
- floatGreater.
- if loc_3
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x5
- loc_3:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x3
- floatLess.
- if loc_4
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x3
- loc_4:
- pushInt. 0x0
- pushInt. 0x6
- sys. 0x2, 0x28
- pushInt. 0x1
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x6 #X offset
- pushInt. 0x1
- pushInt. 0x6
- sys. 0x2, 0x28
- pushInt. 0x2
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x7 #Y offset
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x2
- floatGreater.
- if loc_5
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x2
- loc_5:
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x0
- floatLess.
- if loc_6
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x0
- loc_6:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x5
- floatGreater.
- if loc_7
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x5
- loc_7:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x3
- floatLess.
- if loc_8
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x3
- loc_8:
- pushInt. 0x0
- pushInt. 0xa
- sys. 0x2, 0x28
- pushInt. 0x1
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x6 #X offset
- pushInt. 0x1
- pushInt. 0xa
- sys. 0x2, 0x28
- pushInt. 0x2
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x7 #Y offset
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x2
- floatGreater.
- if loc_9
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x2
- loc_9:
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x0
- floatLess.
- if loc_10
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x0
- loc_10:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x5
- floatGreater.
- if loc_11
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x5
- loc_11:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x3
- floatLess.
- if loc_12
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x3
- loc_12:
- pushInt. 0x0
- pushInt. 0xf
- sys. 0x2, 0x28
- pushInt. 0x1
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x6 #X offset
- pushInt. 0x1
- pushInt. 0xf
- sys. 0x2, 0x28
- pushInt. 0x2
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x7 #Y offset
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x2
- floatGreater.
- if loc_13
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x2
- loc_13:
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x0
- floatLess.
- if loc_14
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x0
- loc_14:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x5
- floatGreater.
- if loc_15
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x5
- loc_15:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x3
- floatLess.
- if loc_16
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x3
- loc_16:
- pushInt. 0x0
- pushInt. 0x15
- sys. 0x2, 0x28
- pushInt. 0x1
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x6 #X offset
- pushInt. 0x1
- pushInt. 0x15
- sys. 0x2, 0x28
- pushInt. 0x2
- sys. 0x1, 0x15
- subf.
- floatVarSet 0x0, 0x7 #Y offset
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x2
- floatGreater.
- if loc_17
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x2
- loc_17:
- pushVar. 0x0, 0x6
- pushVar. 0x0, 0x0
- floatLess.
- if loc_18
- pushVar. 0x0, 0x6
- floatVarSet 0x0, 0x0
- loc_18:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x5
- floatGreater.
- if loc_19
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x5
- loc_19:
- pushVar. 0x0, 0x7
- pushVar. 0x0, 0x3
- floatLess.
- if loc_20
- pushVar. 0x0, 0x7
- floatVarSet 0x0, 0x3
- loc_20:
- pushVar. 0x0, 0x0
- pushInt. -1f
- floatGreater.
- if loc_21
- pushInt. -1f
- floatVarSet 0x0, 0x0
- loc_21:
- pushVar. 0x0, 0x2
- pushInt. 1f
- floatLess.
- if loc_22
- pushInt. 1f
- floatVarSet 0x0, 0x2
- loc_22:
- pushVar. 0x0, 0x5
- pushInt. 2f
- floatLess.
- if loc_23
- pushInt. 2f
- floatVarSet 0x0, 0x5
- loc_23:
- pushVar. 0x0, 0x3
- pushVar. 0x0, 0x5
- addf.
- pushInt. 0.5f
- multf.
- floatVarSet 0x0, 0x4
- pushInt. 0x272e #bottom
- pushInt. 0x1000013
- pushInt. 0x0
- pushInt. 0x0
- pushVar. 0x0, 0x3
- pushVar. 0x0, 0x1
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x1f
- pushInt. 0x0
- pushInt. 0x0
- sys 0xc, 0x1c
- pushInt. 0x272e #left
- pushInt. 0x1000013
- pushInt. 0x0
- pushInt. 0x0
- pushVar. 0x0, 0x4
- pushVar. 0x0, 0x0
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x1f
- pushInt. 0x0
- pushInt. 0x0
- sys 0xc, 0x1c
- pushInt. 0x272e #top
- pushInt. 0x1000013
- pushInt. 0x0
- pushInt. 0x0
- pushVar. 0x0, 0x5
- pushVar. 0x0, 0x1
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x1f
- pushInt. 0x0
- pushInt. 0x0
- sys 0xc, 0x1c
- pushInt. 0x272e #right
- pushInt. 0x1000013
- pushInt. 0x0
- pushInt. 0x0
- pushVar. 0x0, 0x4
- pushVar. 0x0, 0x2
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x0
- pushInt. 0x1f
- pushInt. 0x0
- pushInt. 0x0
- sys 0xc, 0x1c
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement