GoldenEye: Source Forums

Debriefing => Questions, Help, & How To's => Topic started by: bop-owl on September 10, 2012, 04:08:51 pm

Title: force team spawning?
Post by: bop-owl on September 10, 2012, 04:08:51 pm
is there an easy way to force team spawning in game modes that don't use it?
like gun game? 
Title: Re: force team spawning?
Post by: TriDefiance on September 10, 2012, 04:22:03 pm
In what way?
Title: Re: force team spawning?
Post by: bop-owl on September 10, 2012, 04:42:35 pm
player_info_janus kind of way
instead of
player_info_deathmatch
kind of way

I can't seem to get teams to work in gungame at all.  The wiki says its toggle-able.  I must have something really messed up. 
Title: Re: force team spawning?
Post by: namajnaG on September 10, 2012, 05:03:44 pm
I ain't never seen teams in GunGame, The wiki must have an error in it.
Title: Re: force team spawning?
Post by: WNxEuphonic on September 10, 2012, 05:07:38 pm
GunGame was changed to not support teamplay in v4.2. The wiki is out of date. You can manually modify the gameplay's .py file to allow for teamplay by changing the line:

Code: [Select]
return GEGlobal.TEAMPLAY_NONE

in GetTeamPlay( self ) to

Code: [Select]
return GEGlobal.TEAMPLAY_TOGGLE

However, this is completely untested and may cause issues with the gameplay in addition to adding a (MOD) tag at the end of the gameplay. In modes that support teamplay, you can remove the line

Code: [Select]
GEMPGameRules.SetAllowTeamSpawns( False )

To enable teamspawns (for instance, Uplink is teamplay-only but has teamspawns disabled). Teamspawns is when one team spawns on one side of the map and one on the other side.
Title: Re: force team spawning?
Post by: bop-owl on September 16, 2012, 12:12:05 am
I couldn't ge_teamplay to work with yolt
I checked the yolt script for "GetTeamPlay"
so confused
it looks like yolt has if statements for team play


please forgiveme for being an idiot
I script a bit and admin servers and I map
but I'm no programmer
Title: Re: force team spawning?
Post by: killermonkey on September 16, 2012, 03:09:43 pm
@bop-owl

there is a patch to fix teamplay in Yolt and LTK: http://forums.geshl2.com/index.php/topic,7270.msg76154.html#msg76154

GetTeamPlay() is a simple accessor function for the base gamerules (on the C++ side) to determine if the current gamemode can support teamplay. It uses the return value of this function combined with ge_teamplay to determine when teamplay should be active.

YOLT supports both teamed and non-teamed gameplay so there are various points in the code that will do different actions depending on whether teamplay is active or not.