TR_m7_CTSewerPatrol
TR_Mainland.esm
Variables
9
Local Variables
TR_Map
HOSewerGuard
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
alert
timer
Source
1Begin TR_m7_CTSewerPatrol
2
3short TR_Map
4short HOSewerGuard
5short control
6short controlQ
7short NoLore
8short T_Local_NPC
9short T_Local_NoLore
10short alert
11float timer
12
13if ( HOSewerGuard == -1 )
14 return
15endif
16
17if ( OnDeath == 1 )
18 set HOSewerGuard to -1
19endif
20
21if ( menumode == 1 )
22 return
23endif
24
25if ( TR_Map == 0 )
26 set TR_Map to 7
27endif
28
29set timer to ( timer + GetSecondsPassed )
30
31if ( timer >= 1 )
32 set alert to ( TR_m7_HOSewerAlert )
33 set timer to 0
34 if ( control == 0 )
35 if ( TR_m7_HOSewerAlert > 90 )
36 set control to 1
37 endif
38 if ( TR_m7_HOSewerAlert > 30 )
39 SetFight alert
40 endif
41 else
42 if ( TR_m7_HOSewerAlert < 96 )
43 set TR_m7_HOSewerAlert to ( TR_m7_HOSewerAlert + 4 )
44 SetFight alert
45 endif
46 if ( GetDistance, Player >= 512 )
47 set control to 0
48 endif
49 endif
50endif
51
52End