SteamWar/FightSystem
Archiviert
13
1

Merge branch 'posFix' into 'master'

Position fixes

See merge request Yaruma3341/fightsystem!7
Dieser Commit ist enthalten in:
Yaruma3341 2019-02-23 20:35:48 +01:00
Commit 3dc213c5fa

Datei anzeigen

@ -99,15 +99,15 @@ public class FightSystem extends JavaPlugin {
//Rotate team1corner to edge (min. x, min. y, min. z) //Rotate team1corner to edge (min. x, min. y, min. z)
if(schemsizeX < 0){ if(schemsizeX < 0){
schemsizeX = -schemsizeX; schemsizeX = -schemsizeX;
team1cornerX -= 2*schemsizeX; team1cornerX -= schemsizeX;
} }
if(schemsizeY < 0){ if(schemsizeY < 0){
schemsizeY = -schemsizeY; schemsizeY = -schemsizeY;
team1cornerY -= 2*schemsizeY; team1cornerY -= schemsizeY;
} }
if(schemsizeZ < 0){ if(schemsizeZ < 0){
schemsizeZ = -schemsizeZ; schemsizeZ = -schemsizeZ;
team1cornerZ -= 2*schemsizeZ; team1cornerZ -= schemsizeZ;
} }
//Compute various positions //Compute various positions
@ -125,7 +125,7 @@ public class FightSystem extends JavaPlugin {
Team1SpawnLoc = new Location(world, Team1centerX, Team1centerY + schemsizeY, Team1centerZ); Team1SpawnLoc = new Location(world, Team1centerX, Team1centerY + schemsizeY, Team1centerZ);
Team2SpawnLoc = new Location(world, Team1centerX, Team1centerY + schemsizeY, Team1centerZ); Team2SpawnLoc = new Location(world, Team2centerX, Team2centerY + schemsizeY, Team2centerZ);
SpecSpawnLoc = new Location(world, Team1centerX + team1toTeam2distanceX/2, SpecSpawnLoc = new Location(world, Team1centerX + team1toTeam2distanceX/2,
Team1centerY + team1toTeam2distanceY/2 + schemsizeY/2, Team1centerY + team1toTeam2distanceY/2 + schemsizeY/2,
Team1centerZ + team1toTeam2distanceZ/2); Team1centerZ + team1toTeam2distanceZ/2);