07-10-2008, 03:33 AM
This maybe easy, but i think it's a good tutorial (or at least a good idea^^)
Ok, first we start from the idea:
A normal punch of template can only injured abt 20 hp, right? Now we will let him have an opportunity to do an "one hit KO"
Open template.dat. There are 4 standing-frames (0-3), so at the final frame, give him 'hit_a: 235' instead of 'hit_a: 0'
Like this:
<frame> 3 standing
pic: 3 state: 0 wait: 3 next: 999 dvx: 0 dvy: 0 centerx: 39 centery: 79 hit_a: 235 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 32 y: 44 weaponact: 21 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
Then copy all punching frame, paste in the end and change the number into frame 235, 236,.. and so on, then change the injury into 500
Now the data should look like this
<frame> 235 punch-one-hit-KO
pic: 10 state: 3 wait: 2 next: 61 dvx: 1 dvy: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 2 x: 26 y: 58 w: 37 h: 23 vrest: 1
itr_end:
bdy:
kind: 0 x: 30 y: 18 w: 28 h: 60
bdy_end:
bdy:
kind: 0 x: 23 y: 35 w: 37 h: 24
bdy_end:
<frame_end>
<frame> 236 punch-one-hit-KO
pic: 11 state: 3 wait: 3 next: 999 dvx: 0 dvy: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\007.wav
itr:
kind: 0 x: 49 y: 33 w: 30 h: 16 dvx: 2 bdefend: 100 injury: 10000
itr_end:
bdy:
kind: 0 x: 39 y: 19 w: 21 h: 61
bdy_end:
bdy:
kind: 0 x: 51 y: 34 w: 26 h: 16
bdy_end:
<frame_end>
(here i use injury 10000 to make sure the enemy is really knocked out.
Now we've done it.
(You can also give an opoint to create the line " It's a one-hit-KO", or something,...)
P.S: I haven't try it yet, but it should work fine.
Ok, first we start from the idea:
A normal punch of template can only injured abt 20 hp, right? Now we will let him have an opportunity to do an "one hit KO"
Open template.dat. There are 4 standing-frames (0-3), so at the final frame, give him 'hit_a: 235' instead of 'hit_a: 0'
Like this:
<frame> 3 standing
pic: 3 state: 0 wait: 3 next: 999 dvx: 0 dvy: 0 centerx: 39 centery: 79 hit_a: 235 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 32 y: 44 weaponact: 21 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
Then copy all punching frame, paste in the end and change the number into frame 235, 236,.. and so on, then change the injury into 500
Now the data should look like this
<frame> 235 punch-one-hit-KO
pic: 10 state: 3 wait: 2 next: 61 dvx: 1 dvy: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 2 x: 26 y: 58 w: 37 h: 23 vrest: 1
itr_end:
bdy:
kind: 0 x: 30 y: 18 w: 28 h: 60
bdy_end:
bdy:
kind: 0 x: 23 y: 35 w: 37 h: 24
bdy_end:
<frame_end>
<frame> 236 punch-one-hit-KO
pic: 11 state: 3 wait: 3 next: 999 dvx: 0 dvy: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\007.wav
itr:
kind: 0 x: 49 y: 33 w: 30 h: 16 dvx: 2 bdefend: 100 injury: 10000
itr_end:
bdy:
kind: 0 x: 39 y: 19 w: 21 h: 61
bdy_end:
bdy:
kind: 0 x: 51 y: 34 w: 26 h: 16
bdy_end:
<frame_end>
(here i use injury 10000 to make sure the enemy is really knocked out.
Now we've done it.
(You can also give an opoint to create the line " It's a one-hit-KO", or something,...)
P.S: I haven't try it yet, but it should work fine.