Scripts.included.gg spawn protect

From GunGame5 Documentation

(Difference between revisions)
Jump to: navigation, search
(Created page with '== Description == '''gg_spawn_protect''' is used to protect players for a certain number of seconds when they spawn. *Players will be in 'godmode' when they spawn. *Their color...')
 
Line 1: Line 1:
-
== Description ==
+
{{Addons|
-
'''gg_spawn_protect''' is used to protect players for a certain number of seconds when they spawn.
+
 
 +
 
 +
name=gg_spawn_protect|
 +
 
 +
 
 +
description=is used to protect players for a certain number of seconds when they spawn.
*Players will be in 'godmode' when they spawn.
*Players will be in 'godmode' when they spawn.
Line 6: Line 11:
*Their color can be changed, as well, using cvars.
*Their color can be changed, as well, using cvars.
-
*This protection can be removed if the player fires their weapon (based on a cvar)
+
*This protection can be removed if the player fires their weapon (based on a cvar)|
 +
 
 +
 
 +
cfg_file=included_addon_configs/gg_spawn_protect|
-
== Variables ==
+
cfg_contents=<pre>// ============================================================================
-
'''gg_spawn_protect''' contains the following cvars that can be found in your server's <span style="color:red">../cfg/gungame51/included_addon_configs/gg_spawn_protect.cfg</span> file:<pre>// ============================================================================
+
// >> SPAWN PROTECTION
// >> SPAWN PROTECTION
// ============================================================================
// ============================================================================
Line 85: Line 92:
// Allow players to level up while spawn protected
// Allow players to level up while spawn protected
-
   gg_spawn_protect_can_level_up 0</pre>
+
   gg_spawn_protect_can_level_up 0</pre>}}

Current revision as of 23:00, 22 March 2011


Description

gg_spawn_protect is used to protect players for a certain number of seconds when they spawn.

  • Players will be in 'godmode' when they spawn.
  • Their color can be changed, as well, using cvars.
  • This protection can be removed if the player fires their weapon (based on a cvar)


Variables

gg_spawn_protect contains the following cvars that can be found in your server's ../cfg/gungame51/included_addon_configs/gg_spawn_protect.cfg file:
// ============================================================================
// >> SPAWN PROTECTION
// ============================================================================
// Description:
//    The number of seconds to allow spawn protection, in which they will be
//    immune to other players fire but cannot levelup if they kill a player.
// Options:
//    0 = (Disabled) Do not load gg_spawn_protect.
//    # = Time (in seconds) for players to be spawn protected.
// Default Value: 0

// Enables/Disables spawn protection.
   gg_spawn_protect 0


// ============================================================================
// >> SPAWN PROTECTION COLORS
// ============================================================================
// Description:
//    The player's color while under spawn protection.
// Notes:
//    * Colors are set via the RGB (red/green/blue) model. For more information 
//      on how to get the color you want, visit:
//         http://www.tayloredmktg.com/rgb/
//    * Alpha is the transparency of the player. The lower the number, the more
//      transparent the player becomes.
// Options:
//    0-255
// Default Values:
//    * Red: 255
//    * Green: 255
//    * Blue: 255
//    * Alpha: 150

// The red shade of the spawn protected player.
   gg_spawn_protect_red 255

// The green shade of the spawn protected player.
   gg_spawn_protect_green 255

// The blue shade of the spawn protected player.
   gg_spawn_protect_blue 255

// The alpha of the spawn protected player.
   gg_spawn_protect_alpha 150


// ============================================================================
// >> SPAWN PROTECTION "CANCEL-ON-FIRE"
// ============================================================================
// Description:
//    Cancels the spawn protection timer when the player fires their weapon and
//    allows the player to level up.
// Note:
//    * Uses "eventscripts_noisy", which "may" cause lag.
// Options:
//    0 = (Disabled) Do not load gg_spawn_protect_cancelonfire.
//    1 = (Enabled) Load gg_spawn_protect_cancelonfire.
// Default Value: 0

// Cancels spawn protection when the weapon is fired.
   gg_spawn_protect_cancelonfire 0


// ============================================================================
// >> ALLOW LEVELING WHILST PROTECTED
// ============================================================================
// Description:
//    Players can level up while spawn protected.
// Options:
//    0 = (Disabled) Do not allow players to level up while spawn protected.
//    1 = (Enabled) Allow players to level up while spawn protected.
// Default Value: 0

// Allow players to level up while spawn protected
   gg_spawn_protect_can_level_up 0
Personal tools