Code: Select all
//Farmhouse Objective Scripting
main:
setcvar "g_obj_alliedtext1" "- Steal the documents"
setcvar "g_obj_alliedtext2" "- Transmit Documents"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "- Defend Documents"
setcvar "g_obj_axistext2" "- Defend Radio Transmitter"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
level waittill prespawn
exec global/DMprecache.scr
level.script = maps/obj/mp_farm_house_obj.scr
exec global/ambient.scr mohdm2
thread global/exploder.scr::main
level waittill spawn
// Set the parameters for round based match
level.dmrespawning = 0
level.dmroundlimit = 5
level.clockside = axis
level.defusing_team = "axis"
level.planting_team = "allies"
level.targets_to_destroy = 2
level.bomb_damage = 200
level.bomb_explosion_radius = 2048
// level waittill roundstart //Disabled for testing
thread document_check
// obj_tick.scr custom bomb script
$door_bomb thread global/obj_tick.scr::bomb_thinker
level waittill axiswin
end
// Document checks
document_check:
//set the compass here first for the docs
addobjective 1 1 "" $documents.origin
setcurrentobjective 1
while(1) {
$documents_trigger waittill trigger
if(parm.other.dmteam == allies) {
$documents hide
break
}
waitframe
}
thread radio_check
end
// radio checks
radio_check:
//now set the compass here for the radio
addobjective 1 1 "" $radio.origin
setcurrentobjective 1
while(1) {
$radio_trigger waittill trigger
if(parm.other.dmteam == allies) {
$radio hide // leaves a non flashing radio when used
break
}
waitframe
}
teamwin allies
endI have it working like this for Spearhead MP no probs, not sure about AA though..Compass... you can do this in SP, not sure you can do it in MP at all... but I've been in error before
Grassy
