Page 1 of 1

multiplayer obj map testing

Posted: Sat Dec 13, 2003 12:14 pm
by il sniper
i made MP map and now i've converted it into an obj-MP map. I followed the tutorials and made a bomb that axis have to defend. When i test the map, if i comment out the roundstart, after few second the game gives the victory to the allied. If i don't use the "//" with "level waittill roundstart" i enter in the game normally but i can't set the bomb?
is it a frequent error? what i have to do? this is my scr but it's quite the same of the tut, so i don't think that the error is here.


// obj_i
// ARCHITECTURE: janlu
// SCRIPTING: janlu
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "hello!"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "hello!"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "none"

level waittill prespawn

exec global/DMprecache.scr
level.script = maps/obj/obj_i.scr
exec global/ambient.scr obj_i
thread global/exploder.scr::main

level waittill spawn

level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 1
level.bomb_damage = 200
level.bomb_explosion_radius = 2048
level.dmrespawning = 0
level.dmroundlimit = 5
level.clockside = axis

//level waittill roundstart

$panel_bomb thread global/obj_dm.scr::bomb_thinker
thread allies_win_bomb
$panel_bomb thread axis_win_timer
end

allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end

axis_win_timer:
level waittill axiswin
end



thanks and sorry for my bad english

Posted: Sat Dec 13, 2003 12:44 pm
by bdbodger
I think you will see at the top of your screen "waiting for players"

I don't think you can set the bomb with only one player . Get a buddy to test it with you .

5 minutes

Posted: Sat Dec 13, 2003 5:48 pm
by tltrude
You have it set to end in 5 minutes if the bomb does not explode.

level.dmroundlimit = 5 //minutes

This should have quotes:

level.clockside = "axis"

Change this:

level waittill prespawn

exec global/DMprecache.scr
thread global/exploder.scr::main //move this line to here
level.script = maps/obj/obj_i.scr
exec global/ambient.scr m4l0

Posted: Tue Dec 16, 2003 3:43 pm
by nuggets
you also need
level.targets_destroyed = 0