Server-Side Team Deathmatch Script

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
TriggerHappy
Private
Posts: 6
Joined: Sun May 21, 2006 9:09 pm

Server-Side Team Deathmatch Script

Post 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?
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Try setting the gametype earlier in the script, preferably before level waittill prespawn.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

change these

setcvar "g_fraglimit" "7"

setcvar "g_gametype" "3"

to

// setcvar "g_fraglimit" "7"

setcvar "g_gametype" "2"
Post Reply