]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/midi2cfg-ng.conf
0f9b4dab77f354eb0662cfb8d6b80cf0a4fa5261
[xonotic/xonotic.git] / misc / tools / midi2cfg-ng.conf
1 raw set places_tuba "tUba1 tUba2 tUba3 tUba4 tUba5 tUba6 tUba7 tUba8 tUba9 tUba10 tUba11 tUba12 tUba13 tUba14 tUba15 tUba16 tUba17 tUba18 tUba19 tUba20 tUba21 tUba22 tUba23 tUba24 tUba25 tUba26 tUba27 tUba28 tUba29 tUba30 tUba31 tUba32"
2 raw set places_percussion "tChr1 tChr2 tChr3 tChr4 tChr5 tChr6 tChr7 tChr8 tChr9 tChr10 tChr11 tChr12 tChr13 tChr14 tChr15 tChr16 tChr17 tChr18 tChr19 tChr20 tChr21 tChr22 tChr23 tChr24 tChr25 tChr26 tChr27 tChr38 tChr39 tChr30 tChr31 tChr32"
3
4 bot tuba
5         channels 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16
6         init
7                 cmd barrier
8                 cmd selectweapon 15
9                 cmd wait 0.5
10                 cmd console "g_balance_tuba_attenuation 0.1"
11                 cmd console "g_balance_tuba_damage 0"
12         note on -18
13                 time 0
14                 buttons left backward crouch attack1
15                 time 0.05
16         note off -18
17                 time 0
18                 buttons 
19                 time 0.05
20         note on -17
21                 time 0
22                 buttons backward crouch attack1
23                 time 0.05
24         note off -17
25                 time 0
26                 buttons 
27                 time 0.05
28         note on -16
29                 time 0
30                 buttons right backward crouch attack1
31                 time 0.05
32         note off -16
33                 time 0
34                 buttons 
35                 time 0.05
36         note on -13
37                 time 0
38                 buttons forward right crouch attack1
39                 time 0.05
40         note off -13
41                 time 0
42                 buttons 
43                 time 0.05
44         note on -12
45                 time 0
46                 buttons crouch attack1
47                 time 0.05
48         note off -12
49                 time 0
50                 buttons 
51                 time 0.05
52         note on -11
53                 time 0
54                 buttons left backward crouch attack2
55                 time 0.05
56         note off -11
57                 time 0
58                 buttons 
59                 time 0.05
60         note on -10
61                 time 0
62                 buttons right crouch attack1
63                 time 0.05
64         note off -10
65                 time 0
66                 buttons 
67                 time 0.05
68         note on -9
69                 time 0
70                 buttons forward left crouch attack1
71                 time 0.05
72         note off -9
73                 time 0
74                 buttons 
75                 time 0.05
76         note on -8
77                 time 0
78                 buttons forward crouch attack1
79                 time 0.05
80         note off -8
81                 time 0
82                 buttons 
83                 time 0.05
84         note on -7
85                 time 0
86                 buttons left crouch attack1
87                 time 0.05
88         note off -7
89                 time 0
90                 buttons 
91                 time 0.05
92         note on -6
93                 time 0
94                 buttons left backward attack1
95                 time 0.05
96         note off -6
97                 time 0
98                 buttons 
99                 time 0.05
100         note on -5
101                 time 0
102                 buttons backward attack1
103                 time 0.05
104         note off -5
105                 time 0
106                 buttons 
107                 time 0.05
108         note on -4
109                 time 0
110                 buttons backward right attack1
111                 time 0.05
112         note off -4
113                 time 0
114                 buttons 
115                 time 0.05
116         note on -3
117                 time 0
118                 buttons right crouch attack2
119                 time 0.05
120         note off -3
121                 time 0
122                 buttons 
123                 time 0.05
124         note on -2
125                 time 0
126                 buttons forward left crouch attack2
127                 time 0.05
128         note off -2
129                 time 0
130                 buttons 
131                 time 0.05
132         note on -1
133                 time 0
134                 buttons forward right attack1
135                 time 0.05
136         note off -1
137                 time 0
138                 buttons 
139                 time 0.05
140         note on 0
141                 time 0
142                 buttons attack1
143                 time 0.05
144         note off 0
145                 time 0
146                 buttons 
147                 time 0.05
148         note on 1
149                 time 0
150                 buttons left backward attack2
151                 time 0.05
152         note off 1
153                 time 0
154                 buttons 
155                 time 0.05
156         note on 2
157                 time 0
158                 buttons right attack1
159                 time 0.05
160         note off 2
161                 time 0
162                 buttons 
163                 time 0.05
164         note on 3
165                 time 0
166                 buttons forward left attack1
167                 time 0.05
168         note off 3
169                 time 0
170                 buttons 
171                 time 0.05
172         note on 4
173                 time 0
174                 buttons forward attack1
175                 time 0.05
176         note off 4
177                 time 0
178                 buttons 
179                 time 0.05
180         note on 5
181                 time 0
182                 buttons left attack1
183                 time 0.05
184         note off 5
185                 time 0
186                 buttons 
187                 time 0.05
188         note on 6
189                 time 0
190                 buttons forward right attack2
191                 time 0.05
192         note off 6
193                 time 0
194                 buttons 
195                 time 0.05
196         note on 7
197                 time 0
198                 buttons attack2
199                 time 0.05
200         note off 7
201                 time 0
202                 buttons 
203                 time 0.05
204         note on 8
205                 time 0
206                 buttons backward right jump attack1
207                 time 0.05
208         note off 8
209                 time 0
210                 buttons 
211                 time 0.05
212         note on 9
213                 time 0
214                 buttons right attack2
215                 time 0.05
216         note off 9
217                 time 0
218                 buttons 
219                 time 0.05
220         note on 10
221                 time 0
222                 buttons forward left attack2
223                 time 0.05
224         note off 10
225                 time 0
226                 buttons 
227                 time 0.05
228         note on 11
229                 time 0
230                 buttons forward attack2
231                 time 0.05
232         note off 11
233                 time 0
234                 buttons 
235                 time 0.05
236         note on 12
237                 time 0
238                 buttons left attack2
239                 time 0.05
240         note off 12
241                 time 0
242                 buttons 
243                 time 0.05
244         note on 13
245                 time 0
246                 buttons left backward jump attack2
247                 time 0.05
248         note off 13
249                 time 0
250                 buttons 
251                 time 0.05
252         note on 14
253                 time 0
254                 buttons right jump attack1
255                 time 0.05
256         note off 14
257                 time 0
258                 buttons 
259                 time 0.05
260         note on 15
261                 time 0
262                 buttons forward left jump attack1
263                 time 0.05
264         note off 15
265                 time 0
266                 buttons 
267                 time 0.05
268         note on 16
269                 time 0
270                 buttons forward jump attack1
271                 time 0.05
272         note off 16
273                 time 0
274                 buttons 
275                 time 0.05
276         note on 17
277                 time 0
278                 buttons left jump attack1
279                 time 0.05
280         note off 17
281                 time 0
282                 buttons 
283                 time 0.05
284         note on 18
285                 time 0
286                 buttons forward right jump attack2
287                 time 0.05
288         note off 18
289                 time 0
290                 buttons 
291                 time 0.05
292         note on 19
293                 time 0
294                 buttons jump attack2
295                 time 0.05
296         note off 19
297                 time 0
298                 buttons 
299                 time 0.05
300         note on 21
301                 time 0
302                 buttons right jump attack2
303                 time 0.05
304         note off 21
305                 time 0
306                 buttons 
307                 time 0.05
308         note on 22
309                 time 0
310                 buttons forward left jump attack2
311                 time 0.05
312         note off 22
313                 time 0
314                 buttons 
315                 time 0.05
316         note on 23
317                 time 0
318                 buttons forward jump attack2
319                 time 0.05
320         note off 23
321                 time 0
322                 buttons 
323                 time 0.05
324         note on 24
325                 time 0
326                 buttons left jump attack2
327                 time 0.05
328         note off 24
329                 time 0
330                 buttons 
331                 time 0.05
332
333 bot tuba_red
334         include tuba
335         transpose 0
336         init
337                 cmd cc "color 68"
338                 super
339
340 bot tuba_blue
341         include tuba
342         transpose 3
343         init
344                 cmd cc "color 221"
345                 super
346
347 # laser = lasershot NONE
348 bot laser
349         channels 10
350         init
351                 cmd aimtarget "tPercussion 1"
352                 cmd barrier
353                 cmd selectweapon 1
354                 cmd wait 0.5
355         percussion 38 # 038_Snare_1-0.wav
356                 time 0
357                 buttons attack1
358                 time 0.05
359                 buttons
360                 time 0.1
361                 busy 0.7
362         percussion 40 # 040_Snare_2-0.wav
363                 percussion 38
364
365 # shotgun = RELOADSOUND slap
366 bot shotgun
367         channels 10
368         init
369                 cmd aimtarget "tPercussion 1"
370                 cmd barrier
371                 cmd selectweapon 2
372                 cmd wait 0.5
373         percussion 74 # 074_Guiro_2_Long-0.wav
374                 time -0.4
375                 buttons attack2
376                 time -0.35
377                 buttons
378                 time 0
379                 busy 0.7
380
381 # uzi = bullet BAD
382 bot uzi
383         channels 10
384         init
385                 cmd aimtarget "tPercussion 1"
386                 cmd barrier
387                 cmd selectweapon 3
388                 cmd wait 0.5
389                 raw set g_balance_uzi_reload_ammo 0
390         percussion 27 # 027_High_Q-0.wav
391                 time 0
392                 buttons attack1
393                 time 0.05
394                 buttons
395                 time 0.1
396                 busy 0.2
397         percussion 31 # 031_Sticks-0.wav
398                 percussion 27
399         percussion 37 # 037_Stick_Rim-0.wav
400                 percussion 27
401         percussion 33 # 033_Metronome_Click-0.wav
402                 percussion 27
403         percussion 39 # 039_Clap_Hand-0.wav
404                 percussion 27
405         percussion 53 # 053_Cymbal_Ride_Bell-0.wav
406                 percussion 27
407         percussion 54 # 054_Tombourine-0.wav
408                 percussion 27
409
410 # grenadelauncher = RELOADSOUND RELOADSOUND
411
412 # electro = beam BAD
413 bot electro
414         channels 10
415         init
416                 time -2
417                 cmd aimtarget "tPercussion 1"
418                 cmd barrier
419                 cmd selectweapon 6
420                 cmd wait 0.5
421         percussion 49 # 049_Cymbal_Crash_1-0.wav
422                 time 0
423                 buttons attack1
424                 time 0.05
425                 buttons
426                 time 0.1
427                 busy 0.6
428         percussion 57 # 057_Cymbal_Crash_2-0.wav
429                 percussion 49
430
431 # crylink = big small
432 bot crylink
433         channels 10
434         init
435                 cmd aimtarget "tPercussion 1"
436                 cmd barrier
437                 cmd selectweapon 7
438                 cmd wait 0.5
439         percussion 34 # 034_Metronome_Bell-0.wav
440                 time 0
441                 buttons attack1
442                 time 0.05
443                 buttons
444                 time 0.1
445                 busy 0.7
446         percussion 45 # 045_Tom_Mid_2-0.wav
447                 time 0
448                 buttons attack2
449                 time 0.05
450                 buttons
451                 time 0.1
452                 busy 0.2
453         percussion 47 # 047_Tom_Mid_1-0.wav
454                 percussion 45
455         percussion 48 # 048_Tom_High_2-0.wav
456                 percussion 34
457         percussion 50 # 048_Tom_High_2-0.wav
458                 percussion 34
459         percussion 56 # 056_Cow_Bell-0.wav
460                 percussion 34
461
462 # nex is nex NONE
463 bot nex
464         channels 10
465         init
466                 cmd aimtarget "tPercussion 1"
467                 cmd barrier
468                 cmd selectweapon 8
469                 cmd wait 0.5
470         percussion 52 # 052_Cymbal_Chinese-0.wav
471                 time 0
472                 buttons attack1
473                 time 0.05
474                 buttons
475                 time 0.1
476                 busy 1.25
477
478 # minstanex is nex CLONE_OF_LASER
479 bot minstanex
480         channels 10
481         init
482                 cmd aimtarget "tPercussion 1"
483                 cmd barrier
484                 cmd selectweapon 12
485                 cmd wait 0.5
486         percussion 55 # 055_Cymbal_Splash-0.wav
487                 time 0
488                 buttons attack1
489                 time 0.05
490                 buttons
491                 time 0.1
492                 busy 1
493
494 # hagar is rocket BAD
495 bot hagar
496         channels 10
497         init
498                 cmd aimtarget "tPercussion 1"
499                 cmd barrier
500                 cmd selectweapon 9
501                 cmd wait 0.5
502         percussion 35 # 035_Kick_1-0.wav
503                 time 0
504                 buttons attack1
505                 time 0.05
506                 buttons
507                 time 0.1
508                 busy 0.15
509         percussion 60 # 060_Bongo_High-0.wav
510                 percussion 35
511         percussion 61 # 061_Bongo_Low-0.wav
512                 percussion 35
513         percussion 65 # 065_Timbale_High-0.wav
514                 percussion 35
515         percussion 66 # 066_Timbale_Low-0.wav
516                 percussion 35
517
518 # TODO hookbomb would be useful for #60
519
520 # RL is rocket NONE
521 bot rocket
522         channels 10
523         init
524                 cmd aimtarget "tPercussion 1"
525                 cmd barrier
526                 cmd selectweapon 10
527                 cmd wait 0.5
528         percussion 25 # 025_Snare_Roll-0.wav
529                 time 0
530                 buttons attack2
531                 time 0.05
532                 buttons
533                 time 0.1
534                 busy 1.1
535
536 # hook is hook bomb
537 bot hook
538         channels 10
539         init
540                 time -2
541                 cmd aimtarget "tPercussion 1"
542                 cmd barrier
543                 cmd selectweapon 13
544                 cmd wait 0.5
545         percussion 62 # 062_Conga_High_1_Mute-0.wav
546                 time 0
547                 buttons attack1
548                 time 0.05
549                 buttons
550                 time 0.1
551                 busy 0.1
552         percussion 63 # 063_Conga_High_2_Open-0.wav
553                 percussion 62
554
555 # seeker is rocket tag
556 bot seeker
557         channels 10
558         init
559                 time -2
560                 cmd aimtarget "tPercussion 1"
561                 cmd barrier
562                 cmd selectweapon 18
563                 cmd wait 0.5
564         percussion 51 # 051_Cymbal_Ride_1-0.wav
565                 time 0
566                 buttons attack1
567                 time 0.05
568                 buttons
569                 time 0.1
570                 busy 0.25
571         percussion 41 # 041_Tom_Low_2-0.wav
572                 time 0
573                 buttons attack2
574                 time 0.05
575                 buttons
576                 time 0.1
577                 busy 0.75
578         percussion 43 # 043_Tom_Low_1-0.wav
579                 percussion 41
580         percussion 59 # 059_Cymbal_Ride_2-0.wav
581                 percussion 51
582
583 # rifle is hard soft
584 bot rifle
585         channels 10
586         init
587                 time -2
588                 cmd aimtarget "tPercussion 1"
589                 cmd barrier
590                 cmd selectweapon 16
591                 cmd wait 0.5
592 #       percussion FIXME
593 #               time 0
594 #               buttons attack1
595 #               time 0.05
596 #               buttons
597 #               time 0.1
598 #               busy 1.2
599         percussion 58 # 058_Vibra-Slap-0.wav
600                 time 0
601                 buttons attack2
602                 time 0.05
603                 buttons
604                 time 0.1
605                 busy 0.9
606
607 bot jetpack
608         init
609                 cmd resetaim
610                 cmd barrier
611                 cmd console "g_jetpack_attenuation 0.5"
612         percussion 42 # 042_Hi-Hat_Closed-0.wav
613                 time 0
614                 buttons hook
615                 time 0.067
616                 buttons
617                 time 0.1
618         percussion 32 # 032_Square_Click-0.wav
619                 percussion 42
620         percussion 36 # 036_Kick_2-0.wav
621                 percussion 42
622         percussion 44 # 044_Hi-Hat_Pedal-0.wav
623                 percussion 42
624         percussion 46 # 046_Hi-Hat_Open-0.wav
625                 time 0
626                 buttons hook
627                 time 0.134
628                 buttons
629                 time 0.2
630         percussion 64 # 064_Conga_Low-0.wav
631                 percussion 42
632
633 bot common
634         done
635                 cmd resetaim
636                 cmd aim "270 0"
637                 cmd wait 1
638                 barrier
639                 buttons crouch
640                 cmd wait 3
641                 buttons
642                 cmd wait 1
643                 barrier
644                 buttons use
645                 cmd cc "kill"
646                 cmd wait 900
647
648
649 # instantiate our bots!
650
651 bot instance_tuba_red
652         include tuba_red
653         include common
654         count 32
655         init
656                 cmd movetotarget @places_tuba
657                 cmd barrier
658                 super
659
660 bot instance_tuba_blue
661         include tuba_blue
662         include common
663         count 32
664         init
665                 cmd movetotarget @places_tuba
666                 cmd barrier
667                 super
668
669 bot instance_laser
670         include laser
671         include common
672         count 12
673         init
674                 cmd movetotarget @places_percussion
675                 cmd barrier
676                 super
677
678 bot instance_shotgun
679         include shotgun
680         include common
681         count 2
682         init
683                 cmd movetotarget @places_percussion
684                 cmd barrier
685                 super
686
687 bot instance_uzi
688         include uzi
689         include common
690         count 4
691         init
692                 cmd movetotarget @places_percussion
693                 cmd barrier
694                 super
695
696 bot instance_electro
697         include electro
698         count 2
699         init
700                 cmd movetotarget @places_percussion
701                 cmd barrier
702                 super
703
704 bot instance_crylink
705         include crylink
706         include common
707         count 4
708         init
709                 cmd movetotarget @places_percussion
710                 cmd barrier
711                 super
712
713 bot instance_nex
714         include rocket
715         include common
716         count 2
717         init
718                 cmd movetotarget @places_percussion
719                 cmd barrier
720                 super
721
722 bot instance_minstanex
723         include rocket
724         include common
725         count 2
726         init
727                 cmd movetotarget @places_percussion
728                 cmd barrier
729                 super
730
731 bot instance_hagar
732         include hagar
733         include common
734         count 8
735         init
736                 cmd movetotarget @places_percussion
737                 cmd barrier
738                 super
739
740 bot instance_rocket
741         include rocket
742         include common
743         count 4
744         init
745                 cmd movetotarget @places_percussion
746                 cmd barrier
747                 super
748
749 bot instance_hook
750         include hook
751         count 4
752         init
753                 cmd movetotarget @places_percussion
754                 cmd barrier
755                 super
756
757 bot instance_seeker
758         include seeker
759         count 4
760         init
761                 cmd movetotarget @places_percussion
762                 cmd barrier
763                 super
764
765 bot instance_rifle
766         include rifle
767         include common
768         count 2
769         init
770                 cmd movetotarget @places_percussion
771                 cmd barrier
772                 super
773
774 bot instance_jetpack
775         include jetpack
776         include common
777         count 2
778         init
779                 cmd movetotarget @places_percussion
780                 cmd barrier
781                 super
782
783 # TODO jumping?