// DESTROYED VILLAGE
// ARCHITECTURE: NED
// SCRIPTING: NED
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Destroyed Village"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "88"
setcvar "g_obj_axistext2" "www.mohchina.com"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm2"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.script = maps/dm/mohdm2.scr
exec global/ambient.scr mohdm2
level waittill spawn
//------------------------> (Cobras Random Explosions in the craters)
//coords and random times
thread random_explosions ( 5 634 -32 ) 10,80
thread random_explosions ( -3006 559 -52 ) 20,90
thread random_explosions ( -2535 1058 -59 ) 30,100
thread random_explosions ( -970 1087 -79 ) 40,110
thread random_explosions ( 47 -975 -83 ) 50,120
thread random_explosions ( -444 -2028 -83 ) 60,130
thread random_explosions ( -959 -2994 -83 ) 70,140
end
//-----------------> (Cobras Random Artillery bit)
random_explosions local.location local.wait1 local.wait2:
wait (randomfloat local.wait1 + local.wait2)
local.hurt = spawn script_origin
local.hurt.origin = local.location + ( 0 0 64 ) // raise it up 4 feet
local.explosion = spawn script_model
local.explosion model models/animate/fx_mortar_dirt.tik
local.explosion.origin = local.location + ( 0 0 -16 )
local.hurt playsound leadinmp
wait 1
local.explosion anim start // has it own sound
radiusdamage local.hurt 256 384
wait 4
local.explosion remove
local.hurt remove
wait 25
thread random_explosions local.location local.wait1 local.wait2
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end[/code]
//请以上内容全部替换mohdm2.scr内容