Script 1:
Code: Select all
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Elevators"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" "Made by"
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" "Klownterfit"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm6"
setcvar "g_gametypestring" "Elevators"
thread dotheelev1
thread dotheelev2
thread dotheelev3
thread dotheelev4
thread dotheelev5
thread dotheelev6
thread dotheelev7
// 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/mohdm6.scr
exec global/ambient.scr mohdm6
level waittill spawn
level.crate1 = spawn script_model
level.crate1 model "static/dresser.tik"
level.crate1.origin = ( 126.41 -91.43 -139.30 )
level.crate1.angles = ( 0 -178.98 0 )
level.crate2 = spawn script_model
level.crate2 model "static/dresser.tik"
level.crate2.origin = ( -784.88 270.32 -126.24 )
level.crate2.angles = ( 0 -178.98 0 )
level.crate3 = spawn script_model
level.crate3 model "static/dresser.tik"
level.crate3.origin = ( -409.55 -227.96 -124.95 )
level.crate3.angles = ( 0 85.96 0 )
level.crate4 = spawn script_model
level.crate4 model "static/dresser.tik"
level.crate4.origin = ( 899.30 -51.85 -151.88 )
level.crate4.angles = ( 0 91.24 0 )
level.crate5 = spawn script_model
level.crate5 model "static/dresser.tik"
level.crate5.origin = ( 841.77 495.53 -141.74 )
level.crate5.angles = ( 0 -87.28 0 )
level.crate6 = spawn script_model
level.crate6 model "static/dresser.tik"
level.crate6.origin = ( 1200.65 481.07 304.13 )
level.crate6.angles = ( 0 179.74 0 )
level.crate7 = spawn script_model
level.crate7 model "static/dresser.tik"
level.crate7.origin = ( -872.35 510.31 256.13 )
level.crate7.angles = ( 0 88.95 0 )
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
dotheelev1:
while (1)
{
wait 5
level.crate1 moveUp 320
level.crate1 waitmove
wait 5
level.crate1 moveDown 320
level.crate1 waitmove
}
end
dotheelev2:
while(1)
{
wait 5
level.crate2 moveUp 620
level.crate2 waitmove
wait 5
level.crate2 moveDown 620
level.crate2 waitmove
}
end
dotheelev3:
while(1)
{
wait 5
level.crate3 moveUp 410
level.crate3 waitmove
wait 5
level.crate3 moveDown 410
level.crate3 waitmove
}
end
dotheelev4:
while(1)
{
wait 5
level.crate4 moveUp 340
level.crate4 waitmove
wait 5
level.crate4 moveDown 340
level.crate4 waitmove
}
end
dotheelev5:
while(1)
{
wait 5
level.crate5 moveUp 650
level.crate5 waitmove
wait 5
level.crate5 moveDown 650
level.crate5 waitmove
}
end
dotheelev6:
while(1)
{
wait 5
level.crate6 moveUp 350
level.crate6 waitmove
wait 5
level.crate6 moveDown 350
level.crate6 waitmove
}
end
dotheelev7:
while(1)
{
wait 5
level.crate7 moveUp 190
level.crate7 waitmove
wait 5
level.crate7 moveDown 190
level.crate7 waitmove
}
Code: Select all
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Jungle Divas"
setcvar "g_obj_alliedtext2" "By Kemblin"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Get it @"
setcvar "g_obj_axistext2" "www.kemblin.be.tt"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm6"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
setcvar "g_gametype" "2"
setcvar "g_gametypestring" "Jungle-Divas"
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.script = maps/dm/mohdm6.scr
exec global/ambient.scr mohdm6
//BUSHES
local.fix1 = spawn script_model
local.fix1 model "static/bush_regularbush.tik"
local.fix1.origin = ( -228 -82 -161 )
local.fix1.angles = ( 0 56 0 )
local.fix1.scale = 4.9
local.fix1 notsolid
wait .1
local.fix2 = spawn script_model
local.fix2 model "static/bush_regularbush.tik"
local.fix2.origin = ( -294 65 -157 )
local.fix2.angles = ( -1 13 0 )
local.fix2.scale = 5.1
local.fix2 notsolid
wait .1
local.fix3 = spawn script_model
local.fix3 model "static/bush_regularbush.tik"
local.fix3.origin = ( -162 115 -160 )
local.fix3.angles = ( 0 151 0 )
local.fix3.scale = 5
local.fix3 notsolid
wait .1
local.fix4 = spawn script_model
local.fix4 model "static/bush_regularbush.tik"
local.fix4.origin = ( -30 119 -157 )
local.fix4.angles = ( 9 -26 0 )
local.fix4.scale = 4.8
local.fix4 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( 11 292 -157 )
local.fix5.angles = ( 0 -67 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -111 50 -165 )
local.fix5.angles = ( -2 -71 0 )
local.fix5.scale = 4.8
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -52 338 -160 )
local.fix5.angles = ( -1 -138 0 )
local.fix5.scale = 5.1
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -250 -192 -157 )
local.fix5.angles = ( -10 78 0 )
local.fix5.scale = 4.9
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -348 124 -157 )
local.fix5.angles = ( -1 170 0 )
local.fix5.scale = 5.2
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -283 340 -160 )
local.fix5.angles = ( -4 26 0 )
local.fix5.scale = 5.1
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( 117 -57 -157 )
local.fix5.angles = ( 12 -141 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -12 -217 -160 )
local.fix5.angles = ( 15 93 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -497 -247 -157 )
local.fix5.angles = ( 5 75 0 )
local.fix5.scale = 4.7
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -519 409 -160 )
local.fix5.angles = ( 8 3 0 )
local.fix5.scale = 4.9
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( 47 435 -161 )
local.fix5.angles = ( 3 0 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -506 -77 -157 )
local.fix5.angles = ( -3 120 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -785 21 -157 )
local.fix5.angles = ( -4 -5 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -613 88 -157 )
local.fix5.angles = ( -2 43 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -539 455 -160 )
local.fix5.angles = ( 0 -130 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -674 480 -183 )
local.fix5.angles = ( 4 91 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -323 327 -160 )
local.fix5.angles = ( 12 90 0 )
local.fix5.scale = 5.1
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -774 346 -157 )
local.fix5.angles = ( 10 -15 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -511 304 -158 )
local.fix5.angles = ( 28 -124 0 )
local.fix5.scale = 4.9
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -19 498 -129 )
local.fix5.angles = ( -5 -91 0 )
local.fix5.scale = 4.8
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -290 107 -109 )
local.fix5.angles = ( 90 -91 0 )
local.fix5.scale = 5.1
local.fix5 notsolid
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/bush_regularbush.tik"
local.fix5.origin = ( -532 226 -157 )
local.fix5.angles = ( -5 126 0 )
local.fix5.scale = 5
local.fix5 notsolid
wait .1
//TREES
local.fix5 = spawn script_model
local.fix5 model "static/tree_commontree.tik"
local.fix5.origin = ( -95 94 -161 )
local.fix5.angles = ( -1 4 0 )
local.fix5.scale = 1.2
local.fix5 setsize "-6 -6 -200" "6 6 200"
local.fix5 nodamage
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/tree_commontree.tik"
local.fix5.origin = ( -606 18 -157 )
local.fix5.angles = ( 3 -126 0 )
local.fix5.scale = 1
local.fix5 setsize "-6 -6 -200" "6 6 200"
local.fix5 nodamage
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/tree_commontree.tik"
local.fix5.origin = ( -348 46 -160 )
local.fix5.angles = ( -2 115 0 )
local.fix5.scale = 1.1
local.fix5 setsize "-6 -6 -200" "6 6 200"
local.fix5 nodamage
wait .1
local.fix5 = spawn script_model
local.fix5 model "static/tree_commontree.tik"
local.fix5.origin = ( 78 -107 -157 )
local.fix5.angles = ( 2 163 0 )
local.fix5.scale = 0.8
local.fix5 setsize "-6 -6 -200" "6 6 200"
local.fix5 nodamage
wait .1
level waittill spawn
thread secretrkick
thread sharkkick
thread warn
roofkick:
local.trig = spawn trigger_multiple
local.trig targetname roofkick
local.trig.origin = ( -778 -258 517 )
local.trig setsize ( -20 -20 0 ) ( 120 120 200 )
$roofkick waittill trigger
local.player = parm.other
iprintlnbold "Player trying to get on the roof detected"
wait 2
iprintlnbold "Player will be kicked in"
wait 1
iprintlnbold "5"
wait 1
iprintlnbold "4"
wait 1
iprintlnbold "3"
wait 1
iprintlnbold "2"
wait 1
iprintlnbold "1"
wait 1
local.player stufftext "quit"
wait .1
iprintlnbold "Player kicked"
wait 2
iprintlnbold "Crime does not pay!"
wait .1
$roofkick remove
wait .1
thread roofkick
secretrkick:
local.trig = spawn trigger_multiple
local.trig targetname secretrkick
local.trig.origin = ( -800 -90 37 )
local.trig setsize ( -20 -20 0 ) ( 20 20 80 )
$secretrkick waittill trigger
local.player = parm.other
iprintlnbold "Player trying to get in the secret room detected"
wait 2
iprintlnbold "Player will be kicked in"
wait 1
iprintlnbold "5"
wait 1
iprintlnbold "4"
wait 1
iprintlnbold "3"
wait 1
iprintlnbold "2"
wait 1
iprintlnbold "1"
wait 1
local.player stufftext "quit"
wait .1
iprintlnbold "Player kicked"
wait 2
iprintlnbold "Crime does not pay!"
wait .1
$secretrkick remove
wait .1
thread secretkick
warn:
local.trig = spawn trigger_multiple
local.trig targetname warn
local.trig.origin = ( 417 28 30 )
local.trig setsize ( -20 -20 0 ) ( 60 60 1 )
$warn waittill trigger
local.player = parm.other
local.player iprint "WARNING: Do not press use!"
wait .1
$sharkkick remove
wait 10
thread warn
sharkkick:
local.trig = spawn trigger_use
local.trig targetname sharkkick
local.trig.origin = ( 417 28 100 )
local.trig setsize ( -20 -20 0 ) ( 60 60 150 )
$sharkkick waittill trigger
local.player = parm.other
iprintlnbold "Player trying to landshark detected"
wait 2
iprintlnbold "Player will be kicked in"
wait 1
iprintlnbold "5"
wait 1
iprintlnbold "4"
wait 1
iprintlnbold "3"
wait 1
iprintlnbold "2"
wait 1
iprintlnbold "1"
wait 1
local.player stufftext "quit"
wait .1
iprintlnbold "Player kicked"
wait 2
iprintlnbold "Crime does not pay!"
wait .1
$sharkkick remove
wait .1
thread sharkkick
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
