home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 2000 January
/
CD-Gamer_2000-01_04_cd.bin
/
games
/
phoenix.exe
/
Tactics
/
Misc
/
RANDOMPATHEVADEDIRECT.tac
< prev
next >
Wrap
Text File
|
1999-08-14
|
684b
|
39 lines
// A=me, B= start target null
A: CANTPICK
Targets(BC)
Start(A)
Set Priority(A,1000000)
Unlock
FlyTo(AB)
Label(FlyTowards)
If(ShotByTimed[A,C,3000]): Goto(Evade)
If(CloseTogether[A,B,4000]): Goto(PickNext)
Goto(FlyTowards)
Label(PickNext)
Do(PickRandomPath[A,B,B])
FlyTo(AB)
Goto(FlyTowards)
Label(Adone)
Goto(Adone)
Label(Evade)
Timer(A,3000)
Do(Random[A,4])
If(RandomIs[A,0]): DodgeToLeft(AC)
If(RandomIs[A,1]): DodgeToRight(AC)
If(RandomIs[A,2]): DodgeToAbove(AC)
If(RandomIs[A,3]): DodgeToBelow(AC)
Label(WaitEvade)
If(Timer[A]): Goto(WaitEvade)
Do(ForgetShip[C])
If(ShotByTimed[A,C,3000]): Goto(Evade)
FlyThrough(AB)
Goto(FlyTowards)