-
Notifications
You must be signed in to change notification settings - Fork 2
/
m_misc.c
2576 lines (2202 loc) · 62.6 KB
/
m_misc.c
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
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: m_misc.c,v 1.3 2000-08-12 21:29:28 fraggle Exp $
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// DESCRIPTION:
// Main loop menu stuff.
// Default Config File.
// PCX Screenshots.
//
//-----------------------------------------------------------------------------
static const char
rcsid[] = "$Id: m_misc.c,v 1.3 2000-08-12 21:29:28 fraggle Exp $";
#include "doomstat.h"
#include "m_argv.h"
#include "g_game.h"
#include "m_menu.h"
#include "am_map.h"
#include "w_wad.h"
#include "i_system.h"
#include "i_sound.h"
#include "i_video.h"
#include "v_video.h"
#include "hu_stuff.h"
#include "st_stuff.h"
#include "dstrings.h"
#include "m_misc.h"
#include "s_sound.h"
#include "sounds.h"
#include "d_main.h"
#include <unistd.h>
#include <errno.h>
//
// DEFAULTS
//
static int config_help; //jff 3/3/98
int usemouse;
int usejoystick;
int screenshot_pcx; //jff 3/30/98 // option to output screenshot as pcx or bmp
extern int mousebfire;
extern int mousebstrafe;
extern int mousebforward;
extern int joybfire;
extern int joybstrafe;
extern int joybuse;
extern int joybspeed;
extern int viewwidth;
extern int viewheight;
extern int mouseSensitivity_horiz,mouseSensitivity_vert; // killough
extern int realtic_clock_rate; // killough 4/13/98: adjustable timer
extern int leds_always_off; // killough 3/6/98
extern int tran_filter_pct; // killough 2/21/98
extern int screenblocks;
extern int showMessages;
extern char *chat_macros[], *wad_files[], *deh_files[]; // killough 10/98
//jff 3/3/98 added min, max, and help string to all entries
//jff 4/10/98 added isstr field to specify whether value is string or int
//
// killough 11/98: entirely restructured to allow options to be modified
// from wads, and to consolidate with menu code
default_t defaults[] = {
{ //jff 3/3/98
"config_help",
&config_help, NULL,
1, {0,1}, number, ss_none, wad_no,
"1 to show help strings about each variable in config file"
},
{ // jff 3/24/98 allow default skill setting
"default_skill",
&defaultskill, NULL,
3, {1,5}, number, ss_none, wad_no,
"selects default skill 1=TYTD 2=NTR 3=HMP 4=UV 5=NM"
},
// GB 2016 Obsolete - use asetup.exe to configure sound hardware
/*
{ // jff 1/18/98 allow Allegro drivers to be set, -1 = autodetect
"sound_card",
&default_snd_card, NULL,
-1, {-1,7}, number, ss_gen, wad_no,
"code used by Allegro to select sounds driver, -1 is autodetect"
},
{
"music_card",
&default_mus_card, NULL,
-1, {-1,9}, number, ss_gen, wad_no,
"code used by Allegro to select music driver, -1 is autodetect"
},
{ // jff 3/4/98 detect # voices
"detect_voices",
&detect_voices, NULL,
1, {0,1}, number, ss_gen, wad_no,
"Obsolete - use asetup.exe to configure sound hardware"
},
*/
{ // killough 11/98: hires
"hires", &hires, NULL,
0, {0,1}, number, ss_gen, wad_no,
"1 to enable 640x400 resolution for rendering scenes"
},
{ // killough 8/15/98: page flipping option
"page_flip",
&page_flip, NULL,
1, {0,1}, number, ss_gen, wad_no,
"1 to enable page flipping to avoid display tearing"
},
{
"use_vsync",
&use_vsync, NULL,
1, {0,1}, number, ss_gen, wad_no,
"1 to enable wait for vsync to avoid display tearing"
},
{
"realtic_clock_rate",
&realtic_clock_rate, NULL,
100, {10,1000}, number, ss_gen, wad_no,
"Percentage of normal speed (35 fps) realtic clock runs at"
},
{ // killough 10/98
"disk_icon",
&disk_icon, NULL,
1, {0,1}, number, ss_gen, wad_no,
"1 to enable flashing icon during disk IO"
},
{ // killough 2/21/98
"pitched_sounds",
&pitched_sounds, NULL,
0, {0,1}, number, ss_gen, wad_yes,
"1 to enable variable pitch in sound effects (from id's original code)"
},
{ // phares
"translucency",
&general_translucency, NULL,
1, {0,1}, number, ss_gen, wad_yes,
"1 to enable translucency for some things"
},
{ // killough 2/21/98
"tran_filter_pct",
&tran_filter_pct, NULL,
66, {0,100}, number, ss_gen, wad_yes,
"set percentage of foreground/background translucency mix"
},
{ // killough 2/8/98
"max_player_corpse",
&default_bodyquesize, NULL,
32, {UL,UL},number, ss_gen, wad_no,
"number of dead bodies in view supported (negative value = no limit)"
},
{ // killough 10/98
"flashing_hom",
&flashing_hom, NULL,
1, {0,1}, number, ss_gen, wad_yes,
"1 to enable flashing HOM indicator"
},
{ // GB 2014
"show_fps",
&show_fps, NULL,
0, {0,1}, number, ss_gen, wad_no,
"1 to show Framerate + Mode indicator"
},
{ // killough 3/31/98
"demo_insurance",
&default_demo_insurance, NULL,
2, {0,2},number, ss_none, wad_no,
"1=take special steps ensuring demo sync, 2=only during recordings"
},
{ // phares
"weapon_recoil",
&default_weapon_recoil, &weapon_recoil,
0, {0,1}, number, ss_weap, wad_yes,
"1 to enable recoil from weapon fire"
},
#ifdef BETA
{ // killough 7/19/98
"classic_bfg",
&default_classic_bfg, &classic_bfg,
0, {0,1}, number, ss_weap, wad_yes,
"1 to enable pre-beta BFG2704"
},
#endif
{ // killough 10/98
"doom_weapon_toggles",
&doom_weapon_toggles, NULL,
1, {0,1}, number, ss_weap, wad_no,
"1 to toggle between SG/SSG and Fist/Chainsaw"
},
{ // phares 2/25/98
"player_bobbing",
&default_player_bobbing, &player_bobbing,
1, {0,1}, number, ss_weap, wad_no,
"1 to enable player bobbing (view moving up/down slightly)"
},
{ // killough 3/1/98
"monsters_remember",
&default_monsters_remember, &monsters_remember,
1, {0,1}, number, ss_enem, wad_yes,
"1 to enable monsters remembering enemies after killing others"
},
{ // killough 7/19/98
"monster_infighting",
&default_monster_infighting, &monster_infighting,
1, {0,1}, number, ss_enem, wad_yes,
"1 to enable monsters fighting against each other when provoked"
},
{ // killough 9/8/98
"monster_backing",
&default_monster_backing, &monster_backing,
0, {0,1}, number, ss_enem, wad_yes,
"1 to enable monsters backing away from targets"
},
{ //killough 9/9/98:
"monster_avoid_hazards",
&default_monster_avoid_hazards, &monster_avoid_hazards,
1, {0,1}, number, ss_enem, wad_yes,
"1 to enable monsters to intelligently avoid hazards"
},
{
"monkeys",
&default_monkeys, &monkeys,
0, {0,1}, number, ss_enem, wad_yes,
"1 to enable monsters to move up/down steep stairs"
},
{ //killough 9/9/98:
"monster_friction",
&default_monster_friction, &monster_friction,
1, {0,1}, number, ss_enem, wad_yes,
"1 to enable monsters to be affected by friction"
},
{ //killough 9/9/98:
"help_friends",
&default_help_friends, &help_friends,
1, {0,1}, number, ss_enem, wad_yes,
"1 to enable monsters to help dying friends"
},
#ifdef DOGS
{ // killough 7/19/98
"player_helpers",
&default_dogs, &dogs,
0, {0,3}, number, ss_enem, wad_yes,
"number of single-player helpers"
},
{ // killough 8/8/98
"friend_distance",
&default_distfriend, &distfriend,
128, {0,999}, number, ss_enem, wad_yes,
"distance friends stay away"
},
{ // killough 10/98
"dog_jumping",
&default_dog_jumping, &dog_jumping,
1, {0,1}, number, ss_enem, wad_yes,
"1 to enable dogs to jump"
},
#endif
{ // no color changes on status bar
"sts_always_red",
&sts_always_red, NULL,
1, {0,1}, number, ss_stat, wad_yes,
"1 to disable use of color on status bar"
},
{
"sts_pct_always_gray",
&sts_pct_always_gray, NULL,
0, {0,1}, number, ss_stat, wad_yes,
"1 to make percent signs on status bar always gray"
},
{ // killough 2/28/98
"sts_traditional_keys",
&sts_traditional_keys, NULL,
1, {0,1}, number, ss_stat, wad_yes,
"1 to disable doubled card and skull key display on status bar"
},
{ // killough 4/17/98
"traditional_menu",
&traditional_menu, NULL,
1, {0,1}, number, ss_none, wad_yes,
"1 to use Doom's main menu ordering"
},
{ // killough 3/6/98
"leds_always_off",
&leds_always_off, NULL,
0, {0,1}, number, ss_gen, wad_no,
"1 to keep keyboard LEDs turned off"
},
{ //jff 4/3/98 allow unlimited sensitivity
"mouse_sensitivity_horiz",
&mouseSensitivity_horiz, NULL,
5, {0,UL}, number, ss_none, wad_no,
"adjust horizontal (x) mouse sensitivity"
},
{ //jff 4/3/98 allow unlimited sensitivity
"mouse_sensitivity_vert",
&mouseSensitivity_vert, NULL,
5, {0,UL}, number, ss_none, wad_no,
"adjust vertical (y) mouse sensitivity"
},
{
"sfx_volume",
&snd_SfxVolume, NULL,
8, {0,15}, number, ss_none, wad_no,
"adjust sound effects volume"
},
{
"music_volume",
&snd_MusicVolume, NULL,
8, {0,15}, number, ss_none, wad_no,
"adjust music volume"
},
{
"show_messages",
&showMessages, NULL,
1, {0,1}, number, ss_none, wad_no,
"1 to enable message display"
},
{ // killough 3/6/98: preserve autorun across games
"autorun",
&autorun, NULL,
0, {0,1}, number, ss_none, wad_no,
"1 to enable autorun"
},
{ // killough 2/21/98: default to 10
"screenblocks",
&screenblocks, NULL,
10, {3,11}, number, ss_none, wad_no,
"initial play screen size"
},
{ //jff 3/6/98 fix erroneous upper limit in range
"usegamma",
&usegamma, NULL,
0, {0,4}, number, ss_none, wad_no,
"screen brightness (gamma correction)"
},
{ // killough 10/98: preloaded files
"wadfile_1",
(int *) &wad_files[0], NULL,
(int) "", {0}, string, ss_none, wad_no,
"WAD file preloaded at program startup"
},
{
"wadfile_2",
(int *) &wad_files[1], NULL,
(int) "", {0}, string, ss_none, wad_no,
"WAD file preloaded at program startup"
},
{
"dehfile_1",
(int *) &deh_files[0], NULL,
(int) "", {0}, string, ss_none, wad_no,
"DEH/BEX file preloaded at program startup"
},
{
"dehfile_2",
(int *) &deh_files[1], NULL,
(int) "", {0}, string, ss_none, wad_no,
"DEH/BEX file preloaded at program startup"
},
// killough 10/98: compatibility vector:
{
"comp_zombie",
&default_comp[comp_zombie], &comp[comp_zombie],
0, {0,1}, number, ss_comp, wad_yes,
"Zombie players can exit levels"
},
{
"comp_infcheat",
&default_comp[comp_infcheat], &comp[comp_infcheat],
0, {0,1}, number, ss_comp, wad_yes,
"Powerup cheats are not infinite duration"
},
{
"comp_stairs",
&default_comp[comp_stairs], &comp[comp_stairs],
1, {0,1}, number, ss_comp, wad_yes,
"Build stairs exactly the same way that Doom does"
},
{
"comp_telefrag",
&default_comp[comp_telefrag], &comp[comp_telefrag],
0, {0,1}, number, ss_comp, wad_yes,
"Monsters can telefrag on MAP30"
},
{
"comp_dropoff",
&default_comp[comp_dropoff], &comp[comp_dropoff],
0, {0,1}, number, ss_comp, wad_yes,
"Some objects never move over tall ledges"
},
{
"comp_falloff",
&default_comp[comp_falloff], &comp[comp_falloff],
0, {0,1}, number, ss_comp, wad_yes,
"Objects don't fall off ledges under their own weight"
},
{
"comp_staylift",
&default_comp[comp_staylift], &comp[comp_staylift],
0, {0,1}, number, ss_comp, wad_yes,
"Monsters randomly walk off of moving lifts"
},
{
"comp_doorstuck",
&default_comp[comp_doorstuck], &comp[comp_doorstuck],
0, {0,1}, number, ss_comp, wad_yes,
"Monsters get stuck on doortracks"
},
{
"comp_pursuit",
&default_comp[comp_pursuit], &comp[comp_pursuit],
0, {0,1}, number, ss_comp, wad_yes,
"Monsters don't give up pursuit of targets"
},
{
"comp_vile",
&default_comp[comp_vile], &comp[comp_vile],
0, {0,1}, number, ss_comp, wad_yes,
"Arch-Vile resurrects invincible ghosts"
},
{
"comp_pain",
&default_comp[comp_pain], &comp[comp_pain],
0, {0,1}, number, ss_comp, wad_yes,
"Pain Elemental limited to 20 lost souls"
},
{
"comp_skull",
&default_comp[comp_skull], &comp[comp_skull],
0, {0,1}, number, ss_comp, wad_yes,
"Lost souls get stuck behind walls"
},
{
"comp_blazing",
&default_comp[comp_blazing], &comp[comp_blazing],
0, {0,1}, number, ss_comp, wad_yes,
"Blazing doors make double closing sounds"
},
{
"comp_doorlight",
&default_comp[comp_doorlight], &comp[comp_doorlight],
0, {0,1}, number, ss_comp, wad_yes,
"Tagged doors don't trigger special lighting"
},
{
"comp_god",
&default_comp[comp_god], &comp[comp_god],
0, {0,1}, number, ss_comp, wad_yes,
"God mode isn't absolute"
},
{
"comp_skymap",
&default_comp[comp_skymap], &comp[comp_skymap],
0, {0,1}, number, ss_comp, wad_yes,
"Sky is unaffected by invulnerability"
},
{
"comp_floors",
&default_comp[comp_floors], &comp[comp_floors],
0, {0,1}, number, ss_comp, wad_yes,
"Use exactly Doom's floor motion behavior"
},
{
"comp_model",
&default_comp[comp_model], &comp[comp_model],
0, {0,1}, number, ss_comp, wad_yes,
"Use exactly Doom's linedef trigger model"
},
{
"comp_zerotags",
&default_comp[comp_zerotags], &comp[comp_zerotags],
0, {0,1}, number, ss_comp, wad_yes,
"Linedef effects work with sector tag = 0"
},
// For key bindings, the values stored in the key_* variables // phares
// are the internal Doom Codes. The values stored in the default.cfg
// file are the keyboard codes. I_ScanCode2DoomCode converts from
// keyboard codes to Doom Codes. I_DoomCode2ScanCode converts from
// Doom Codes to keyboard codes, and is only used when writing back
// to default.cfg. For the printable keys (i.e. alphas, numbers)
// the Doom Code is the ascii code.
{
"key_right",
&key_right, NULL,
KEYD_RIGHTARROW, {0,255}, number, ss_keys, wad_no,
"key to turn right"
},
{
"key_left",
&key_left, NULL,
KEYD_LEFTARROW, {0,255}, number, ss_keys, wad_no,
"key to turn left"
},
{
"key_up",
&key_up, NULL,
KEYD_UPARROW, {0,255}, number, ss_keys, wad_no,
"key to move forward"
},
{
"key_down",
&key_down, NULL,
KEYD_DOWNARROW, {0,255}, number, ss_keys, wad_no,
"key to move backward"
},
{ // phares 3/7/98
"key_menu_right",
&key_menu_right, NULL,
KEYD_RIGHTARROW, {0,255}, number, ss_keys, wad_no,
"key to move right in a menu"
},
{
"key_menu_left",
&key_menu_left, NULL,
KEYD_LEFTARROW, {0,255}, number, ss_keys, wad_no,
"key to move left in a menu"
},
{
"key_menu_up",
&key_menu_up, NULL,
KEYD_UPARROW, {0,255}, number, ss_keys, wad_no,
"key to move up in a menu"
},
{
"key_menu_down",
&key_menu_down, NULL,
KEYD_DOWNARROW, {0,255}, number, ss_keys, wad_no,
"key to move down in a menu"
},
{
"key_menu_backspace",
&key_menu_backspace, NULL,
KEYD_BACKSPACE, {0,255}, number, ss_keys, wad_no,
"key to erase last character typed in a menu"
},
{
"key_menu_escape",
&key_menu_escape, NULL,
KEYD_ESCAPE, {0,255}, number, ss_keys, wad_no,
"key to leave a menu"
}, // phares 3/7/98
{
"key_menu_enter",
&key_menu_enter, NULL,
KEYD_ENTER, {0,255}, number, ss_keys, wad_no,
"key to select from menu or review past messages"
},
{
"key_strafeleft",
&key_strafeleft, NULL,
',', {0,255}, number, ss_keys, wad_no,
"key to strafe left (sideways left)"
},
{
"key_straferight",
&key_straferight, NULL,
'.', {0,255}, number, ss_keys, wad_no,
"key to strafe right (sideways right)"
},
{
"key_fire",
&key_fire, NULL,
KEYD_RCTRL, {0,255}, number, ss_keys, wad_no,
"key to fire current weapon"
},
{
"key_use",
&key_use, NULL,
' ', {0,255}, number, ss_keys, wad_no,
"key to open a door, use a switch"
},
{
"key_strafe",
&key_strafe, NULL,
KEYD_RALT, {0,255}, number, ss_keys, wad_no,
"key to use with arrows to strafe"
},
{
"key_speed",
&key_speed, NULL,
KEYD_RSHIFT, {0,255}, number, ss_keys, wad_no,
"key to run (move fast)"
},
{
"key_savegame",
&key_savegame, NULL,
KEYD_F2, {0,255}, number, ss_keys, wad_no,
"key to save current game"
},
{
"key_loadgame",
&key_loadgame, NULL,
KEYD_F3, {0,255}, number, ss_keys, wad_no,
"key to restore from saved games"
},
{
"key_soundvolume",
&key_soundvolume, NULL,
KEYD_F4, {0,255}, number, ss_keys, wad_no,
"key to bring up sound control panel"
},
{
"key_hud",
&key_hud, NULL,
KEYD_F5, {0,255}, number, ss_keys, wad_no,
"key to adjust heads up display mode"
},
{
"key_quicksave",
&key_quicksave, NULL,
KEYD_F6, {0,255}, number, ss_keys, wad_no,
"key to to save to last slot saved"
},
{
"key_endgame",
&key_endgame, NULL,
KEYD_F7, {0,255}, number, ss_keys, wad_no,
"key to end the game"
},
{
"key_messages",
&key_messages, NULL,
KEYD_F8, {0,255}, number, ss_keys, wad_no,
"key to toggle message enable"
},
{
"key_quickload",
&key_quickload, NULL,
KEYD_F9, {0,255}, number, ss_keys, wad_no,
"key to load from quick saved game"
},
{
"key_quit",
&key_quit, NULL,
KEYD_F10, {0,255}, number, ss_keys, wad_no,
"key to quit game to DOS"
},
{
"key_gamma",
&key_gamma, NULL,
KEYD_F11, {0,255}, number, ss_keys, wad_no,
"key to adjust screen brightness (gamma correction)"
},
{
"key_spy",
&key_spy, NULL,
KEYD_F12, {0,255}, number, ss_keys, wad_no,
"key to view from another player's vantage"
},
{
"key_pause",
&key_pause, NULL,
KEYD_PAUSE, {0,255}, number, ss_keys, wad_no,
"key to pause the game"
},
{
"key_autorun",
&key_autorun, NULL,
KEYD_CAPSLOCK, {0,255}, number, ss_keys, wad_no,
"key to toggle always run mode"
},
{
"key_chat",
&key_chat, NULL,
't', {0,255}, number, ss_keys, wad_no,
"key to enter a chat message"
},
{
"key_backspace",
&key_backspace, NULL,
KEYD_BACKSPACE, {0,255}, number, ss_keys, wad_no,
"key to erase last character typed"
},
{
"key_enter",
&key_enter, NULL,
KEYD_ENTER, {0,255}, number, ss_keys, wad_no,
"key to select from menu or review past messages"
},
{
"key_map",
&key_map, NULL,
KEYD_TAB, {0,255}, number, ss_keys, wad_no,
"key to toggle automap display"
},
{ // phares 3/7/98
"key_map_right",
&key_map_right, NULL,
KEYD_RIGHTARROW, {0,255}, number, ss_keys, wad_no,
"key to shift automap right"
},
{
"key_map_left",
&key_map_left, NULL,
KEYD_LEFTARROW, {0,255}, number, ss_keys, wad_no,
"key to shift automap left"
},
{
"key_map_up",
&key_map_up, NULL,
KEYD_UPARROW, {0,255}, number, ss_keys, wad_no,
"key to shift automap up"
},
{
"key_map_down",
&key_map_down, NULL,
KEYD_DOWNARROW, {0,255}, number, ss_keys, wad_no,
"key to shift automap down"
},
{
"key_map_zoomin",
&key_map_zoomin, NULL,
'=', {0,255}, number, ss_keys, wad_no,
"key to enlarge automap"
},
{
"key_map_zoomout",
&key_map_zoomout, NULL,
'-', {0,255}, number, ss_keys, wad_no,
"key to reduce automap"
},
{
"key_map_gobig",
&key_map_gobig, NULL,
'0', {0,255}, number, ss_keys, wad_no,
"key to get max zoom for automap"
},
{
"key_map_follow",
&key_map_follow, NULL,
'f', {0,255}, number, ss_keys, wad_no,
"key to toggle scrolling/moving with automap"
},
{
"key_map_mark",
&key_map_mark, NULL,
'm', {0,255}, number, ss_keys, wad_no,
"key to drop a marker on automap"
},
{
"key_map_clear",
&key_map_clear, NULL,
'c', {0,255}, number, ss_keys, wad_no,
"key to clear all markers on automap"
},
{
"key_map_grid",
&key_map_grid, NULL,
'g', {0,255}, number, ss_keys, wad_no,
"key to toggle grid display over automap"
},
{
"key_reverse",
&key_reverse, NULL,
'/', {0,255}, number, ss_keys, wad_no,
"key to spin 180 instantly"
},
{
"key_zoomin",
&key_zoomin, NULL,
'=', {0,255}, number, ss_keys, wad_no,
"key to enlarge display"
},
{
"key_zoomout",
&key_zoomout, NULL,
'-', {0,255}, number, ss_keys, wad_no,
"key to reduce display"
},
{
"key_chatplayer1",
&destination_keys[0], NULL,
'g', {0,255}, number, ss_keys, wad_no,
"key to chat with player 1"
},
{ // killough 11/98: fix 'i'/'b' reversal
"key_chatplayer2",
&destination_keys[1], NULL,
'i', {0,255}, number, ss_keys, wad_no,
"key to chat with player 2"
},
{ // killough 11/98: fix 'i'/'b' reversal
"key_chatplayer3",
&destination_keys[2], NULL,
'b', {0,255}, number, ss_keys, wad_no,
"key to chat with player 3"
},
{
"key_chatplayer4",
&destination_keys[3], NULL,
'r', {0,255}, number, ss_keys, wad_no,
"key to chat with player 4"
},
{
"key_weapontoggle",
&key_weapontoggle, NULL,
'0', {0,255}, number, ss_keys, wad_no,
"key to toggle between two most preferred weapons with ammo"
},
{
"key_weapon1",
&key_weapon1, NULL,
'1', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 1 (fist/chainsaw)"
},
{
"key_weapon2",
&key_weapon2, NULL,
'2', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 2 (pistol)"
},
{
"key_weapon3",
&key_weapon3, NULL,
'3', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 3 (supershotgun/shotgun)"
},
{
"key_weapon4",
&key_weapon4, NULL,
'4', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 4 (chaingun)"
},
{
"key_weapon5",
&key_weapon5, NULL,
'5', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 5 (rocket launcher)"
},
{
"key_weapon6",
&key_weapon6, NULL,
'6', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 6 (plasma rifle)"
},
{
"key_weapon7",
&key_weapon7, NULL,
'7', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 7 (bfg9000)"
},
{
"key_weapon8",
&key_weapon8, NULL,
'8', {0,255}, number, ss_keys, wad_no,
"key to switch to weapon 8 (chainsaw)"
},
{
"key_weapon9",
&key_weapon9, NULL,