Code
Goliath_Turret_Init:
playfram 0x77 # frame set 7
goto Goliath_Turret_Local00
Goliath_Turret_Local00:
wait 125
goto Goliath_Turret_Local00
Goliath_Turret_Death:
wait 1
end
Goliath_Turret_GndAttkInit:
playfram 0xaa # frame set 10
playsnd 70 # Bullet\TGoFir00.wav
attackwith 1
wait 1
playfram 0x77 # frame set 7
wait 1
playfram 0xaa # frame set 10
wait 1
playfram 0x77 # frame set 7
wait 1
playfram 0xaa # frame set 10
wait 1
randcondjmp 128 Goliath_Turret_Local01
randcondjmp 128 Goliath_Turret_Local02
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_Local01:
playsndrand 4 242 244 245 246 # Terran\GOLIATH\TGoPss00.wav, Terran\GOLIATH\TGoPss02.WAV, Terran\GOLIATH\TGoPss03.WAV, Terran\GOLIATH\TGoPss04.WAV
wait 1
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_Local02:
imgol 537 8 0 # Unknown537 (thingy\esiFire.grp)
wait 1
useweapon 129 # Gauss Rifle
wait 1
useweapon 129 # Gauss Rifle
wait 1
useweapon 129 # Gauss Rifle
wait 1
useweapon 129 # Gauss Rifle
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_AirAttkInit:
wait 1
playsnd 80 # Bullet\HKMISSLE.wav
attackwith 2
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_Walking:
move 0
wait 1
playfram 0x88 # frame set 8
move 0
wait 1
playfram 0x99 # frame set 9
move 0
wait 1
playfram 0x00 # frame set 0
move 0
wait 1
playfram 0x11 # frame set 1
move 0
wait 1
playfram 0x22 # frame set 2
move 0
wait 1
playfram 0x33 # frame set 3
move 0
wait 1
playfram 0x44 # frame set 4
move 0
wait 1
playfram 0x55 # frame set 5
move 0
wait 1
playfram 0x66 # frame set 6
move 0
wait 1
playfram 0x77 # frame set 7
goto Goliath_Turret_Walking
playfram 0x77 # frame set 7
goto Goliath_Turret_Local00
Goliath_Turret_Local00:
wait 125
goto Goliath_Turret_Local00
Goliath_Turret_Death:
wait 1
end
Goliath_Turret_GndAttkInit:
playfram 0xaa # frame set 10
playsnd 70 # Bullet\TGoFir00.wav
attackwith 1
wait 1
playfram 0x77 # frame set 7
wait 1
playfram 0xaa # frame set 10
wait 1
playfram 0x77 # frame set 7
wait 1
playfram 0xaa # frame set 10
wait 1
randcondjmp 128 Goliath_Turret_Local01
randcondjmp 128 Goliath_Turret_Local02
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_Local01:
playsndrand 4 242 244 245 246 # Terran\GOLIATH\TGoPss00.wav, Terran\GOLIATH\TGoPss02.WAV, Terran\GOLIATH\TGoPss03.WAV, Terran\GOLIATH\TGoPss04.WAV
wait 1
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_Local02:
imgol 537 8 0 # Unknown537 (thingy\esiFire.grp)
wait 1
useweapon 129 # Gauss Rifle
wait 1
useweapon 129 # Gauss Rifle
wait 1
useweapon 129 # Gauss Rifle
wait 1
useweapon 129 # Gauss Rifle
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_AirAttkInit:
wait 1
playsnd 80 # Bullet\HKMISSLE.wav
attackwith 2
gotorepeatattk
goto Goliath_Turret_Init
Goliath_Turret_Walking:
move 0
wait 1
playfram 0x88 # frame set 8
move 0
wait 1
playfram 0x99 # frame set 9
move 0
wait 1
playfram 0x00 # frame set 0
move 0
wait 1
playfram 0x11 # frame set 1
move 0
wait 1
playfram 0x22 # frame set 2
move 0
wait 1
playfram 0x33 # frame set 3
move 0
wait 1
playfram 0x44 # frame set 4
move 0
wait 1
playfram 0x55 # frame set 5
move 0
wait 1
playfram 0x66 # frame set 6
move 0
wait 1
playfram 0x77 # frame set 7
goto Goliath_Turret_Walking
just out of curiosity why does almost all units has a wait value of 125 (well can't it be done with some other valuse than 125?)
None.