00b6 |
Reset and start cycle counter |
00020b |
Label 0b |
0018020000000c |
Actor faces something (entity type=0x0200, entity_id=0x0000), then goto 0c |
00020c |
Label 0c |
0003 |
Yield |
004d0a04 |
If actor is facing player within 10 degrees (?) goto 04 |
00bd00003c04 |
If cycle counter > 60 (1.0 secs) goto 04 |
00010c |
Go to first 0c |
000204 |
Label 04 |
008e630104 |
If actor's alertness > 99 goto 04 |
008a64 |
Set alertness to 100 |
00b554414c4b20310a00 |
// TALK 1 |
0130f82aff02ff010000 |
Say random quip: unknown quip |
000b002e0000ffff1010fd02 |
Actor $self does animation 002e (arms up, surrender) |
00023e |
Label 3e |
0003 |
Yield |
00bd00005a04 |
If cycle counter > 90 (1.5 secs) goto 04 |
00013e |
Go to first 3e |
000204 |
Label 04 |
013a00003f |
Attempt to target another member of our group. On success goto 3f |
000042 |
Go to next 42 |
00023f |
Label 3f |
0031fc40 |
Run to $self->target_actor, then goto 40 |
000042 |
Go to next 42 |
000240 |
Label 40 |
0003 |
Yield |
0045fc41 |
If actor $self has detected $self->target_actor goto 41 |
003241 |
If actor has stopped moving goto 41 |
000140 |
Go to first 40 |
000241 |
Label 41 |
013164 |
For all actors in the same group, set their alertness to 100 |
0130f810ff02ff000000 |
Say random quip: "Intruder alert!","We've got trouble","We've got problems" |
000242 |
Label 42 |
001e02 |
Jog to $self->target_pad (fast speed) |
000210 |
Label 10 |
0003 |
Yield |
003213 |
If actor has stopped moving goto 13 |
000110 |
Go to first 10 |
000213 |
Label 13 |
00b6 |
Reset and start cycle counter |
003f07 |
If $player is in line of sight goto 07 |
000000 |
Go to next 00 |
000207 |
Label 07 |
0106f20000 |
Set $player to P1 or P2 |
0052001e04 |
If actor is within 30 units of $player goto 04 |
000200 |
Label 00 |
000b0229ffffffff100afd02 |
Actor $self does animation 0229 (head down praying/clutching chest) |
000211 |
Label 11 |
0003 |
Yield |
01b3fd |
Allow co-op player to be considered for P1/P2 actor |
0106f20000 |
Set $player to P1 or P2 |
00bd0004b00d |
If cycle counter > 1200 (20.0 secs) goto 0d |
003f07 |
If $player is in line of sight goto 07 |
000000 |
Go to next 00 |
000207 |
Label 07 |
0052001e04 |
If actor is within 30 units of $player goto 04 |
000200 |
Label 00 |
003207 |
If actor has stopped moving goto 07 |
000111 |
Go to first 11 |
000207 |
Label 07 |
000113 |
Go to first 13 |
00020d |
Label 0d |
000142 |
Go to first 42 |
000204 |
Label 04 |
01360202 |
Undocumented |
00b6 |
Reset and start cycle counter |
000214 |
Label 14 |
0003 |
Yield |
00bd00025807 |
If cycle counter > 600 (10.0 secs) goto 07 |
000114 |
Go to first 14 |
000207 |
Label 07 |
000113 |
Go to first 13 |
0005fd0000 |
Assign function 0000 - Idle to $self and advance frame |
0004 |
End of function |
There are no comments yet for this function.