ad54410a00 |
// TA |
0204 |
Label 04 |
03 |
Yield |
530032003b29 |
If actor is further than 50 units of pad 003b then goto 29 |
0247 |
Label 47 |
ac00005c |
Set actor 00 (Trevelyan)'s target_pad to 5c |
970004 |
Mask actor type for actor 00 (Trevelyan) with 04 |
05fd040e |
Assign function 040e - Trev at location F to $self and advance frame |
0229 |
Label 29 |
530032003e29 |
If actor is further than 50 units of pad 003e then goto 29 |
0248 |
Label 48 |
33 |
Call RNG |
353c2a |
If random byte > 60 then goto 2a |
ac000091 |
Set actor 00 (Trevelyan)'s target_pad to 91 |
970004 |
Mask actor type for actor 00 (Trevelyan) with 04 |
05fd040a |
Assign function 040a - Trev at location B to $self and advance frame |
022a |
Label 2a |
35782a |
If random byte > 120 then goto 2a |
9b08000000 |
Unset flag #28 () |
ac000001 |
Set actor 00 (Trevelyan)'s target_pad to 01 |
970004 |
Mask actor type for actor 00 (Trevelyan) with 04 |
05fd040b |
Assign function 040b - Trev at location C to $self and advance frame |
022a |
Label 2a |
35b42a |
If random byte > 180 then goto 2a |
9b08000000 |
Unset flag #28 () |
ac000009 |
Set actor 00 (Trevelyan)'s target_pad to 09 |
970004 |
Mask actor type for actor 00 (Trevelyan) with 04 |
05fd040c |
Assign function 040c - Trev at location D to $self and advance frame |
022a |
Label 2a |
9b08000000 |
Unset flag #28 () |
ac000013 |
Set actor 00 (Trevelyan)'s target_pad to 13 |
970004 |
Mask actor type for actor 00 (Trevelyan) with 04 |
05fd040d |
Assign function 040d - Trev at location E to $self and advance frame |
0229 |
Label 29 |
9c0400000041 |
If flag #27 () is set then goto 41 |
0104 |
Go to first 04 |
0241 |
Label 41 |
9b04000000 |
Unset flag #27 () |
55002242 |
If Bond is in the same room as pad 0022 then goto 42 |
55004543 |
If Bond is in the same room as pad 0045 then goto 43 |
55005b43 |
If Bond is in the same room as pad 005b then goto 43 |
33 |
Call RNG |
353243 |
If random byte > 50 then goto 43 |
0242 |
Label 42 |
0147 |
Go to first 47 |
0243 |
Label 43 |
0148 |
Go to first 48 |
04 |
End of function |
Where Trev can go from each location:
A -> B, C, D, E, F
B -> A, C, D, E, G
C -> A, B, D, E
D -> A, B, C, E
E -> A, B, C, D
F -> A, B
G -> A, B
A is pad 90 (console room)
B is pad 91 (opposite console room)
C is pad 01 (top area 2)
D is pad 09 (top area 1)
E is pad 13 (top area 3)
F is pad 5C (down ramp from console room)
G is pad 4F (down ramp from opposite console room)