0007040a |
When shot/hit, assign function 040a - President shot |
0006fd040a |
Set return function for $self to function 040a - President shot |
0034fd2d |
If $self has finished death animation goto 2d |
0033fd2d |
If $self is dying/dead goto 2d |
017bfd2d |
If $self's body has disappeared goto 2d |
000006 |
Go to next 06 |
00022d |
Label 2d |
00070000 |
When shot/hit, assign function 0000 - Idle |
0005fd0000 |
Assign function 0000 - Idle to $self and advance frame |
000206 |
Label 06 |
0083fd2d |
If $self shot (while recoiling?) goto 2d |
000006 |
Go to next 06 |
00022d |
Label 2d |
00020a |
Label 0a |
0003 |
Yield |
003206 |
If actor has stopped moving goto 06 |
00010a |
Go to first 0a |
000206 |
Label 06 |
0128fe08 |
If actor within 254 units of an enemy and has line of sight then set AI vs AI and goto 08 |
0054fd0014232806 |
If $self is within 20 units of $self->pad goto 06 |
000203 |
Label 03 |
001d2328 |
Jog to $self->pad |
000204 |
Label 04 |
0003 |
Yield |
00b5474f20544f205041440a00 |
// GO TO PAD |
0128fe08 |
If actor within 254 units of an enemy and has line of sight then set AI vs AI and goto 08 |
0054fd0014232806 |
If $self is within 20 units of $self->pad goto 06 |
000104 |
Go to first 04 |
000206 |
Label 06 |
0009 |
Actor stops travelling |
000209 |
Label 09 |
0003 |
Yield |
00b54154205041440a00 |
// AT PAD |
0128fe08 |
If actor within 254 units of an enemy and has line of sight then set AI vs AI and goto 08 |
0055fd001e232806 |
If $self is further than 30 units of $self->pad goto 06 |
000109 |
Go to first 09 |
000206 |
Label 06 |
000103 |
Go to first 03 |
000208 |
Label 08 |
00b544455445435445440a00 |
// DETECTED |
0006fd040a |
Set return function for $self to function 040a - President shot |
0007040a |
When shot/hit, assign function 040a - President shot |
0005fd000c |
Assign function 000c - Combat with ally? to $self and advance frame |
0004 |
End of function |
If president gets shot, he stops and must detect Joanna again.