]> icculus.org git repositories - divverent/nexuiz.git/blob - misc/tools/midi2cfg-ng.conf
use dynamic place assignment
[divverent/nexuiz.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"
2 raw set places_percussion "tChr11 tChr12 tChr21 tChr22 tChr23 tChr31 tChr32 tChr33 tChr41 tChr42 tChr43 tChr44"
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 16
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.05
14                 buttons left backward crouch
15                 time 0
16                 buttons attack1 left backward crouch
17                 time 0.05
18                 buttons
19                 time 0.1
20                 busy 0.25
21         note on -17
22                 time -0.05
23                 buttons backward crouch
24                 time 0
25                 buttons attack1 backward crouch
26                 time 0.05
27                 buttons
28                 time 0.1
29                 busy 0.25
30         note on -16
31                 time -0.05
32                 buttons backward right crouch
33                 time 0
34                 buttons attack1 backward right crouch
35                 time 0.05
36                 buttons
37                 time 0.1
38                 busy 0.25
39         note on -13
40                 time -0.05
41                 buttons forward right crouch
42                 time 0
43                 buttons attack1 forward right crouch
44                 time 0.05
45                 buttons
46                 time 0.1
47                 busy 0.25
48         note on -12
49                 time -0.05
50                 buttons crouch
51                 time 0
52                 buttons attack1 crouch
53                 time 0.05
54                 buttons
55                 time 0.1
56                 busy 0.25
57         note on -11
58                 time -0.05
59                 buttons left backward crouch
60                 time 0
61                 buttons attack2 left backward crouch
62                 time 0.05
63                 buttons
64                 time 0.1
65                 busy 0.25
66         note on -10
67                 time -0.05
68                 buttons right crouch
69                 time 0
70                 buttons attack1 right crouch
71                 time 0.05
72                 buttons
73                 time 0.1
74                 busy 0.25
75         note on -9
76                 time -0.05
77                 buttons forward left crouch
78                 time 0
79                 buttons attack1 forward left crouch
80                 time 0.05
81                 buttons
82                 time 0.1
83                 busy 0.25
84         note on -8
85                 time -0.05
86                 buttons forward crouch
87                 time 0
88                 buttons attack1 forward crouch
89                 time 0.05
90                 buttons
91                 time 0.1
92                 busy 0.25
93         note on -7
94                 time -0.05
95                 buttons left crouch
96                 time 0
97                 buttons attack1 left crouch
98                 time 0.05
99                 buttons
100                 time 0.1
101                 busy 0.25
102         note on -6
103                 time -0.05
104                 buttons left backward
105                 time 0
106                 buttons attack1 left backward
107                 time 0.05
108                 buttons
109                 time 0.1
110                 busy 0.25
111         note on -5
112                 time -0.05
113                 buttons backward
114                 time 0
115                 buttons attack1 backward
116                 time 0.05
117                 buttons
118                 time 0.1
119                 busy 0.25
120         note on -4
121                 time -0.05
122                 buttons backward right
123                 time 0
124                 buttons attack1 backward right
125                 time 0.05
126                 buttons
127                 time 0.1
128                 busy 0.25
129         note on -3
130                 time -0.05
131                 buttons right crouch
132                 time 0
133                 buttons attack2 right crouch
134                 time 0.05
135                 buttons
136                 time 0.1
137                 busy 0.25
138         note on -2
139                 time -0.05
140                 buttons forward left crouch
141                 time 0
142                 buttons attack2 forward left crouch
143                 time 0.05
144                 buttons
145                 time 0.1
146                 busy 0.25
147         note on -1
148                 time -0.05
149                 buttons forward right
150                 time 0
151                 buttons attack1 forward right
152                 time 0.05
153                 buttons
154                 time 0.1
155                 busy 0.25
156         note on 0
157                 time -0.05
158                 buttons
159                 time 0
160                 buttons attack1
161                 time 0.05
162                 buttons
163                 time 0.1
164                 busy 0.25
165         note on 1
166                 time -0.05
167                 buttons left backward
168                 time 0
169                 buttons attack2 left backward
170                 time 0.05
171                 buttons
172                 time 0.1
173                 busy 0.25
174         note on 2
175                 time -0.05
176                 buttons right
177                 time 0
178                 buttons attack1 right
179                 time 0.05
180                 buttons
181                 time 0.1
182                 busy 0.25
183         note on 3
184                 time -0.05
185                 buttons forward left
186                 time 0
187                 buttons attack1 forward left
188                 time 0.05
189                 buttons
190                 time 0.1
191                 busy 0.25
192         note on 4
193                 time -0.05
194                 buttons forward
195                 time 0
196                 buttons attack1 forward
197                 time 0.05
198                 buttons
199                 time 0.1
200                 busy 0.25
201         note on 5
202                 time -0.05
203                 buttons left
204                 time 0
205                 buttons attack1 left
206                 time 0.05
207                 buttons
208                 time 0.1
209                 busy 0.25
210         note on 6
211                 time -0.05
212                 buttons forward right
213                 time 0
214                 buttons attack2 forward right
215                 time 0.05
216                 buttons
217                 time 0.1
218                 busy 0.25
219         note on 7
220                 time -0.05
221                 buttons
222                 time 0
223                 buttons attack2
224                 time 0.05
225                 buttons
226                 time 0.1
227                 busy 0.25
228         note on 8
229                 time -0.05
230                 buttons backward right jump
231                 time 0
232                 buttons attack1 backward right jump
233                 time 0.05
234                 buttons
235                 time 0.1
236                 busy 0.25
237         note on 9
238                 time -0.05
239                 buttons right
240                 time 0
241                 buttons attack2 right
242                 time 0.05
243                 buttons
244                 time 0.1
245                 busy 0.25
246         note on 10
247                 time -0.05
248                 buttons forward left
249                 time 0
250                 buttons attack2 forward left
251                 time 0.05
252                 buttons
253                 time 0.1
254                 busy 0.25
255         note on 11
256                 time -0.05
257                 buttons forward
258                 time 0
259                 buttons attack2 forward
260                 time 0.05
261                 buttons
262                 time 0.1
263                 busy 0.25
264         note on 12
265                 time -0.05
266                 buttons left
267                 time 0
268                 buttons attack2 left
269                 time 0.05
270                 buttons
271                 time 0.1
272                 busy 0.25
273         note on 13
274                 time -0.05
275                 buttons left backward jump
276                 time 0
277                 buttons attack2 left backward jump
278                 time 0.05
279                 buttons
280                 time 0.1
281                 busy 0.25
282         note on 14
283                 time -0.05
284                 buttons right jump
285                 time 0
286                 buttons attack1 right jump
287                 time 0.05
288                 buttons
289                 time 0.1
290                 busy 0.25
291         note on 15
292                 time -0.05
293                 buttons forward left jump
294                 time 0
295                 buttons attack1 forward left jump
296                 time 0.05
297                 buttons
298                 time 0.1
299                 busy 0.25
300         note on 16
301                 time -0.05
302                 buttons forward jump
303                 time 0
304                 buttons attack1 forward jump
305                 time 0.05
306                 buttons
307                 time 0.1
308                 busy 0.25
309         note on 17
310                 time -0.05
311                 buttons left jump
312                 time 0
313                 buttons attack1 left jump
314                 time 0.05
315                 buttons
316                 time 0.1
317                 busy 0.25
318         note on 18
319                 time -0.05
320                 buttons forward right jump
321                 time 0
322                 buttons attack2 forward right jump
323                 time 0.05
324                 buttons
325                 time 0.1
326                 busy 0.25
327         note on 19
328                 time -0.05
329                 buttons jump
330                 time 0
331                 buttons attack2 jump
332                 time 0.05
333                 buttons
334                 time 0.1
335                 busy 0.25
336         note on 21
337                 time -0.05
338                 buttons right jump
339                 time 0
340                 buttons attack2 right jump
341                 time 0.05
342                 buttons
343                 time 0.1
344                 busy 0.25
345         note on 22
346                 time -0.05
347                 buttons forward left jump
348                 time 0
349                 buttons attack2 forward left jump
350                 time 0.05
351                 buttons
352                 time 0.1
353                 busy 0.25
354         note on 23
355                 time -0.05
356                 buttons forward jump
357                 time 0
358                 buttons attack2 forward jump
359                 time 0.05
360                 buttons
361                 time 0.1
362                 busy 0.25
363         note on 24
364                 time -0.05
365                 buttons left jump
366                 time 0
367                 buttons attack2 left jump
368                 time 0.05
369                 buttons
370                 time 0.1
371                 busy 0.25
372
373 bot tuba_red
374         include tuba
375         transpose 0
376         init
377                 cmd cc "color 68"
378                 super 
379
380 bot tuba_blue
381         include tuba
382         transpose 3
383         init
384                 cmd cc "color 221"
385                 super 
386
387 bot rocket
388         channels 10
389         init
390                 cmd aimtarget "tPercussion 1"
391                 cmd barrier
392                 cmd selectweapon 9
393                 cmd wait 0.5
394         percussion 25
395                 time 0
396                 buttons attack2
397                 time 0.05
398                 buttons
399                 time 0.1
400                 busy 1.0
401
402 bot uzi
403         channels 10
404         init
405                 cmd aimtarget "tPercussion 1"
406                 cmd barrier
407                 cmd selectweapon 3
408                 cmd wait 0.5
409         percussion 27
410                 time 0
411                 buttons attack2
412                 time 0.05
413                 buttons
414                 time 0.1
415                 busy 0.2
416         percussion 33
417                 percussion 27
418
419 bot crylink
420         channels 10
421         init
422                 cmd aimtarget "tPercussion 1"
423                 cmd barrier
424                 cmd selectweapon 6
425                 cmd wait 0.5
426         percussion 31
427                 time 0
428                 buttons attack2
429                 time 0.05
430                 buttons
431                 time 0.1
432                 busy 0.5
433         percussion 34
434                 percussion 31
435         percussion 42
436                 time 0
437                 buttons attack2
438                 time 0.05
439                 buttons
440                 time 0.1
441                 busy 0.4
442         percussion 44
443                 percussion 42
444         percussion 46
445                 percussion 42
446
447 bot jetpack
448         init
449                 cmd barrier
450                 cmd console "g_jetpack_attenuation 0.5"
451         percussion 42
452                 time 0
453                 buttons hook
454                 time 0.05
455                 buttons
456                 time 0.1
457         percussion 44
458                 percussion 42
459         percussion 46
460                 percussion 42
461         percussion 37
462                 percussion 42
463
464 bot jump
465         init
466                 cmd barrier
467         percussion 42
468                 time -0.5
469                 buttons jump
470                 time -0.45
471                 buttons
472                 time 0
473         percussion 44
474                 percussion 42
475         percussion 46
476                 percussion 42
477
478 bot hagar
479         channels 10
480         init
481                 cmd aimtarget "tPercussion 1"
482                 cmd barrier
483                 cmd selectweapon 8
484                 cmd wait 0.5
485         percussion 35
486                 time 0
487                 buttons attack1
488                 time 0.05
489                 buttons
490                 time 0.1
491                 busy 0.15
492         percussion 38
493                 percussion 35
494         percussion 40
495                 percussion 35
496         percussion 60
497                 percussion 35
498         percussion 65
499                 percussion 35
500
501 bot tag
502         channels 10
503         init
504                 cmd aimtarget "tPercussion 1"
505                 cmd barrier
506                 cmd selectweapon 14
507                 cmd wait 0.5
508                 cmd console "g_balance_seeker_tag_lifetime 0.1"
509         percussion 36
510                 time 0
511                 buttons attack1
512                 time 0.05
513                 buttons
514                 time 0.1
515                 busy 0.7
516         percussion 61
517                 percussion 36
518         percussion 66
519                 percussion 36
520
521 bot laser
522         channels 10
523         init
524                 cmd aimtarget "tPercussion 1"
525                 cmd barrier
526                 cmd selectweapon 1
527                 cmd wait 0.5
528         percussion 39
529                 time 0
530                 buttons attack1
531                 time 0.05
532                 buttons
533                 time 0.1
534                 busy 0.7
535
536 bot electro
537         channels 10
538         init
539                 time -2
540                 cmd aimtarget "tPercussion 1"
541                 cmd barrier
542                 cmd selectweapon 5
543                 cmd wait 0.5
544         percussion 49
545                 time 0
546                 buttons attack1
547                 time 0.05
548                 buttons
549                 time 0.1
550                 busy 0.6
551
552 bot hook
553         channels 10
554         init
555                 time -2
556                 cmd aimtarget "tPercussion 1"
557                 cmd barrier
558                 cmd selectweapon 12
559                 cmd wait 0.5
560         percussion 58
561                 time 0
562                 buttons attack1
563                 time 0.05
564                 buttons
565                 time 0.1
566                 busy 0
567
568 # instantiate our bots!
569
570 bot instance_tuba_red
571         include tuba_red
572         count 16
573         init
574                 cmd movetotarget $places_tuba
575                 cmd barrier
576                 super
577         done
578                 cmd movetotarget goaway
579
580 bot instance_tuba_blue
581         include tuba_blue
582         count 16
583         init
584                 cmd movetotarget $places_tuba
585                 cmd barrier
586                 super
587         done
588                 cmd movetotarget goaway
589
590 bot instance_rocket
591         include rocket
592         count 1
593         init
594                 cmd movetotarget $places_percussion
595                 cmd barrier
596                 super
597         done
598                 cmd movetotarget goaway
599
600 bot instance_uzi
601         include uzi
602         count 2
603         init
604                 cmd movetotarget $places_percussion
605                 cmd barrier
606                 super
607         done
608                 cmd movetotarget goaway
609
610 bot instance_crylink
611         include crylink
612         count 2
613         init
614                 cmd movetotarget $places_percussion
615                 cmd barrier
616                 super
617         done
618                 cmd movetotarget goaway
619
620 bot instance_jetpack
621         include jetpack
622         count 2
623         init
624                 cmd movetotarget $places_percussion
625                 cmd barrier
626                 super
627         done
628                 cmd movetotarget goaway
629
630 bot instance_jump
631         include jump
632         count 0
633         init
634                 cmd movetotarget $places_percussion
635                 cmd barrier
636                 super
637         done
638                 cmd movetotarget goaway
639
640 bot instance_hagar
641         include hagar
642         count 4
643         init
644                 cmd movetotarget $places_percussion
645                 cmd barrier
646                 super
647         done
648                 cmd movetotarget goaway
649
650 bot instance_tag
651         include tag
652         count 4
653         init
654                 cmd movetotarget $places_percussion
655                 cmd barrier
656                 super
657         done
658                 cmd movetotarget goaway
659
660 bot instance_laser
661         include laser
662         count 4
663         init
664                 cmd movetotarget $places_percussion
665                 cmd barrier
666                 super
667         done
668                 cmd movetotarget goaway
669
670 bot instance_electro
671         include electro
672         count 1
673         init
674                 cmd movetotarget $places_percussion
675                 cmd barrier
676                 super
677         done
678                 cmd movetotarget goaway
679
680 bot instance_hook
681         include hook
682         count 2
683         init
684                 cmd movetotarget $places_percussion
685                 cmd barrier
686                 super
687         done
688                 cmd movetotarget goaway