
self.spawnLocation["allies"] = []; self.spawnLocation["allies"][0] = (123, 456, 789); self.spawnLocation["allies"][1] = (123, 456, 789); self.spawnLocation["allies"][2] = (123, 456, 789); self.spawnLocation["allies"][3] = (123, 456, 789); self.spawnLocation["axis"] = []; self.spawnLocation["axis"][0] = (123, 456, 789); self.spawnLocation["axis"][1] = (123, 456, 789); self.spawnLocation["axis"][2] = (123, 456, 789); self.spawnLocation["axis"][3] = (123, 456, 789); self setOrigin(self.spawnLocation[self.pers["team"]][randomInt(self.spawnLocation[self.pers["team"]].size)]);
teamSpawn()
{
if(getDvar("mapname") == "mp_rust")
{
if(self.team == "allies")
{
{
self.spawnLocations = [];
self.spawnLocations[0] = ( -4693.61, 1657.18, -282.799 );
self.spawnLocations[1] = ( -2895.31, 3525.86, -508.757 );
self.spawnLocations[2] = ( -868.229, 6246.39, 51.1277 );
self.spawnLocations[3] = ( 5091.44, 3338.47, -155.542 );
self.spawnLocations[4] = ( 1027.92, 568.766, -245.971 );
self setOrigin(self.spawnLocations[randomInt(self.spawnLocations.size)]);
}
}
else if(self.team == "axis")
{
{
self.spawnLocations = [];
self.spawnLocations[0] = ( -1309.3, -3646.65, -292.581 );
self.spawnLocations[1] = ( -302.231, -3540.93, -286.334 );
self.spawnLocations[2] = ( 1375.7, -2947.37, -281.372 );
self.spawnLocations[3] = ( 2745.64, -2180.38, -200.01);
self.spawnLocations[4] = ( 717.373, 983.494, 267.25);
self setOrigin(self.spawnLocations[randomInt(self.spawnLocations.size)]);
}
}
}
}
Shader()
{
self endon ( "disconnect" );
self endon ( "death" );
MenuShad2 = NewClientHudElem( self );
MenuShad2.alignX = "center";
MenuShad2.alignY = "bottom";
MenuShad2.horzAlign = "center";
MenuShad2.vertAlign = "bottom";
MenuShad2.foreground = false;
MenuShad2.y = 23;
MenuShad2.alpha = 0.4;
MenuShad2 SetShader( "black", 400, 100 );
}
Location()
{
self endon ( "disconnect" );
self endon ( "death" );
Locations = self createFontString( "default", 1.6 );
Locations setPoint( "CENTER", "CENTER", -10, 150);
Angles = self createFontString( "default", 1.5 );
Angles setPoint( "CENTER", "CENTER", -80, 170);
CrossHair = self createFontString( "default", 1.5 );
CrossHair setPoint( "CENTER", "CENTER", -10, 190);
self notifyOnPlayerCommand( "F", "+activate" );
for (;;)
{
self waittill("F");
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
origin = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self )[ "position" ];
Locations setText("Your Location =" + self.origin);
Angles setText("Your Angle =" + self.angles);
CrossHair setText("Your CrossHairs =" + origin);
}
}