custknife help (legacy) (fixed)

NED

Well-known member
Hi,
I'm tweaking some old mods (experiment)
And I'm not sure how to define both these things, because the projectile appears in the wrong place.
-The offset of a custom knife (the entity axis itself)
-The offset where it appears when the character launches it.

CODE : (custom knife)
Code:
name     hadof
health   0
speed    20
type     pshot
counter  9999
shootnum 9999
nolife   1
remove   1
candamage enemy obstacle
gfxshadow    1
#alpha    1

anim idle
    loop    0
    delay    9
    offset    80 16#-10 120
      hitfx  data/sounds/balll.wav
      hitflash  bufla
      shock  50 78 27 47 20 2 0 0 1
    frame    data\chars\er\hadof01.gif
    frame    data\chars\er\hadof02.gif

Code:
anim freespecial
    loop    0
    delay    4
    offset    96 163
      hitfx  data/sounds/ball.wav
      sound   data/sounds/ball.wav
      custknife hadof
    throwframe 4
      frame    data/chars/er/fireb1.gif
      frame    data/chars/er/fireb1.gif
      frame    data/chars/er/fireb2.gif
    offset    96 163
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
    offset    96 163
      frame    data/chars/er/fireb2.gif
      frame    data/chars/er/fireb1.gif
 
Hi,
I'm tweaking some old mods (experiment)
And I'm not sure how to define both these things, because the projectile appears in the wrong place.
-The offset of a custom knife (the entity axis itself)
-The offset where it appears when the character launches it.

CODE : (custom knife)
Code:
name     hadof
health   0
speed    20
type     pshot
counter  9999
shootnum 9999
nolife   1
remove   1
candamage enemy obstacle
gfxshadow    1
#alpha    1

anim idle
    loop    0
    delay    9
    offset    80 16#-10 120
      hitfx  data/sounds/balll.wav
      hitflash  bufla
      shock  50 78 27 47 20 2 0 0 1
    frame    data\chars\er\hadof01.gif
    frame    data\chars\er\hadof02.gif

Code:
anim freespecial
    loop    0
    delay    4
    offset    96 163
      hitfx  data/sounds/ball.wav
      sound   data/sounds/ball.wav
      custknife hadof
    throwframe 4
      frame    data/chars/er/fireb1.gif
      frame    data/chars/er/fireb1.gif
      frame    data/chars/er/fireb2.gif
    offset    96 163
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
      frame    data/chars/er/fireb3.gif
    offset    96 163
      frame    data/chars/er/fireb2.gif
      frame    data/chars/er/fireb1.gif
The throwframe does not have too much adjustments, and the only axis available is Y (or "a", altitude). I suggest using scripts to throw projectiles, like @cmd shooter.

1740263443177.png
 
  • Like
Reactions: NED
Thanks @Kratus! It helped a lot!
Since I'm just tweaking an old mod here, I'll keep it this way.
But I keep in mind this should be replaced with better options for my own mods in the future.
Problem fixed.
 
Back
Top Bottom