Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could you explain this heal?
#1
No matter how many times I look at this healing, I don't get how it works. In the game it'll "toggle" healing(like you'll be able to read out) and it can heal you past the dark red, but not over the maximum. I'd like to reproduce the effect, but how does it actually work?

Code:
<frame> 240 heal
   pic: 47  state: 15  wait: 1 next: 145 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0 mp: 15

  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>

<frame> 145 heal
   pic: 48 state: 15  wait: 1 next: 146 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0
sound: data\007.wav
  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 146 heal
   pic: 49  state: 15  wait: 2 next: 147 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0
  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 147 heal
   pic: 47 state: 15  wait: 1 next: 148 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0
  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 148 heal
   pic: 48 state: 15  wait: 1 next: 149 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0
sound: data\007.wav
  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 149 heal
   pic: 49  state: 15  wait: 2 next: 150 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0 mp: 15
  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 150 heal
   pic: 47 state: 15  wait: 1 next: 151 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0
  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 151 heal
   pic: 48 state: 15  wait: 1 next: 152  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0
sound: data\007.wav
  wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 152 heal
   pic: 49  state: 15  wait: 2 next: 241 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0 hit_j: 0 mp: 15
sound: data\SNDDATA_1940.wav
wpoint:
      kind: 1  x: 33  y: 60  weaponact: 21  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>

<frame> 241 heal
   pic: 100  state: 1700  wait: 2  next: 242  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 mp: -25
sound: data\052.wav  
opoint:
      kind: 2  x: 39 y: -999 action: 31  dvx: 0  dvy: 0  oid: 122  facing: 0
   opoint_end:
  wpoint:
      kind: 1  x: 39  y: -999 weaponact: 31 attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
<frame_end>
<frame> 242 heal
   pic: 101  state: 17  wait: 2 next: 243  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 246 hit_d: 246 hit_j: 246 mp: -25
  wpoint:
      kind: 1  x: 39 y: -999 weaponact: 31 attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
<frame_end>
<frame> 243 heal
   pic: 102  state: 17  wait: 2 next: 244  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 246 hit_d: 246 hit_j: 246 mp: -25
  wpoint:
      kind: 1  x: 39 y: -999 weaponact: 31 attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 26  w: 37  h: 53
   bdy_end:
<frame_end>
<frame> 244 heal
   pic: 103  state: 17 wait: 2 next: 245  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 246 hit_d: 246 hit_j: 246 mp: -25
  wpoint:
      kind: 1 x: 39 y: -999 weaponact: 31 attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 10  y: 38  w: 54  h: 21
   bdy_end:
   bdy:
      kind: 0  x: 26  y: 55  w: 32  h: 26
   bdy_end:
<frame_end>
<frame> 245 heal
   pic: 104  state: 17 wait: 2 next: 242 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 246 hit_d: 246 hit_j: 246 mp: -25
  wpoint:
      kind: 1 x: 39 y: -999 weaponact: 31 attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 10  y: 38  w: 54  h: 21
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
<frame> 246 heal
   pic: 104  state: 15 wait: 0 next: 999 dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 999 y: 200 weaponact: 35  attacking: 0  cover: 1  dvx: 55 dvy: -10
   wpoint_end:
   bdy:
      kind: 0  x: 10  y: 38  w: 54  h: 21
   bdy_end:
   bdy:
      kind: 0  x: 26  y: 55  w: 32  h: 26
   bdy_end:
<frame_end>
And the object it opoints, it's action 31, to be more precise:
Code:
<frame> 31 on_hand
   pic: 999  state: 1001  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 24  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 2  x: 33  y: 21  weaponact: 0  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   itr:
      kind: 5  x: 19  y: 15  w: 22  h: 14  dvx: 8  fall: 20  bdefend: 16  injury: 789  
   itr_end:
<frame_end>
There are probably many many unneeded frames(the character does some movements before healing begins), sorry about those, but I don't really know what causes the healing.
Reply
Thanks given by:
#2
state: 17

the character is drinking milk
Reply
Thanks given by: Kezeal
#3
What's state: 1700 and what's the point of the opoint:?
Reply
Thanks given by:
#4
(02-12-2013, 07:51 PM)Kenert Wrote:  What's state: 1700 and what's the point of the opoint:?
State 1700 is simply a heal effect. It's the same used in John's self heal (DvJ).
The opoint creates a milk bottle at y: -999 (outside of the viewable area), and then in the next frame the character drinks it (state 17), in the last frame of the move, the milk bottle is thrown off screen so it disappears.
The purpose of the milk bottle, is to prevent the character from going past the 500 health cap. You can see that drinking a milk bottle never heals above 500 health and this is exploited to reset the health down to 500 if the heal effect (negative damage) went past the cap.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: Kezeal , John Fighterli




Users browsing this thread: 3 Guest(s)