main: // set scoreboard messages setcvar "g_obj_alliedtext1" "Stalingrad" setcvar "g_obj_alliedtext3" "" setcvar "g_obj_axistext1" "Created by:" setcvar "g_obj_axistext2" "Searingwolfe" setcvar "g_obj_axistext3" "" setcvar "g_scoreboardpic" "mohdm6" setcvar "fraglimit" "0" setcvar "timelimit" "20" setcvar "cheats" "0" setcvar "thereisnomonkey" "0" setcvar "maxentities" "5000" //exec alienx/basebuild.scr::main 800 1000 250 1 1 0 0 if((getcvar("g_gametype") == "2")) { setcvar "g_obj_alliedtext2" "UBER Team Deathmatch v7.0" setcvar "g_gametypestring" "Team-Match UBER" setcvar "g_gametype" "2" exec alienx/hud_tdm.scr::main } else { setcvar "g_obj_alliedtext2" "UBER Free-For-All v7.0" setcvar "g_gametypestring" "Free-For-All UBER" setcvar "g_gametype" "1" exec alienx/hud_ffa.scr::main } level waittill prespawn removeclass TurretGun level.dmrespawning = 1 // allies spawn exec alienx/basebuild.scr::basebuild ( -1146 123 496 ) "statweapons/mg42_gun.tik" 1 1 0 0 90 .75 0 0 1 exec alienx/basebuild.scr::basebuild ( -1146 223 496 ) "statweapons/flak88turret.tik" 1 1 .35 0 90 .25 0 0 1 exec alienx/basebuild.scr::basebuild ( -1146 323 496 ) "static/bunkertable.tik" 1 1 1 0 90 1 0 1 1 exec alienx/basebuild.scr::basebuild ( -1146 423 496 ) "static/indycrate.tik" 1 0 1 0 90 .5 0 0 1 exec alienx/basebuild.scr::basebuild ( -1146 523 496 ) "static/sandbag_link_main.tik" 1 0 0 1 90 .5 0 0 1 exec alienx/basebuild.scr::basebuild ( -1146 623 496 ) "static/indycrate.tik" 1 1 0 1 90 .5 1 0 1 // axis spawn exec alienx/basebuild.scr::basebuild ( 1238 601 304 ) "statweapons/mg42_gun.tik" 1 1 0 0 90 .75 0 0 1 exec alienx/basebuild.scr::basebuild ( 1238 501 304 ) "statweapons/flak88turret.tik" 1 1 .35 0 90 .25 0 0 1 exec alienx/basebuild.scr::basebuild ( 1238 401 304 ) "static/bunkertable.tik" 1 1 1 0 90 1 0 1 1 exec alienx/basebuild.scr::basebuild ( 1238 301 304 ) "static/indycrate.tik" 1 0 1 0 90 .5 0 0 1 exec alienx/basebuild.scr::basebuild ( 1238 201 304 ) "static/sandbag_link_main.tik" 1 0 0 1 90 .5 0 0 1 exec alienx/basebuild.scr::basebuild ( 1238 101 304 ) "static/indycrate.tik" 1 1 0 1 90 .5 1 0 1 $world northyaw 270 setcvar "r_fastsky" "0" $world farplane 150000 $world farplane_color ( 0.6784 0.8353 0.9686 ) //*** precache dm stuff exec global/dmprecache.scr exec global/aliascache_triggersounds.scr //hud exec global/door_locked.scr::lock level.script = maps/dm/mohdm6.scr exec global/ambient.scr mohdm6 exec map_triggers/joint.scr ( 235 977 976 ) exec global/dog.scr ( 428 -156 32 ) ( 0 120 0 ) 15 20 // origin, angles, bulletsanger, angertime exec map_triggers/bomb.scr ( -976 818 720 ) ( -624 1199 721 ) ( -531 507 803 ) ( 464 434 976 ) ( 975 863 760 ) ( 704 558 736 ) ( 211 -259 565 ) ( -788 -146 783 ) ( 432 -12 369 ) ( 1435 53 763 ) exec map_triggers/lightbomb.scr ( 237 -125 224 ) ( 702 451 32 ) ( 702 451 272 ) ( 440 455 648 ) ( -58 452 272 ) ( -58 452 512 ) ( -742 420 256 ) ( -172 -202 32 ) ( -172 -202 272 ) ( -844 87 48 ) exec map_triggers/health.scr ( -770 -227 -132 ) ( 340 551 -151 ) ( 640 -743 14 ) ( -991 -119 48 ) ( -551 -613 32 ) ( -411 923 32 ) ( 359 1081 272 ) ( -408 1000 512 ) ( -566 1160 -151 ) ( -965 -453 256 ) exec map_triggers/snowball_ammo.scr ( 462 -1056 576 ) ( 1514 -1047 611 ) ( 1512 1118 768 ) ( -206 946 1069 ) ( -1210 1168 -14 ) ( -1358 157 720 ) ( -1404 920 779 ) ( -1404 -889 779 ) ( 226 931 736 ) ( -549 -896 544 ) exec map_triggers/rocket_ammo.scr ( 422 149 224 ) ( 985 612 320 ) ( 919 1079 272 ) ( -497 -858 272 ) ( -212 556 32 ) ( -1155 89 256 ) ( -1157 897 496 ) ( -727 -616 272 ) ( 152 -462 32 ) ( 233 148 87 ) exec map_triggers/grenade_ammo.scr ( -771 741 -151 ) ( 167 -229 -116 ) ( 381 -475 -151 ) ( -421 -683 32 ) ( -86 727 -151 ) ( -1187 488 48 ) ( 171 456 117 ) ( 732 1077 32 ) ( 708 122 224 ) ( -503 996 272 ) exec map_triggers/led_traps/led_trap_1.scr ( -1399 429 783 ) 1 exec map_triggers/led_traps/led_trap_2.scr ( 942 -1047 611 ) 1 // comment these out if there are too many spotlights. exec map_triggers/player_spotlight.scr ( -543 326 120 ) ( 1 1 1 ) s0 700 270 0 0 1 exec map_triggers/player_spotlight.scr ( 1381 -82 848 ) ( 1 0 .5 ) s1 700 0 0 0 1 exec map_triggers/player_spotlight.scr ( 311 177 404 ) ( 0 .5 1 ) s2 700 45 0 0 1 exec map_triggers/player_spotlight.scr ( 225 -224 263 ) ( 1 .5 0 ) s3 700 45 0 0 1 exec map_triggers/player_spotlight.scr ( 226 428 976 ) ( .5 0 1 ) s4 700 315 0 0 1 exec map_triggers/player_spotlight.scr ( -732 399 556 ) ( .5 .5 1 ) s5 700 225 0 0 1 exec map_triggers/player_spotlight.scr ( 224 -558 742 ) ( .5 1 .5 ) s6 700 90 0 0 1 exec map_triggers/player_spotlight.scr ( -778 943 777 ) ( 1 .5 .5 ) s7 700 225 0 0 1 exec map_triggers/player_spotlight.scr ( -753 -553 742 ) ( .5 1 0 ) s8 700 135 0 0 1 exec map_triggers/player_spotlight.scr ( 1381 391 848 ) ( 0 1 .5 ) s9 700 0 0 0 1 exec maps/UBER_mapextras/dm6_teleporters.scr::main exec maps/UBER_mapextras/dm6_cratesstuff.scr::main thread slidingobject static/cabinet_large.tik ( 1010 -100 304 ) ( 0 0 0 ) 18 0.8 60 level waittill spawn end //////////////////////////////////////////////////////////////////////// //*** -------------------------------------------- //*** "Extra Map Stuff" //*** -------------------------------------------- slidingobject local.model local.origin local.angles local.distance local.movetime local.fov: local.ent = spawn script_model local.ent model local.model local.ent.origin = local.origin local.ent.angles = local.angles local.ent solid local.wall1 = spawn trigger_use // or trigger_multiple, doesn't matter. these are only used for "istouching" object, not player triggering. local.wall1.origin = ( 1254 614 304 ) // wall with 4 black windows local.wall1 setsize ( -1 -972 -1 ) ( 1 1 100 ) local.wall2 = spawn trigger_use local.wall2.origin = ( 1254 614 304 ) // left side, near sloped wood beam local.wall2 setsize ( -250 -1 -1 ) ( 1 1 100 ) local.wall3 = spawn trigger_use local.wall3.origin = ( 1004 -358 304 ) // right side, next to metal stairs local.wall3 setsize ( -1 -1 -1 ) ( 250 1 100 ) local.wall4 = spawn trigger_use local.wall4.origin = ( 1004 -358 304 ) // parallel to long sandbags local.wall4 setsize ( -1 -1 -1 ) ( 1 972 100 ) if(local.fov == NIL) { local.fov = 45 } // for whenever a player "cansee" the entity within an FOV of local.fov units, default = 45. while(1) { local.player = parm.other if(local.player istouching local.ent && local.player cansee local.ent local.fov) { local.ent time local.movetime local.ent loopsound slidingobject local.sin = (waitthread global/math.scr::sine local.player.angles[1]) * local.distance local.cos = (waitthread global/math.scr::cosine local.player.angles[1]) * local.distance local.ent moveto (local.ent.origin + ( local.cos local.sin 0 )) local.ent waitmove if(local.ent istouching local.wall1) { local.ent.origin = local.ent.origin + ( -15 0 0 ); local.player tele (local.player.origin + ( -15 0 0 )) } if(local.ent istouching local.wall2) { local.ent.origin = local.ent.origin + ( 0 -15 0 ); local.player tele (local.player.origin + ( 0 -15 0 )) } if(local.ent istouching local.wall3) { local.ent.origin = local.ent.origin + ( 0 15 0 ); local.player tele (local.player.origin + ( 0 15 0 )) } if(local.ent istouching local.wall4) { local.ent.origin = local.ent.origin + ( 15 0 0 ); local.player tele (local.player.origin + ( 15 0 0 )) } } else { local.ent stoploopsound } // don't stop the sound if the player is still touching local.ent waitframe } end