Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[help] Pick flying weapon in mid-air
#16
first: moved to advanced.

Second: Actrually the picking light weapon thing is easy - a bdy in the weapon and the itr / kind 2 in the punch frames of the char have to get each other - if they do the char catch the weapon, the frame with the bdy must have state 1004.

Third: To catch the weapon in the air is a matter of timing. That`s the main problem, and since you only got one picking-light frame for the catch from ground and the catch from sky you have to make this frame work for both situations - i suggest some kind of magic like in harry potter 1 movie where they catch the broom :p

So lets start: My plan was to allow davis to catch a sword from freeze flying towards him as soon as it`s less then 100px away.

So first i midified the weapon7.dat - since the weapon is thrown and dont fall from sky when he can catch it you have to modify the throwing frames:

    DC-Code:
<frame> 40 throwing
   pic: 0  state: 1004  wait: 0  next: 41  dvx: 0  dvy: 0  centerx: 35  centery: 58  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 12  y: 16  w: 49  h: 47  dvx: 8  fall: 70  bdefend: 16  injury: 40    effect: 3
   itr_end:
   bdy:
      kind: 0  x: 12  y: 15  w: 49  h: 49
   bdy_end:
 
   bdy: #catch it magic
      kind: 0  x: 0  y: 1040  w: 80  h: 500
   bdy_end:
<frame_end>


since only davis should be able to do this i had to bring the bdy and itrs to a new level - so here y: 1000. i choose height 500 so i dont get into trouble with all the y-stuff. make sure you change the state to 1004

next i modify the first punch frames of davis:

    DC-Code:
<frame> 60 punch
   pic: 10  state: 3  wait: 1  next: 61  dvx: 0  dvy: 0  dvz: 0  centerx: 42  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   itr: #catch normal weapons
      kind: 2  x: 27  y: 57  w: 36  h: 25  vrest: 1  
   itr_end:
   itr: #catch them the magic way (weapons flying towards you)
      kind: 2  x: 40  y: 1079  w: 140  h: 500  vrest: 1  
   itr_end:
   bdy:
      kind: 0  x: 28  y: 12  w: 33  h: 70
   bdy_end:
<frame_end>


the "#catch normal weapons-itr" isnt modified, i added the second one level is y: 1000 again, the x-area starts at x: 40 (middle of char) and go 140 px forward - the area where he can start to catch weapons.

Now i also modified the pickinc_light frame:
    DC-Code:
<frame> 115 picking_light
   pic: 19  state: 15  wait: 2  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 46  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 54  y: 55  weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 24  y: 43  w: 33  h: 37
   bdy_end:
   bdy:
      kind: 0  x: 32  y: 24  w: 28  h: 28
   bdy_end:
<frame_end>


the only thing i did is change the image and the wait so it dont look like he pick a weapon from ground if he pick it from sky and the wpoint - only for visual, nothing important...

Now a little video... (I installed a prog only for this - i just like to solve advanced problems :))

http://tinypic.com/player.php?v=33yj9xy&s=5

In the attachement you find the example files, the video and the tutorial...

Have fun ^^

EDIT: Rofl, while I made this there were two new posts :p

EDIT2: It might be the weapon don`t fly as far as normal with the state 1004 in throwing - add a dvy: -1 in each throwing frame and it should be close to the original throw distance...


Attached Files
.rar   Catch-Weapon-In-The-Air.rar (Size: 635.48 KB / Downloads: 98)
[Image: random.php?pic=random]
<div style="border:0px solid #000000;">
<font face="Trebuchet MS"><i><a href="www.lf-empire.de" target="_blank">www.lf-empire.de</a></i>
Once I had a fortune, it said: "Leave now. Life is short. Time is luck" <br>Don't dream your life, live your dream!</font>
</div>
Reply
Thanks given by:


Messages In This Thread
[help] Pick flying weapon in mid-air - by SparK - 03-19-2010, 07:51 AM
RE: [help] Pick flying weapon in mid-air - by MH-Razen - 03-20-2010, 10:24 AM



Users browsing this thread: 1 Guest(s)