05-20-2015, 02:36 AM
Hi! So I was porting over some code from RLF2's Firzen from 1.9c to 2.0a, namely the D^A disaster attack. In LF2 2.0a, it crashes when I spam D^A enough times but in LF2 1.9c, it works fine no matter how many times I spam it. It ruins story mode when the AI has it use D^A enough times, crashing 2.0a. Below are the frames that matter.
Any help would be appreciated.
Code:
<frame> 240 disaster
pic: 83 state: 3 wait: 0 next: 241 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 mp: 60
wpoint:
kind: 1 x: 44 y: 49 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 241 disaster
pic: 84 state: 3 wait: 0 next: 242 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\018.wav
wpoint:
kind: 1 x: 44 y: 49 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 242 disaster
pic: 85 state: 3 wait: 1 next: 243 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\019.wav
wpoint:
kind: 1 x: 44 y: 49 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 243 disaster
pic: 86 state: 3 wait: 1 next: 244 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 1 x: 38 y: 3 action: 70 dvx: 0 dvy: 0 oid: 221 facing: 1
opoint_end:
wpoint:
kind: 1 x: 44 y: 50 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 244 disaster
pic: 87 state: 3 wait: 1 next: 245 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\020.wav
opoint:
kind: 1 x: 38 y: -9 action: 50 dvx: 0 dvy: -50 oid: 221 facing: 30
opoint_end:
wpoint:
kind: 1 x: 44 y: 49 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 245 disaster
pic: 88 state: 3 wait: 1 next: 246 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 44 y: 49 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 246 disaster
pic: 84 state: 3 wait: 1 next: 247 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 240 hit_d: 0 hit_j: 0 hit_Ua: 240
wpoint:
kind: 1 x: 44 y: 49 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 247 disaster
pic: 83 state: 3 wait: 1 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 44 y: 49 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
Any help would be appreciated.