ok sorry to do this to ya but i scraped that over the last couple of hours so that i can tackle another problem. Maybe i should ask about the simple stuff first and go from there.
The problem i am having is that everything works fine in the first round in testing. After that round is over and the next one begins the documents are missing. To be exact the round starts off with the documents already taken by the attacking team while they are still at spawn. Just to check i went to the safe and they werent there but i can still set the bomb and end the round. Here is an example of the scr file i got going so far:
Code: Select all
//----------------------------------------------------------------
level waittill prespawn
exec global/DMprecache.scr
exec global/door_locked.scr::lock
exec global/ambient.scr Watten
thread global/exploder.scr::main
thread global/minefield.scr::minefield_setup
level.script = maps/obj/Watten.scr
//----------------------------------------------------------------
level waittill spawn
level.bomb_damage = 200
level.bomb_explosion_radius = 2048
level.defusing_team = "allies"
level.planting_team = "axis"
level.targets_to_destroy = 1
level.stealers = "axis"
level.docs_toget = 2
level.docs_taken = 0
level.dmrespawning = 0 // 1 is respawn 0 is norespawn.
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = allies // set to axis, allies, kills, or draw
//-----------------------------------------------------------------
level waittill roundstart
$church_bomb thread global/obj_dm.scr::bomb_thinker
$church_bomb thread allies_win_timer
thread axis_win_bomb
thread allies_win_timer
thread gotdocs1
thread gotdocs2
end
//-----------------------------------------------------------------
gotdocs1:
local.player = parm.other
if (local.player.dmteam == level.stealers)
{
$obj_docs1_trigger nottriggerable
$obj_docs1 remove
level.docs_taken = ( level.docs_taken + 1 )
iprintln_noloc "The Axis have taken the documents!"
thread AxisWin_Check
}
end
end
gotdocs2:
local.player = parm.other
if (local.player.dmteam == level.stealers)
{
$obj_docs2_trigger nottriggerable
$obj_docs2 remove
level.docs_taken = ( level.docs_taken + 1 )
iprintln_noloc "The Axis have taken the documents!"
thread AxisWin_Check
}
end
end
//-----------------------------------------------------------------
allies_win_timer:
level waittill allieswin
end
//-----------------------------------------------------------------
axis_win_bomb:
if(level.targets_destroyed == level.targets_to_destroy && level.docs_taken == 2)
{
teamwin axis
end
}
wait .1
goto axis_win_bomb
end
Oh and it may also be important to know that when i go in solo it will still allow me to steal the documents when it shouldnt. cant figure that out either since the thread isnt called for until round start (well its not supposed to anyways)
Most of what i know about scripting is from tuts and other maps i dig through so maybe the problem is that im not stikin to form, you know mixin and matchin ideas and maybe jsut maybe that aint such a good idea.
Anyhow i guess i better get everything else workin before i try to get the documents to float around.
THank YOu