PDA

View Full Version : Stripping objectives?


alex675
01-04-2003, 10:19 PM
I recently played a modded version of Berlin which was completely stripped of all objectives and was team death match. what changes do i need to make in the .scr file. Any help?

Hammer
01-04-2003, 10:51 PM
Nothing special about it, all new Spearhead maps can be played in DM mode. All you need to do is set g_gametype and start the map. For example:
[code:1]set g_gametype 2 // TDM
map obj/mp_berlin_tow[/code:1]

--[MC] Hammer

alex675
01-04-2003, 11:39 PM
i started the map in dm mode but the version i played when you hit tab button there was no objectives listed it was blank it had been removed

Hammer
01-04-2003, 11:48 PM
It's the standard stuff. The map scripts all contain a sections similar to this[code:1] //gametype 5 = Tug of War
if( level.gametype == 5 )
{
setcvar "g_obj_alliedtext1" "Protect Ammo Depot"
setcvar "g_obj_alliedtext2" "Call In Air Support"
setcvar "g_obj_alliedtext3" "Control Radar Dish"
setcvar "g_obj_alliedtext4" "Shut Down Flak88's"
setcvar "g_obj_alliedtext5" "Detonate Axis Ammo Depot"

setcvar "g_obj_axistext1" "Protect Ammo Depot"
setcvar "g_obj_axistext2" "Start Flak88 Barrage"
setcvar "g_obj_axistext3" "Control Radar Dish"
setcvar "g_obj_axistext4" "Call Off Allied Air Support"
setcvar "g_obj_axistext5" "Destroy Allied Ammo Depot"
}
else
{
//Not a TOW game remove the bombs
$gmc_bomb remove
$mg42_bomb remove
$bridge_bomb remove
$archway_bomb remove

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Berlin"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

}[/code:1]

For anything but TOW type, it removes all the objectives (bombs) and cleans-up the score lines (g_obj_*)

--[MC] Hammer