View | Details | Raw Unified | Return to bug 156536
Collapse All | Expand All

(-)files/patch-d_main.c (+25 lines)
Added Link Here
1
--- d_main.c.ori	Sun Mar 11 16:31:49 2007
2
+++ d_main.c	Sun Mar 11 16:33:46 2007
3
@@ -690,6 +690,7 @@
4
   setbuf(stdout, NULL);
5
   nomonsters = M_CheckParm("-nomonsters");
6
   respawnparm = M_CheckParm("-respawn");
7
+  respawnartifacts = M_CheckParm("-respawnartifacts");
8
   ravpic = M_CheckParm("-ravpic");
9
   noartiskip = M_CheckParm("-noartiskip");
10
   debugmode = M_CheckParm("-debug");
11
@@ -778,7 +779,13 @@
12
     {
13
       deathmatch = true;
14
     }
15
-  
16
+
17
+  if ( M_CheckParm("-respawnartifacts")!=0 )
18
+    {
19
+     printf("Parameter: -respawnartifacts\n");
20
+     respawnartifacts=1;
21
+    }
22
+
23
   p = M_CheckParm("-skill");
24
   if(p && p < myargc-1)
25
     {
(-)files/patch-doomdef.h (+19 lines)
Added Link Here
1
--- doomdef.h.ori	Sun Mar  4 15:43:44 2007
2
+++ doomdef.h	Sun Mar  4 15:57:04 2007
3
@@ -681,6 +681,7 @@
4
   short	ticdup  __PACKED__ ;			     /* 1 = no duplication, 2-5 = dup for slow nets */
5
   short	extratics  __PACKED__ ;		     /* 1 = send a backup tic in every packet */
6
   short	deathmatch  __PACKED__ ;		     /* 1 = deathmatch */
7
+  short	respawnartifacts __PACKED__ ;        /* respawn the artifacts? 1=yes */
8
   short	savegame  __PACKED__ ;		     /* -1 = new game, 0-5 = load savegame */
9
   short	episode  __PACKED__ ;		     /* 1-3 */
10
   short	map  __PACKED__ ;			     /* 1-9 */
11
@@ -753,6 +754,8 @@
12
 extern boolean cdrom;       /* true if cd-rom mode active ("-cdrom") */
13
 
14
 extern boolean deathmatch;  /* only if started as net death */
15
+
16
+extern boolean respawnartifacts; /* respawn the artifacts */
17
 
18
 extern boolean netgame;     /* only true if >1 player */
19
 
(-)files/patch-g_game.c (+56 lines)
Added Link Here
1
--- g_game.c.ori	Sun Mar  4 15:44:07 2007
2
+++ g_game.c	Sun Mar  4 15:50:29 2007
3
@@ -91,6 +91,7 @@
4
 boolean         viewactive;
5
 
6
 boolean         deathmatch;             /* only if started as net death */
7
+boolean		respawnartifacts;       /* respawning Artifacts */
8
 boolean         netgame;                /* only true if packets are broadcast */
9
 boolean         playeringame[MAXPLAYERS];
10
 player_t        players[MAXPLAYERS];
11
@@ -122,6 +123,7 @@
12
 long            key_right, key_left, key_up, key_down;
13
 long            key_strafeleft, key_straferight;
14
 long            key_fire, key_use, key_strafe, key_speed;
15
+long            key_health, key_tomeofpower, key_egg, key_firebomb;
16
 long            key_flyup, key_flydown, key_flycenter;
17
 long            key_lookup, key_lookdown, key_lookcenter;
18
 long            key_invleft, key_invright, key_useartifact;
19
@@ -361,13 +363,34 @@
20
 	    }
21
 	}
22
     }
23
-  if(gamekeydown[127] && !cmd->arti
24
+  if(gamekeydown[key_tomeofpower] && !cmd->arti
25
      && !players[consoleplayer].powers[pw_weaponlevel2])
26
     {
27
-      gamekeydown[127] = false;
28
+      gamekeydown[key_tomeofpower] = false;
29
       cmd->arti = arti_tomeofpower;
30
     }
31
-  
32
+  // Health by key:
33
+  if(gamekeydown[key_health] && !cmd->arti)
34
+    {
35
+      gamekeydown[key_health] = false;
36
+      cmd->arti = arti_health;
37
+    }
38
+
39
+  // Egg by key:
40
+  if(gamekeydown[key_egg] && !cmd->arti)
41
+    {
42
+      gamekeydown[key_egg] = false;
43
+      cmd->arti = arti_egg;
44
+    }
45
+
46
+  // Timebombe by key:
47
+  if(gamekeydown[key_firebomb] && !cmd->arti)
48
+    {
49
+      gamekeydown[key_firebomb] = false;
50
+      cmd->arti = arti_firebomb;
51
+    }
52
+
53
+
54
   /*
55
    * buttons
56
    */
(-)files/patch-m_misc.c (+21 lines)
Added Link Here
1
--- m_misc.c.ori	Sun Mar  4 15:50:54 2007
2
+++ m_misc.c	Sun Mar  4 15:52:40 2007
3
@@ -365,6 +365,7 @@
4
 extern	long	key_right, key_left, key_up, key_down;
5
 extern	long	key_strafeleft, key_straferight;
6
 extern	long	key_fire, key_use, key_strafe, key_speed;
7
+extern  long    key_health, key_tomeofpower, key_egg, key_firebomb;
8
 extern	long	key_flyup, key_flydown, key_flycenter;
9
 extern	long	key_lookup, key_lookdown, key_lookcenter;
10
 extern	long	key_invleft, key_invright, key_useartifact;
11
@@ -447,6 +448,10 @@
12
 
13
   { "key_fire", &key_fire, KEY_RCTRL, 1 }, 
14
   { "key_use", &key_use, ' ', 1 }, 
15
+  { "key_health", &key_health, 'a' },
16
+  { "key_tomeofpower", &key_tomeofpower, 127},
17
+  { "key_egg", &key_egg, 'q'},
18
+  { "key_firebomb", &key_firebomb, 'b'},
19
   { "key_strafe", &key_strafe, KEY_RALT, 1 }, 
20
   { "key_speed", &key_speed, KEY_RSHIFT, 1 },
21
   
(-)files/patch-p_inter.c (+15 lines)
Added Link Here
1
--- p_inter.c.ori	Sun Mar  4 15:38:51 2007
2
+++ p_inter.c	Sun Mar  4 15:41:50 2007
3
@@ -477,8 +477,10 @@
4
 void P_SetDormantArtifact(mobj_t *arti)
5
 {
6
   arti->flags &= ~MF_SPECIAL;
7
-  if(deathmatch && (arti->type != MT_ARTIINVULNERABILITY)
8
-     && (arti->type != MT_ARTIINVISIBILITY))
9
+  if(
10
+     (deathmatch && (arti->type != MT_ARTIINVULNERABILITY)
11
+      && (arti->type != MT_ARTIINVISIBILITY))
12
+     || (respawnartifacts) )
13
     {
14
       P_SetMobjState(arti, S_DORMANTARTI1);
15
     }
(-)files/patch-doc_Gamekeys.txt (+13 lines)
Added Link Here
1
--- doc/Gamekeys.txt.orig	1999-04-06 14:58:18.000000000 +0200
2
+++ doc/Gamekeys.txt	2011-04-21 01:30:38.000000000 +0200
3
@@ -9,6 +9,10 @@
4
 
5
 key_fire:            Control-key 
6
 key_use:             Space-key 
7
+key_health:          'a'
8
+key_tomeofpower:     Backspace-key
9
+key_egg:             'q'
10
+key_firebomb:        'b'
11
 key_strafe:          Alt/Meta-key 
12
 key_speed:           Shift-key
13
 
(-)files/patch-doc_README.opengl (+12 lines)
Added Link Here
1
--- doc/README.opengl.orig	2000-05-15 22:46:24.000000000 +0200
2
+++ doc/README.opengl	2011-04-21 01:36:33.000000000 +0200
3
@@ -71,6 +71,9 @@
4
 7. -mlook
5
 With this switch you enable free mouse look in the game. Normaly it makes sense to use this switch together with the -grabmouse switch. Mouselook is enabled by default, but it can be switched inside the game.
6
 
7
+8. -respawnartifacts
8
+With this switch you enable respawning of artifacts even in version 1.3 as it
9
+was in version 1.0 of heretic.
10
 
11
 -You can also edit the generated glheretic.cfg file in the $HOME/.heretic 
12
 directory after you have started the game once.

Return to bug 156536