-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathctf.pqc
99 lines (96 loc) · 1.72 KB
/
ctf.pqc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
void () TeamFortress_CTF_FlagInfo =
{
local entity _l_11235;
_l_11235 = Finditem (1);
if ((_l_11235.goal_state == 1))
{
if ((self == _l_11235.owner))
{
sprint (self, 2, "You have the enemy flag. ");
}
else
{
sprint (self, 2, _l_11235.owner.netname);
sprint (self, 2, " has");
if ((self.team_no == 1))
{
sprint (self, 2, " your flag. ");
}
else
{
sprint (self, 2, " the enemy flag. ");
}
}
}
else
{
if ((_l_11235.origin != _l_11235.oldorigin))
{
if ((self.team_no == 1))
{
sprint (self, 2, "Your flag is lying about. ");
}
else
{
sprint (self, 2, "The enemy flag is lying about. ");
}
}
else
{
if ((self.team_no == 1))
{
sprint (self, 2, "Your flag is in your base. ");
}
else
{
sprint (self, 2, "The enemy flag is in their base. ");
}
}
}
_l_11235 = Finditem (2);
if ((_l_11235.goal_state == 1))
{
if ((self == _l_11235.owner))
{
sprint (self, 2, "You have the enemy flag.\n");
}
else
{
sprint (self, 2, _l_11235.owner.netname);
sprint (self, 2, " has");
if ((self.team_no == 2))
{
sprint (self, 2, " your flag.\n");
}
else
{
sprint (self, 2, " the enemy flag.\n");
}
}
}
else
{
if ((_l_11235.origin != _l_11235.oldorigin))
{
if ((self.team_no == 2))
{
sprint (self, 2, "Your flag is lying about.\n");
}
else
{
sprint (self, 2, "The enemy flag is lying about.\n");
}
}
else
{
if ((self.team_no == 2))
{
sprint (self, 2, "Your flag is in your base.\n");
}
else
{
sprint (self, 2, "The enemy flag is in their base.\n");
}
}
}
};