Page 1 of 1

Server-Side Team Deathmatch Script

Posted: Tue May 23, 2006 6:03 pm
by TriggerHappy
hey guys, I've nearly completed my SP to MP conversion script and now all I need to do is declare the gametype for when it's hosted serverside. This is the script I have so far:

Code: Select all

	setcvar "g_gametypestring" "{=Thilly=} Team Deathmatch"
	
    setcvar "g_obj_alliedtext1" "Allies, storm the fort"
    setcvar "g_obj_alliedtext2" "and neutralise the enemy."
    setcvar "g_obj_alliedtext3" ""

    setcvar "g_obj_axistext1" "Axis, defend the fort"
    setcvar "g_obj_axistext2" "from the Allies."
    setcvar "g_obj_axistext3" "-Mod by Trigger-"

    setcvar "g_scoreboardpic" "m1l1"
    
    setcvar "g_fraglimit" "7"
    
    setcvar "g_gametype" "3"


    if(level.roundbased)
    {
    // set the parameters for round based match
    level.dmrespawning = 1 // 1 or 0
    level.dmroundlimit = 15 // round time limit in minutes
    level.clockside = draw // set to axis, allies, kills, or draw

    }
What I want is for the game to be set up as a team deathmatch, with the map changing when the timer hits zero however at the moment theres no respawn and the map will change when a team makes 7 kills. Can someone please tell me how this is done?

Posted: Tue May 23, 2006 7:35 pm
by Rookie One.pl
Try setting the gametype earlier in the script, preferably before level waittill prespawn.

Posted: Tue May 23, 2006 7:36 pm
by ViPER
change these

setcvar "g_fraglimit" "7"

setcvar "g_gametype" "3"

to

// setcvar "g_fraglimit" "7"

setcvar "g_gametype" "2"