pbbopenbor
New member
I'm trying to understand how thrown weapons work. I have a weapon definition:
I can throw the weapon easily enough using throwframe. However the weapon never hits anything. I can see it has a bounding box but it doesn't appear to have any attack box when using the debug tools.
Code:
name knifeT #THROWNED
type none
subtype weapon
nolife 1
lifespan 4
remove 1
gfxshadow 1 1
noatflash 1
flash noflash
anim idle
attackone 1
fastattack 1
jugglecost 5
forcedirection -1
hitflash bloodhit
loop 0
delay 1
offset 25 27
bbox 16 25 19 3
hitfx data/sounds/Cutter.wav
attack 16 25 19 3 8 1 0 0 10 12
frame data/chars/weapons/knife07.gif
sound data/sounds/Whoosh.wav
attack 16 25 50 50 8 1 0 0 10 12
frame data/chars/weapons/knife07.gif
anim fall
landframe 9
loop 1 1 9
delay 2
offset 25 27
sound data/sounds/Clash.wav
frame data/chars/weapons/knife00.gif
sound data/sounds/Whoosh.wav
frame data/chars/weapons/knife00.gif
frame data/chars/weapons/knife01.gif
frame data/chars/weapons/knife02.gif
frame data/chars/weapons/knife03.gif
frame data/chars/weapons/knife04.gif
frame data/chars/weapons/knife05.gif
frame data/chars/weapons/knife06.gif
frame data/chars/weapons/knife07.gif
frame data/chars/weapons/knife08.gif
I can throw the weapon easily enough using throwframe. However the weapon never hits anything. I can see it has a bounding box but it doesn't appear to have any attack box when using the debug tools.