I've fixed my work and am now able to create a custom broken_weapon without hex-editing the LF2 executable.
You guys want an explanation/example?
You guys want an explanation/example?
Original post. (Click to View)
Can someone explain the custom broken_weapon technique involving a weapon holding a weapon to me again? I get a lot of glitches whenever I give it a shot :/
Here's the 'custom broken_weapon' file I've been using:
(The oid: 261 points towards this file. It summons the 'box' pieces.)
The two frames inside the actual weapon which summon the custom broken_weapon weapon (ASDHFGDS):
Wpoint used inside the actual weapon which holds the custom broken_weapon weapon:
My character currently needs 8 data files to run... Gotta find a way to shrink that number down to 6...
Edit: Some extra info:
The weapon summons the custom broken_weapon weapon and holds it just the way I want it to, but the box-pieces don't show up when the holding weapon is destoyed. Can you guys find the faulty code in my DC-work?
Edit2: The opoints in the 'in_the_sky'-frames don't function at all; will have to find a different way to opoint the box-pieces :/
Here's the 'custom broken_weapon' file I've been using:
Code:
<bmp_begin>
file(0-15): ######\######.bmp w: 27 h: 28 row: 8 col: 2
weapon_hp: 1
weapon_drop_hurt: 1
<bmp_end>
<frame> 0 in_the_sky
pic: 99 state: 2000 wait: 0 next: 1 dvx: 0 dvy: 550 centerx: 29 centery: 56
<frame_end>
<frame> 1 in_the_sky
pic: 99 state: 2000 wait: 0 next: 2 dvx: 0 dvy: 550 centerx: 29 centery: 56
opoint:
kind: 1 x: 29 y: 26 action: 40 dvx: 2 dvy: -6 oid: 261 facing: 1
opoint_end:
<frame_end>
<frame> 2 in_the_sky
pic: 99 state: 2000 wait: 0 next: 3 dvx: 0 dvy: 550 centerx: 29 centery: 56
opoint:
kind: 1 x: 29 y: 26 action: 50 dvx: 3 dvy: -4 oid: 261 facing: 0
opoint_end:
<frame_end>
<frame> 3 in_the_sky
pic: 99 state: 2000 wait: 0 next: 4 dvx: 0 dvy: 550 centerx: 29 centery: 56
opoint:
kind: 1 x: 29 y: 26 action: 40 dvx: 3 dvy: -6 oid: 261 facing: 20
opoint_end:
<frame_end>
<frame> 4 in_the_sky
pic: 99 state: 2000 wait: 0 next: 5 dvx: 0 dvy: 550 centerx: 29 centery: 56
opoint:
kind: 1 x: 29 y: 26 action: 50 dvx: 4 dvy: -5 oid: 261 facing: 1
opoint_end:
<frame_end>
<frame> 5 in_the_sky
pic: 99 state: 2000 wait: 0 next: 1000 dvx: 0 dvy: 550 centerx: 29 centery: 56
<frame_end>
<frame> 10 on_hand
pic: 2 state: 2001 wait: 0 next: 0 dvx: 0 dvy: 0 centerx: 29 centery: 56
wpoint:
kind: 2 x: 29 y: 56 weaponact: 35 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
<frame_end>
<frame> 20 on_ground
pic: 99 state: 2004 wait: 0 next: 1000 dvx: 0 dvy: 0 centerx: 29 centery: 51
<frame_end>
<frame> 21 just_on_ground
pic: 99 state: 2000 wait: 1 next: 1000 dvx: 0 dvy: 0 centerx: 29 centery: 56
<frame_end>
<frame> 40 box01
pic: 0 state: 9999 wait: 2 next: 41 dvx: 0 dvy: 0 centerx: 10 centery: 27 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 41 box02
pic: 1 state: 2000 wait: 2 next: 42 dvx: 0 dvy: 0 centerx: 10 centery: 23 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 42 box03
pic: 2 state: 2000 wait: 2 next: 43 dvx: 0 dvy: 0 centerx: 16 centery: 22 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 43 box04
pic: 3 state: 2000 wait: 2 next: 40 dvx: 0 dvy: 0 centerx: 17 centery: 28 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 44 box11
pic: 4 state: 2000 wait: 2 next: 45 dvx: 0 dvy: 0 centerx: 17 centery: 25 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 45 box12
pic: 5 state: 2000 wait: 2 next: 46 dvx: 0 dvy: 0 centerx: 13 centery: 27 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 46 box13
pic: 6 state: 2000 wait: 2 next: 47 dvx: 0 dvy: 0 centerx: 11 centery: 27 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 47 box14
pic: 7 state: 2000 wait: 2 next: 44 dvx: 0 dvy: 0 centerx: 13 centery: 22 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 50 box21
pic: 8 state: 2000 wait: 2 next: 51 dvx: 0 dvy: 0 centerx: 10 centery: 27 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 51 box22
pic: 9 state: 2000 wait: 2 next: 52 dvx: 0 dvy: 0 centerx: 10 centery: 23 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 52 box23
pic: 10 state: 2000 wait: 2 next: 53 dvx: 0 dvy: 0 centerx: 16 centery: 22 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 53 box24
pic: 11 state: 2000 wait: 2 next: 50 dvx: 0 dvy: 0 centerx: 17 centery: 28 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 54 box31
pic: 12 state: 2000 wait: 2 next: 55 dvx: 0 dvy: 0 centerx: 17 centery: 25 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 55 box32
pic: 13 state: 2000 wait: 2 next: 56 dvx: 0 dvy: 0 centerx: 13 centery: 27 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 56 box33
pic: 14 state: 2000 wait: 2 next: 57 dvx: 0 dvy: 0 centerx: 11 centery: 27 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 57 box34
pic: 15 state: 2000 wait: 2 next: 54 dvx: 0 dvy: 0 centerx: 13 centery: 22 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
The two frames inside the actual weapon which summon the custom broken_weapon weapon (ASDHFGDS):
Code:
<frame> 150 ready_break
pic: 5 state: 2004 wait: 0 next: 151 dvx: 0 dvy: 0 centerx: 58 centery: 75
<frame_end>
<frame> 151 break_prepare
pic: 5 state: 2004 wait: 0 next: 17 dvx: 0 dvy: 0 centerx: 58 centery: 75
opoint:
kind: 2 x: 58 y: 75 action: 10 dvx: 0 dvy: 0 oid: 261 facing: 0
opoint_end:
wpoint:
kind: 1 x: 58 y: 75 weaponact: 10 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
<frame_end>
Wpoint used inside the actual weapon which holds the custom broken_weapon weapon:
Code:
wpoint:
kind: 1 x: 58 y: 75 weaponact: 10 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
My character currently needs 8 data files to run... Gotta find a way to shrink that number down to 6...
Edit: Some extra info:
The weapon summons the custom broken_weapon weapon and holds it just the way I want it to, but the box-pieces don't show up when the holding weapon is destoyed. Can you guys find the faulty code in my DC-work?
Edit2: The opoints in the 'in_the_sky'-frames don't function at all; will have to find a different way to opoint the box-pieces :/
My projects:
=> Comet - LF2 ver.1.9/1.9c skin.
=> CRE - ComboRegenerativeEnemy.
Contact me if the links to my projects become unavailable.
=> Comet - LF2 ver.1.9/1.9c skin.
=> CRE - ComboRegenerativeEnemy.
Contact me if the links to my projects become unavailable.