-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathowmapb_scan.owws
564 lines (519 loc) · 16.6 KB
/
owmapb_scan.owws
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
settings
{
lobby
{
Allow Players Who Are In Queue: Yes
Max Team 1 Players: 11
Max Team 2 Players: 1
}
modes
{
Assault
{
Capture Speed Modifier: 500%
enabled maps
{
Volskaya Industries
}
}
Control
{
Limit Valid Control Points: Third
enabled maps
{
}
}
Hybrid
{
Capture Speed Modifier: 10%
enabled maps
{
}
}
disabled Practice Range
{
Training Partner: Off
}
General
{
Game Mode Start: Immediately
Hero Limit: Off
Respawn Time Scalar: 0%
}
}
workshop
{
Use Control Point 2CP: 1
}
}
variables
{
global:
0: array_loop
1: bap_pos
2: signal
3: move_dir
4: step_resolution
5: baptiste_distance_z
6: hit_8
7: miss_9
8: loop_count
9: total
10: _hero
11: intro
12: hit_0_14
13: hit_1_15
14: hit_2_16
15: hit_3_17
16: hit_4_18
17: hit_5_19
18: hit_6_20
19: hit_7_21
20: miss_0_22
21: miss_1_23
22: miss_2_24
23: miss_3_25
24: miss_4_26
25: miss_5_27
26: miss_6_28
27: miss_7_29
28: cp_mode
player:
0: self_pos_lock
1: intro_mode
3: current_dir
4: time
5: move_dir
}
subroutines
{
0: init_global
1: control
2: distrib_array
3: hybrid
4: cp
}
rule("init")
{
event
{
Ongoing - Global;
}
actions
{
Disable Inspector Recording;
Disable Built-In Game Mode Completion;
Global.cp_mode = Workshop Setting Integer(Custom String("Main"), Custom String("Use Control Point (2CP)"), 0, 0, 1, 0);
disabled Global.baptiste_distance_z = Vector(0.541, 0.461, 0.613);
disabled Global.baptiste_distance_z = Vector(0.003, 1.359, 0.011);
Global.baptiste_distance_z = Vector(-0.453, 0.523, -0.219);
Global.step_resolution = 0.010;
Call Subroutine(init_global);
If(Current Game Mode == Game Mode(Control));
Call Subroutine(control);
Else If(Current Game Mode == Game Mode(Hybrid));
Call Subroutine(hybrid);
Else If(Current Game Mode == Game Mode(Assault));
Call Subroutine(cp);
End;
}
}
rule("sigma ult loop")
{
event
{
Ongoing - Global;
}
conditions
{
Is Game In Progress == True;
disabled Objective Index == 1;
Total Time Elapsed > 13;
}
actions
{
Wait(0.016, Ignore Condition);
Global.signal = True;
Wait(0.016, Ignore Condition);
Global.signal = False;
Global.total += 1;
Global.loop_count += 1;
If(Global.loop_count == 83);
disabled Call Subroutine(distrib_array);
Enable Inspector Recording;
Disable Inspector Recording;
Global.hit_8 = Empty Array;
Global.miss_9 = Empty Array;
Global.loop_count = 0;
disabled If(Global.array_loop >= 8);
disabled Global.array_loop = 0;
disabled Else;
disabled Global.array_loop += 1;
disabled End;
End;
Loop;
}
}
rule("bap bot init")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Dummy Bot(Event Player) == True;
disabled Team Of(Event Player) == Team 1;
}
actions
{
Event Player.self_pos_lock = Global.bap_pos + Slot Of(Event Player) * Vector((Random Integer(0, 1) * 2 - 1) * X Component Of(
Global.baptiste_distance_z), Y Component Of(Global.baptiste_distance_z), (Random Integer(0, 1) * 2 - 1) * Z Component Of(
Global.baptiste_distance_z));
Event Player.intro_mode = True;
disabled Event Player.move_dir = Global.move_dir[2 * Random Integer(0, 2)];
disabled Event Player.current_dir = Random Integer(0, 3);
"hori"
disabled Event Player.move_dir = Global.move_dir[0];
disabled Event Player.current_dir = 2;
"verts"
disabled Event Player.move_dir = Global.move_dir[Slot Of(Event Player) % 2 * 2 + 2];
disabled Event Player.current_dir = 0;
"vert 1"
Event Player.move_dir = Global.move_dir[4];
Event Player.current_dir = 0;
Disable Movement Collision With Players(Event Player);
Disable Movement Collision With Environment(Event Player, True);
Start Forcing Player Position(Event Player, Event Player.self_pos_lock, True);
disabled Create HUD Text(All Players(All Teams), String("{0} {1} {2}", Slot Of(Event Player), Event Player.current_dir, Position Of(
Event Player) * 10000), Null, Null, Left, 0, Color(White), Color(White), Color(White), Visible To and String, Visible Always);
disabled Create HUD Text(All Players(All Teams), String("{0} {1} {2}", Slot Of(Event Player), Event Player.time), Null, Null, Right, 0,
Color(White), Color(White), Color(White), Visible To and String, Visible Always);
disabled Start Scaling Player(Event Player, 0.100, False);
}
}
disabled rule("bap bot move search")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Dummy Bot(Event Player) == True;
Team Of(Event Player) == Team 1;
Event Player.intro_mode == True;
Is Game In Progress == True;
Global.signal == True;
}
actions
{
Modify Global Variable(intro, Append To Array, 100000 * Position Of(Event Player));
Event Player.self_pos_lock += Event Player.move_dir[Event Player.current_dir];
}
}
rule("bap bot move")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Dummy Bot(Event Player) == True;
disabled Team Of(Event Player) == Team 1;
Is Game In Progress == True;
Global.signal == True;
}
actions
{
If(Is On Objective(Event Player) == False);
Modify Global Variable(miss_9, Append To Array, 100000 * Position Of(Event Player));
Event Player.current_dir = (Event Player.current_dir + 1) % 4;
Event Player.self_pos_lock += Event Player.move_dir[Event Player.current_dir];
Event Player.intro_mode = False;
Else;
Modify Global Variable(hit_8, Append To Array, 100000 * Position Of(Event Player));
If(Event Player.intro_mode != True);
Event Player.current_dir = (Event Player.current_dir + 2) % 4;
Event Player.self_pos_lock += Event Player.move_dir[Event Player.current_dir];
Event Player.current_dir = (Event Player.current_dir + 1) % 4;
End;
Event Player.self_pos_lock += Event Player.move_dir[Event Player.current_dir];
End;
}
}
disabled rule("bap exit intro")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Dummy Bot(Event Player) == True;
Team Of(Event Player) == Team 1;
Event Player.intro_mode == True;
Is Game In Progress == True;
Is On Objective(Event Player) == False;
Total Time Elapsed > 10;
}
actions
{
Wait(0.016, Ignore Condition);
Event Player.intro_mode = False;
Event Player.current_dir = (Event Player.current_dir + 2) % 4;
}
}
rule("bap 0")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Is Dummy Bot(Event Player) == True;
disabled Team Of(Event Player) == Team 1;
Slot Of(Event Player) == 0;
}
actions
{
Create Beam Effect(All Players(All Teams), Grapple Beam, Event Player, Position Of(Event Player) + Vector(1, 0, 0), Color(White),
Visible To Position and Radius);
Create Beam Effect(All Players(All Teams), Grapple Beam, Event Player, Position Of(Event Player) + Vector(0, 0, 1), Color(White),
Visible To Position and Radius);
Create In-World Text(All Players(All Teams), Custom String("+Z"), Position Of(Event Player) + Vector(0, 0, 1.300), 2, Do Not Clip,
Visible To Position and String, Color(White), Visible Always);
Create In-World Text(All Players(All Teams), Custom String("+X"), Position Of(Event Player) + Vector(1.300, 0, 0), 2, Do Not Clip,
Visible To Position and String, Color(White), Visible Always);
}
}
rule("sub init global")
{
event
{
Subroutine;
init_global;
}
actions
{
Global.intro = Empty Array;
Global.hit_8 = Empty Array;
Global.miss_9 = Empty Array;
Global.signal = False;
Global._hero = Hero(Baptiste);
Global.move_dir = Array(Array(Vector(1 * Global.step_resolution, 0, 0), Vector(0, 0, -1 * Global.step_resolution), Vector(
-1 * Global.step_resolution, 0, 0), Vector(0, 0, 1 * Global.step_resolution)), Array(Vector(1 * Global.step_resolution, 0, 0),
Vector(0, 0, 1 * Global.step_resolution), Vector(-1 * Global.step_resolution, 0, 0), Vector(0, 0,
-1 * Global.step_resolution)), Array(Vector(1 * Global.step_resolution, 0, 0), Vector(0, -1 * Global.step_resolution, 0),
Vector(Global.step_resolution * -1, 0, 0), Vector(0, Global.step_resolution, 0)), Array(Vector(1 * Global.step_resolution, 0,
0), Vector(0, 1 * Global.step_resolution, 0), Vector(Global.step_resolution * -1, 0, 0), Vector(0, -1 * Global.step_resolution,
0)), Array(Vector(0, 1 * Global.step_resolution, 0), Vector(0, 0, 1 * Global.step_resolution), Vector(0,
-1 * Global.step_resolution, 0), Vector(0, 0, -1 * Global.step_resolution)), Array(Vector(0, 1 * Global.step_resolution, 0),
Vector(0, 0, -1 * Global.step_resolution), Vector(0, -1 * Global.step_resolution, 0), Vector(0, 0,
1 * Global.step_resolution)));
"lock y CCW +x -z -x +z horizontal"
disabled Global.move_dir = Array(Vector(1 * Global.step_resolution, 0, 0), Vector(0, 0, -1 * Global.step_resolution), Vector(
-1 * Global.step_resolution, 0, 0), Vector(0, 0, 1 * Global.step_resolution));
"lock y CW +x +z -x -z horizontal alt"
disabled Global.move_dir = Array(Vector(1 * Global.step_resolution, 0, 0), Vector(0, 0, 1 * Global.step_resolution), Vector(
-1 * Global.step_resolution, 0, 0), Vector(0, 0, -1 * Global.step_resolution));
"lock z CW +x -y -x +y update"
disabled Global.move_dir = Array(Vector(1 * Global.step_resolution, 0, 0), Vector(0, -1 * Global.step_resolution, 0), Vector(
Global.step_resolution * -1, 0, 0), Vector(0, Global.step_resolution, 0));
"lock z CCW +x +y -x -y update alt"
disabled Global.move_dir = Array(Vector(1 * Global.step_resolution, 0, 0), Vector(0, 1 * Global.step_resolution, 0), Vector(
Global.step_resolution * -1, 0, 0), Vector(0, -1 * Global.step_resolution, 0));
"lock x CCW +y +z -y -z"
disabled Global.move_dir = Array(Vector(0, 1 * Global.step_resolution, 0), Vector(0, 0, 1 * Global.step_resolution), Vector(0,
-1 * Global.step_resolution, 0), Vector(0, 0, -1 * Global.step_resolution));
"lock x CW +y -z -y +z"
disabled Global.move_dir = Array(Vector(0, 1 * Global.step_resolution, 0), Vector(0, 0, -1 * Global.step_resolution), Vector(0,
-1 * Global.step_resolution, 0), Vector(0, 0, 1 * Global.step_resolution));
Create HUD Text(All Players(All Teams), Global.loop_count, Null, Null, Left, 0, Color(White), Color(White), Color(White), Visible To and String,
Default Visibility);
Create HUD Text(All Players(All Teams), Global.total, Null, Null, Left, 0, Color(White), Color(White), Color(White), Visible To and String,
Default Visibility);
Create HUD Text(All Players(All Teams), Global.array_loop, Null, Null, Left, 0, Color(White), Color(White), Color(White), Visible To and String,
Default Visibility);
}
}
rule("sub koth")
{
event
{
Subroutine;
control;
}
actions
{
Wait(0.250, Ignore Condition);
Set Match Time(0);
Wait(0.250, Ignore Condition);
Set Match Time(0);
Wait(0.250, Ignore Condition);
Set Match Time(0);
disabled Global.bap_pos = Vector(-52.124, 20.762, -5.109);
Global.bap_pos = Objective Position(Objective Index);
Create Dummy Bot(Global._hero, Team 1, 0, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 1, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 2, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 3, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 4, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 5, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 6, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 7, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 8, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 9, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 10, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 11, Vector(0, 0, 0), Vector(0, 0, 0));
}
}
rule("sub distrib array")
{
event
{
Subroutine;
distrib_array;
}
actions
{
If(Global.array_loop == 0);
Global.hit_0_14 = Global.hit_8;
Global.miss_0_22 = Global.miss_9;
Else If(Global.array_loop == 1);
Global.hit_1_15 = Global.hit_8;
Global.miss_1_23 = Global.miss_9;
Else If(Global.array_loop == 2);
Global.hit_2_16 = Global.hit_8;
Global.miss_2_24 = Global.miss_9;
Else If(Global.array_loop == 3);
Global.hit_3_17 = Global.hit_8;
Global.miss_3_25 = Global.miss_9;
Else If(Global.array_loop == 4);
Global.hit_4_18 = Global.hit_8;
Global.miss_4_26 = Global.miss_9;
Else If(Global.array_loop == 5);
Global.hit_5_19 = Global.hit_8;
Global.miss_5_27 = Global.miss_9;
Else If(Global.array_loop == 6);
Global.hit_6_20 = Global.hit_8;
Global.miss_6_28 = Global.miss_9;
Else If(Global.array_loop == 7);
Global.hit_7_21 = Global.hit_8;
Global.miss_7_29 = Global.miss_9;
Else;
Enable Inspector Recording;
Disable Inspector Recording;
Global.hit_8 = Empty Array;
Global.miss_9 = Empty Array;
End;
}
}
rule("sub hybrid")
{
event
{
Subroutine;
hybrid;
}
actions
{
Wait(1, Ignore Condition);
Set Match Time(0);
Wait(1, Ignore Condition);
Set Match Time(0);
Wait(1, Ignore Condition);
Set Match Time(0);
disabled Global.bap_pos = Vector(3.335, 2, 68.113);
Global.bap_pos = Objective Position(Objective Index);
Create Dummy Bot(Global._hero, Team 1, 0, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 1, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 2, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 3, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 4, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 5, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 6, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 7, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 8, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 9, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 10, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 11, Vector(0, 0, 0), Vector(0, 0, 0));
}
}
rule("sub cp")
{
event
{
Subroutine;
cp;
}
actions
{
Wait(1, Ignore Condition);
Set Match Time(0);
Wait(1, Ignore Condition);
Set Match Time(0);
Wait(1, Ignore Condition);
Set Match Time(0);
disabled Global.bap_pos = Vector(3.335, 2, 68.113);
Global.bap_pos = Objective Position(Objective Index);
If(Global.cp_mode == 0);
Create Dummy Bot(Global._hero, Team 1, 0, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 1, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 2, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 3, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 4, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 5, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 6, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 7, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 8, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 9, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 10, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 11, Vector(0, 0, 0), Vector(0, 0, 0));
End;
Create Dummy Bot(Global._hero, Team 2, 0, Vector(0, 0, 0), Vector(0, 0, 0));
}
}
rule("2cp point B")
{
event
{
Ongoing - Global;
}
conditions
{
Current Game Mode == Game Mode(Assault);
Global.cp_mode == 1;
Global.cp_mode == Objective Index;
}
actions
{
Destroy All Dummy Bots;
Wait(1, Ignore Condition);
Global.bap_pos = Objective Position(Objective Index);
Create Dummy Bot(Global._hero, Team 1, 0, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 1, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 2, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 3, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 4, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 5, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 6, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 7, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 8, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 9, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 1, 10, Vector(0, 0, 0), Vector(0, 0, 0));
Create Dummy Bot(Global._hero, Team 2, 0, Vector(0, 0, 0), Vector(0, 0, 0));
}
}