oldyz
Well-known member
hello, i had crazy idea that would "dinamically" fix or unbind any buggy grabs, throws or body slams on night slashers that where "created" by the new engine....
some time ago i told DC that i would like the arms of characters to have a "3D" /multilayer effect when doing some grabs or throws, so spawnbind seems to do the job well, so i was thinking might as well use the arm entities and take advantage of some of spawnbind's functions or features to fix some "grab" problems in the module too...
i was thinking on using spawnbind script's ability to "kill" the entity if frames don't match, and so, if a grab is not successful for any reason, with some characters,
like dracula here:
, the grab animation would be cancelled and the "Sitcky" bug would not happen...
so during Jake's slam suplex animaton, a spawnbind "jake arms" entitiy would appear and contain the commands for the slam, if anything goes wrong during the suplex animation, the "jake arms" entitiy should dissppear and let go of the dracula automatically...
well turns out that the "jake arms" entitiy appears , but the commands do nothing to Dracula or any other character...
at fhis point , i think spawnbind seems to use visual attributes only, if the spawnbinded entity has attack boxes or commands on the animation, they don't seem to work.
here is jake's modified script for the suplex:
the jake arms entity code:
the jakcarms entity has been tested as enemy, npc, trap (if i set it as player it crashes the engine)
some time ago i told DC that i would like the arms of characters to have a "3D" /multilayer effect when doing some grabs or throws, so spawnbind seems to do the job well, so i was thinking might as well use the arm entities and take advantage of some of spawnbind's functions or features to fix some "grab" problems in the module too...
i was thinking on using spawnbind script's ability to "kill" the entity if frames don't match, and so, if a grab is not successful for any reason, with some characters,
like dracula here:
so during Jake's slam suplex animaton, a spawnbind "jake arms" entitiy would appear and contain the commands for the slam, if anything goes wrong during the suplex animation, the "jake arms" entitiy should dissppear and let go of the dracula automatically...
well turns out that the "jake arms" entitiy appears , but the commands do nothing to Dracula or any other character...
at fhis point , i think spawnbind seems to use visual attributes only, if the spawnbinded entity has attack boxes or commands on the animation, they don't seem to work.
here is jake's modified script for the suplex:
Code:
## 2023 suplex to back ###
anim grabbackward
@cmd spawnbind "jackarms" 0 0 0 1 6
offset 72 140
delay 15
attackone 1
bbox 0 0 0 0
frame data/chars/jack/b1
sound data/sounds/n/jkuoo.wav
frame data/chars/jack/052 #b2
frame data/chars/jack/b3
delay 30
frame data/chars/jack/b4
delay 20
frame data/chars/jack/104
frame data/chars/jack/105
frame data/chars/jack/106
the jake arms entity code:
Code:
name Jackarms
health 100
mp 100
speed 10
grabwalk 9
mprate 1
nolife 1
chargerate 2
type trap
shadow 3
makeinv 4
running 20 4 2 1 0
throw 2 4
grabdistance 24
bflash flashf
thold 1
noquake 1
throwdamage 20
atchain 1 2 3 4
gfxshadow 1
jumpheight 4
bounce 1
weapons jack2 jack3 jack4 jack5 jack6 jack7 jack8 jack12 jack10 jack11 jack202 Jack
icon data/chars/jack/icon
animationscript data/scripts/player.c
dust dust
nodieblink 1
height 109 ## new 2023
diesound data/sounds/n/jkdie.wav
projectilehit enemy obstacle npc
candamage enemy npc obstacle
palette data/chars/misc/z1
## 2023 suplex to back ###
anim grabbackward
offset 72 140
delay 15
attackone 1
bbox 0 0 0 0
@cmd ani002 "ANI_GRABBED" 0
@cmd anti
@cmd position 0 38 0 -1 1
frame data/chars/jack/b1
@cmd hurt 0 7
sound data/sounds/n/jkuoo.wav
@cmd position 0 30 10 -1 1
frame data/chars/jack/052 #b2
@cmd hurt 0 7
@cmd position 1 -10 65 -1 1
frame data/chars/jack/b3
delay 30
@cmd hurt 0 7
@cmd position 1 -10 30 -1 1
@cmd depost 0
@cmd throw 25 3 -2 2 0 0
frame data/chars/jack/b4
delay 20
frame data/chars/jack/104
frame data/chars/jack/105
frame data/chars/jack/106
the jakcarms entity has been tested as enemy, npc, trap (if i set it as player it crashes the engine)
Last edited: