Fixed fire.sp cvars that were using timebomb stuff.
authorMichael McKoy <ferret99gt@gmail.com>
Sun Jan 27 16:32:47 2008 +0000 (2008-01-27)
changeset 1864152bfe3d1138
parent 1863 d5d37955013f
child 1865 d6741afbe803
Fixed fire.sp cvars that were using timebomb stuff.
plugins/basefuncommands.sp
plugins/basefuncommands/fire.sp
     1.1 --- a/plugins/basefuncommands.sp	Sun Jan 27 16:24:32 2008 +0000
     1.2 +++ b/plugins/basefuncommands.sp	Sun Jan 27 16:32:47 2008 +0000
     1.3 @@ -51,9 +51,9 @@
     1.4  // Set any of these to 0 and recompile to completely disable those commands
     1.5  // -------------------------------------------------------------------------------
     1.6  #define BEACON		1
     1.7 -#define TIMEBOMB	0
     1.8 +#define TIMEBOMB	1
     1.9  #define FIRE		1
    1.10 -#define ICE			1
    1.11 +#define ICE		1
    1.12  #define GRAVITY		1
    1.13  #define BLIND		1
    1.14  #define NOCLIP		1
    1.15 @@ -64,13 +64,6 @@
    1.16  #define CASH		1
    1.17  // -------------------------------------------------------------------------------
    1.18  
    1.19 -/**
    1.20 - * Fire requires timebomb
    1.21 - */
    1.22 -#if TIMEBOMB == 0 && FIRE == 1
    1.23 -#error "FIRE requires TIMEBOMB"
    1.24 -#endif
    1.25 -
    1.26  new Handle:hTopMenu = INVALID_HANDLE;
    1.27  
    1.28  // Sounds
     2.1 --- a/plugins/basefuncommands/fire.sp	Sun Jan 27 16:24:32 2008 +0000
     2.2 +++ b/plugins/basefuncommands/fire.sp	Sun Jan 27 16:32:47 2008 +0000
     2.3 @@ -190,7 +190,7 @@
     2.4  		
     2.5  		if (GetConVarInt(g_FireBombMode) > 0)
     2.6  		{
     2.7 -			new teamOnly = ((GetConVarInt(g_TimeBombMode) == 1) ? true : false);
     2.8 +			new teamOnly = ((GetConVarInt(g_FireBombMode) == 1) ? true : false);
     2.9  			new maxClients = GetMaxClients();
    2.10  			
    2.11  			for (new i = 1; i < maxClients; i++)
    2.12 @@ -216,7 +216,7 @@
    2.13  				}
    2.14  				
    2.15  				new Float:duration = GetConVarFloat(g_BurnDuration);
    2.16 -				duration *= (GetConVarFloat(g_TimeBombRadius) - distance) / GetConVarFloat(g_TimeBombRadius);
    2.17 +				duration *= (GetConVarFloat(g_FireBombRadius) - distance) / GetConVarFloat(g_FireBombRadius);
    2.18  
    2.19  				IgniteEntity(i, duration);
    2.20  			}