multiplayer obj map testing

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
il sniper
Private
Posts: 5
Joined: Fri Nov 14, 2003 5:58 pm

multiplayer obj map testing

Post 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
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

5 minutes

Post 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
Tom Trude,

Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

you also need
level.targets_destroyed = 0
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply