00070413 |
When shot/hit, assign function 0413 - CI soldier |
0128fe0a |
If actor within 254 units of an enemy and has line of sight then set AI vs AI and goto 0a |
0054fd0014232808 |
If $self is within 20 units of $self->pad goto 08 |
000203 |
Label 03 |
001d2328 |
Jog to $self->pad |
000204 |
Label 04 |
0003 |
Yield |
00b5474f20544f205041440a00 |
// GO TO PAD |
0128fe0a |
If actor within 254 units of an enemy and has line of sight then set AI vs AI and goto 0a |
0054fd0014232808 |
If $self is within 20 units of $self->pad goto 08 |
000104 |
Go to first 04 |
000208 |
Label 08 |
0009 |
Actor stops travelling |
00020b |
Label 0b |
0003 |
Yield |
00b54154205041440a00 |
// AT PAD |
0128fe0a |
If actor within 254 units of an enemy and has line of sight then set AI vs AI and goto 0a |
0055fd001e232808 |
If $self is further than 30 units of $self->pad goto 08 |
00010b |
Go to first 0b |
000208 |
Label 08 |
000103 |
Go to first 03 |
00020a |
Label 0a |
00b544455445435445440a00 |
// DETECTED |
00070413 |
When shot/hit, assign function 0413 - CI soldier |
0006fd0413 |
Set return function for $self to function 0413 - CI soldier |
0005fd000c |
Assign function 000c - Combat with ally? to $self and advance frame |
0004 |
End of function |
Actor runs to $this->pad, waits to detect Jo then assigns function 0C. Jo detection also happens while running to pad.