main()
{
maps\mp\_load::main();
setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");
game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");
thread lift1();
thread boot1();
thread gs1();
thread text1();
thread text2();
thread lift2();
spike = getentarray("groundspike1","targetname");
for(i=0;i<spike.size;i++)
spike[i] thread setdamagetrigger();
}
lift1()
{
lift1 = getent ("lift1", "targetname");
trig = getent ("lift1trigger", "targetname");
while(1)
{
trig waittill ("trigger");
lift1 movez (40,0.3);
lift1 waittill ("movedone");
wait 5;
lift1 movez (-40,0.3);
lift1 waittill ("movedone");
}
}
boot1()
{
boot1 = getent ("boot1", "targetname");
trig = getent ("boot1trigger", "targetname");
while(1)
{
trig waittill ("trigger");
boot1 movex (960,5);
boot1 waittill ("movedone");
wait 3;
boot1 rotateyaw (-90,1);
boot1 waittill ("rotatedone");
wait 1;
boot1 movey (-1024,5);
boot1 waittill ("movedone");
}
}
gs1()
{
gs1 = getent ("groundspike1", "targetname");
trig = getent ("lift1trigger", "targetname");
while(1)
{
trig waittill ("trigger");
gs1 movez (40,0.3);
gs1 waittill ("movedone");
wait 5;
gs1 movez (-40,0.3);
gs1 waittill ("movedone");
}
}
text1()
{
trig = getent("text1","targetname");
while(1)
{
trig waittill ("trigger",user);
user iprintlnbold ("^1You ^9Drowned!");
wait 3;
}
}
text2()
{
trig = getent("text2","targetname");
while(1)
{
trig waittill ("trigger",user);
user iprintlnbold ("^1You ^9Drowned!");
wait 3;
}
}
lift2()
{
lift2 = getent ("lift2", "targetname");
trig = getent ("lift2trigger", "targetname");
while(1)
{
trig waittill ("trigger");
lift2 movex (112,1);
lift2 waittill ("movedone");
wait 1;
lift2 movey (-1024,3);
lift2 waittill ("movedone");
wait 1;
lift2 movez (800,2);
lift2 waittill ("movedone");
wait 1;
lift2 movex (-592,3);
lift2 waittill ("movedone");
wait 1;
lift2 movez (-592,3);
lift2 waittill ("movedone");
wait 3;
lift2 movez (592,0.5);
lift2 waittill ("movedone");
wait 1;
lift2 movex (592,0.5);
lift2 waittill ("movedone");
wait 1;
lift2 movez (-800,0.5);
lift2 waittill ("movedone");
wait 1;
lift2 movey (1024,3);
lift2 waittill ("movedone");
wait 1;
lift2 movex (-112,1);
lift2 waittill ("movedone");
}
}
setdamagetrigger()
{
spike_trig = getent(self.target,"targetname");
player = getentarray("player","classname");
while(1)
{
wait .05;
if(spike_trig.origin != self.origin)
spike_trig.origin = self.origin;
for(a=0;a<player.size;a++)
{
if(player[a] isTouching(spike_trig))
player[a] suicide();
}
}
}