home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 2000 January
/
CD-Gamer_2000-01_04_cd.bin
/
games
/
phoenix.exe
/
Tactics
/
Dogfight
/
turret.tac
< prev
Wrap
Text File
|
1999-08-15
|
603b
|
31 lines
A: TURRET
B: FIGHTER;TURRET;BOMBER;FIGHTER2;EMPLACEMENT
Targets(B)
Start(A)
// Pick the closest enemy every second, after an initial period of 5 seconds.
Lock(B)
Do(SayIm[A,"ATTACK",B])
StopAndFire(AB)
Timer(A,4000)
Label(FIRST_ATTACK_LOOP)
If(Timer[A]): Goto(FIRST_ATTACK_LOOP)
Label(PICK_NEW_TARGET)
If(GetCloserTarget[A,B]): Lock(B)
Do(SayIm[A,"ATTACK",B])
StopAndFire(AB)
Timer(A,1000)
Label(ATTACK_LOOP)
If(ShotByOther[A,F]): Gosub(SHOT_BY_OTHER)
If(Timer[A]): Goto(ATTACK_LOOP)
Goto(PICK_NEW_TARGET)
Label(SHOT_BY_OTHER)
Split(AF,turret)
Label(DONE)
Goto(DONE)