Spawn protection

Ask questions and share info about GunGame 5

Spawn protection

Postby BucKeT » Mon Jun 29, 2009 3:29 am

Im running a GG5 DM with mani admin and for some reason spawn protection is not working. We get killed as soon as we spawn if we are attacked. Below is a copy of my settings. Also I have mp_spawnprotectiontime 2 in the server.cfg. I tried eliminating this to see if there was a conflict but it makes no difference. Anyone have any ideas? Thanks
//=========================================================
// DEATHMATCH RESPAWN DELAY
//=========================================================
// This is a delay after a player dies before they will respawn.
//
// Default value: 2

gg_dm_respawn_delay 2

//=========================================================
// SPAWN PROTECTION
//=========================================================
// Set this to 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
// <seconds> = Enabled

gg_spawn_protect 2

//=========================================================
// SPAWN PROTECTION COLORS
//=========================================================
// Set player color while under spawn protection.
//
// Default values:
// Red: 255
// Green: 255
// Blue: 255
// Alpha: 150

gg_spawn_protect_red 255
//gg_spawn_protect_green 255
//gg_spawn_protect_blue 255
gg_spawn_protect_alpha 150

//=========================================================
// SPAWN PROTECTION "CANCEL-ON-FIRE"
//=========================================================
// If set to 1, when a player shoots when they are protected, the
// unprotection timer will stop and they will instantly become
// unprotected and able to level up.
//
// Note: Uses eventscripts_noisy, this may cause lag.
//
// Options: 0 = Disabled
// 1 = Enabled

gg_spawn_protect_cancelonfire 0

//=========================================================
// ALLOW LEVELLING WHILST PROTECTED
//=========================================================
// When enabled, players can level up whilst spawn protected.
//
// Options: 0 = Disabled
// 1 = Enabled

gg_spawn_protect_can_level_up 1
Wear short sleeves "Support the right to bear arms"
BucKeT

Private
Private
User avatar
 
Posts: 40
Joined: Thu Dec 04, 2008 1:44 am
Location: Florida
Steam Friends Name: lomm_razz

Re: Spawn protection

Postby XE_ManUp » Mon Jun 29, 2009 10:02 am

//gg_spawn_protect_green 255
//gg_spawn_protect_blue 255

You commented those out...and that cause errors. Change them to 0, but don't comment them out. You are basically removing GunGame variables from GunGame. ;)
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Re: Spawn protection

Postby BucKeT » Mon Jun 29, 2009 7:29 pm

XE_ManUp wrote:
//gg_spawn_protect_green 255
//gg_spawn_protect_blue 255

You commented those out...and that cause errors. Change them to 0, but don't comment them out. You are basically removing GunGame variables from GunGame. ;)
Thanks for the advice ManUp, I appreciate it. I will see if that works. Just so others know in case anyone else runs into this issue, what does "Set player color while under spawn protection" mean? Can the top default values be uncommented to change the color of the player as he spawns?

//=========================================================
// SPAWN PROTECTION COLORS
//=========================================================
// Set player color while under spawn protection.
//
// Default values:
// Red: 255
// Green: 255
// Blue: 255
// Alpha: 150

gg_spawn_protect_red 255
gg_spawn_protect_green 255
gg_spawn_protect_blue 255
gg_spawn_protect_alpha 150
Wear short sleeves "Support the right to bear arms"
BucKeT

Private
Private
User avatar
 
Posts: 40
Joined: Thu Dec 04, 2008 1:44 am
Location: Florida
Steam Friends Name: lomm_razz

Re: Spawn protection

Postby XE_ManUp » Mon Jun 29, 2009 8:41 pm

The alpha is the transparency of the player.

The RGB is found kind of like that with web colors:

http://www.web-source.net/216_color_chart.htm

When you find a color that you like, you choose the value.

//=========================================================
// SPAWN PROTECTION COLORS
//=========================================================
// Set player color while under spawn protection.
//
// Default values:
// Red: 255
// Green: 255
// Blue: 255
// Alpha: 150

gg_spawn_protect_red 255
gg_spawn_protect_green 153
gg_spawn_protect_blue 255
gg_spawn_protect_alpha 150


The above settings would turn a player pink!

No, you can not "uncomment" the default values section because they are there strictly as an example. Only these values should be altered:

gg_spawn_protect_red 255
gg_spawn_protect_green 153
gg_spawn_protect_blue 255
gg_spawn_protect_alpha 150
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Re: Spawn protection

Postby BucKeT » Mon Jun 29, 2009 9:17 pm

You are right on buddy. This did fix the issue. Thank you for the fast response. You guys are the best!!!
Wear short sleeves "Support the right to bear arms"
BucKeT

Private
Private
User avatar
 
Posts: 40
Joined: Thu Dec 04, 2008 1:44 am
Location: Florida
Steam Friends Name: lomm_razz



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 9 guests

cron