-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTCTFSettings.frm
227 lines (222 loc) · 6.94 KB
/
TCTFSettings.frm
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
VERSION 5.00
Object = "{FE0065C0-1B7B-11CF-9D53-00AA003C9CB6}#1.0#0"; "COMCT232.OCX"
Begin VB.Form TCTFSettings
BorderStyle = 1 'Fixed Single
Caption = "CTF Settings"
ClientHeight = 4260
ClientLeft = 3165
ClientTop = 1410
ClientWidth = 4290
Icon = "TCTFSettings.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4260
ScaleWidth = 4290
Begin VB.CommandButton Command2
Caption = "Cancel"
Height = 375
Left = 2880
TabIndex = 16
Top = 3840
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "OK"
Default = -1 'True
Height = 375
Left = 1440
TabIndex = 15
Top = 3840
Width = 1335
End
Begin VB.CheckBox tp
Caption = "Custom Capture the Flag"
Height = 195
Index = 9
Left = 240
TabIndex = 14
ToolTipText = $"TCTFSettings.frx":08CA
Top = 3000
Width = 5655
End
Begin VB.CheckBox tp
Caption = "Capture the Flag"
Height = 195
Index = 8
Left = 240
TabIndex = 13
ToolTipText = "This enables Capture the Flag support."
Top = 2760
Width = 5655
End
Begin VB.CheckBox tp
Caption = "Drop Items"
Height = 195
Index = 7
Left = 240
TabIndex = 12
ToolTipText = $"TCTFSettings.frx":0986
Top = 2520
Width = 5655
End
Begin VB.CheckBox tp
Caption = "Static Teams"
Height = 195
Index = 6
Left = 240
TabIndex = 11
ToolTipText = "Players will not be allowed to change teams"
Top = 2280
Width = 6015
End
Begin VB.CheckBox tp
Caption = "Team Color Lock"
Height = 195
Index = 5
Left = 240
TabIndex = 10
ToolTipText = $"TCTFSettings.frx":0A33
Top = 2040
Width = 5655
End
Begin VB.CheckBox tp
Caption = "Death Penalty"
Height = 195
Index = 4
Left = 240
TabIndex = 9
ToolTipText = "Any player who kills his teammate will burst apart in a bloody mess."
Top = 1800
Width = 5655
End
Begin VB.CheckBox tp
Caption = "Frag Penalty"
Height = 195
Index = 3
Left = 240
TabIndex = 8
ToolTipText = $"TCTFSettings.frx":0B7B
Top = 1560
Width = 5655
End
Begin VB.CheckBox tp
Caption = "Damage to Attacker"
Height = 195
Index = 2
Left = 240
TabIndex = 7
ToolTipText = "A player who attacks his teammate will receive the same damage the teammate would have received, had he not been protected."
Top = 1320
Width = 5655
End
Begin VB.CheckBox tp
Caption = "Armor Protect"
Height = 195
Index = 1
Left = 240
TabIndex = 6
ToolTipText = "Players receive no armor damage from teammates' attacks."
Top = 1080
Width = 5655
End
Begin ComCtl2.UpDown UpDown1
Height = 285
Left = 1920
TabIndex = 4
Top = 3360
Width = 240
_ExtentX = 423
_ExtentY = 503
_Version = 327681
BuddyControl = "temp1"
BuddyDispid = 196612
OrigLeft = 2160
OrigTop = 4800
OrigRight = 2400
OrigBottom = 5055
Max = 100
SyncBuddy = -1 'True
BuddyProperty = 0
Enabled = -1 'True
End
Begin VB.TextBox temp1
Height = 285
Left = 1440
TabIndex = 2
Text = "100"
Top = 3360
Width = 495
End
Begin VB.CheckBox tp
Caption = "Health Protect"
Height = 195
Index = 0
Left = 240
TabIndex = 1
ToolTipText = "Players receive no health damage from teammates' attacks."
Top = 840
Width = 6015
End
Begin VB.Label Label3
Caption = "% of the CTF map entities."
Height = 255
Left = 2280
TabIndex = 5
Top = 3360
Width = 1935
End
Begin VB.Label Label2
Caption = "Level will contain "
Height = 255
Left = 120
TabIndex = 3
Top = 3360
Width = 1335
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "Threewave CTF"
BeginProperty Font
Name = "Verdana"
Size = 24
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 0
TabIndex = 0
Top = 0
Width = 4215
End
End
Attribute VB_Name = "TCTFSettings"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
t = 0
For o = 0 To 9
If tp(o).DataChanged Then DC = True
tp(o).DataChanged = False
t = t + tp(o).Value * (2 ^ o)
Next
If DC Then dummy2 = Main.servRconAns$("teamplay " + Str$(t))
If temp1.DataChanged Then
dummy2 = Main.servRconAns$("serverinfo temp1 " + temp1.text)
temp1.DataChanged = False
End If
dummy = MsgBox("Restart map " + Main.map.text + " ?", vbYesNo)
Me.Visible = False
If dummy = vbYes Then
dummy2 = Main.servRconAns$("map " + Main.map.text)
End If
Unload Me
End Sub
Private Sub Command2_Click()
Me.Visible = False
Unload Me
End Sub