Hello there, i was trying to get into modding, and i had idea of recreating the grenade laucher i saw in BSTRhino's Terran Doom, so i find out how to make it work but there's a little side effect... unexpected. When my marine kills it's target it gets stuck into a walking animation loop without moving.
I have no idea why it happens. Can you help me sorting out what the problem is? Thanks in advance
Collapse Box
MarineGndAttkRpt:
wait 1
nobrkcodestart
playsnd 69 # Bullet\TMaFir00.wav
attackwith 1
playfram 0x33 # frame set 3
wait 1
playfram 0x22 # frame set 2
wait 1
playfram 0x33 # frame set 3
wait 1
playfram 0x22 # frame set 2
wait 1
playfram 0x33 # frame set 3
wait 1
playfram 0x22 # frame set 2
wait 1
randcondjmp 50 Grenade
nobrkcodeend
gotorepeatattk
ignorerest
MarineGndAttkToIdle:
playfram 0x11 # frame set 1
wait 1
playfram 0x00 # frame set 0
wait 1
goto MarineWalkingToIdle
Grenade:
wait 1
useweapon 5
wait 1
gotorepeatattk
None.
Add a nobrkcodeend to the end of the Grenade block. Also, you should add goto MarineGndAttkToIdle after the gotorepeatattk opcodes.
None.