mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
gate fixes
This commit is contained in:
parent
6bc1726198
commit
7d8dd52259
|
|
@ -1282,6 +1282,7 @@ class ZoningOperations(
|
|||
ICS.FindZone(_.id == zoneId, context.self)
|
||||
))
|
||||
} else {
|
||||
vehicle.Velocity = None
|
||||
sessionLogic.general.unaccessContainer(vehicle)
|
||||
LoadZoneCommonTransferActivity()
|
||||
player.VehicleSeated = vehicle.GUID
|
||||
|
|
@ -2993,7 +2994,7 @@ class ZoningOperations(
|
|||
/**
|
||||
* na
|
||||
* @param target player being spawned
|
||||
* @param position where player is being placed in the game wqrld
|
||||
* @param position where player is being placed in the game world
|
||||
* @param orientation in what direction the player is facing in the game world
|
||||
* @param onThisSide description of the containing environment
|
||||
* @param goingToZone common designation for the zone
|
||||
|
|
|
|||
|
|
@ -140,8 +140,6 @@ object SpawnPoint {
|
|||
def CavernGate(innerRadius: Float)(obj: SpawnPoint, target: PlanetSideGameObject): (Vector3, Vector3) = {
|
||||
val (a, b) = metaGate(obj, target, innerRadius)
|
||||
target match {
|
||||
case v: Vehicle if GlobalDefinitions.isFlightVehicle(v.Definition) =>
|
||||
(a.xy + Vector3.z((target.Position.z + a.z) * 0.5f), b)
|
||||
case m: MountableEntity =>
|
||||
m.BailProtection = true
|
||||
(a + Vector3.z(obj.Definition.UseRadius * 0.5f), b)
|
||||
|
|
@ -154,7 +152,7 @@ object SpawnPoint {
|
|||
val (a, b) = metaGate(obj, target, innerRadius)
|
||||
target match {
|
||||
case v: Vehicle if GlobalDefinitions.isFlightVehicle(v.Definition) =>
|
||||
(a.xy + Vector3.z((target.Position.z + a.z) * 0.5f), b)
|
||||
(a, b)
|
||||
case _ =>
|
||||
(a + Vector3.z(flightlessZOffset), b)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ object GlobalDefinitionsBuilding {
|
|||
hst.NoWarp += colossus_flight
|
||||
hst.NoWarp += peregrine_gunner
|
||||
hst.NoWarp += peregrine_flight
|
||||
hst.SpecificPointFunc = SpawnPoint.CavernGate(innerRadius = 6f)
|
||||
hst.SpecificPointFunc = SpawnPoint.CavernGate(innerRadius = 12f)
|
||||
|
||||
warpgate.Name = "warpgate"
|
||||
warpgate.UseRadius = 67.81070029f
|
||||
|
|
@ -141,7 +141,7 @@ object GlobalDefinitionsBuilding {
|
|||
warpgate_cavern.UseRadius = 19.72639434f
|
||||
warpgate_cavern.SOIRadius = 41
|
||||
warpgate_cavern.VehicleAllowance = true
|
||||
warpgate_cavern.SpecificPointFunc = SpawnPoint.CavernGate(innerRadius = 4.5f)
|
||||
warpgate_cavern.SpecificPointFunc = SpawnPoint.CavernGate(innerRadius = 12f)
|
||||
|
||||
warpgate_small.Name = "warpgate_small"
|
||||
warpgate_small.UseRadius = 69.03687655f
|
||||
|
|
|
|||
|
|
@ -295,7 +295,25 @@ object Zones {
|
|||
WarpGate.Structure(Vector3(structure.absX, structure.absY, structure.absZ), GlobalDefinitions.hst)
|
||||
)
|
||||
)
|
||||
case objectType if warpGateTypes.contains(objectType) =>
|
||||
case objectType @ "warpgate_cavern" if warpGateTypes.contains(objectType) =>
|
||||
zoneMap.addLocalBuilding(
|
||||
structure.objectName,
|
||||
structure.guid,
|
||||
structure.mapId.get,
|
||||
FoundationBuilder(
|
||||
WarpGate.Structure(Vector3(structure.absX, structure.absY, structure.absZ), GlobalDefinitions.warpgate_cavern)
|
||||
)
|
||||
)
|
||||
case objectType @ "warpgate_small" if warpGateTypes.contains(objectType) =>
|
||||
zoneMap.addLocalBuilding(
|
||||
structure.objectName,
|
||||
structure.guid,
|
||||
structure.mapId.get,
|
||||
FoundationBuilder(
|
||||
WarpGate.Structure(Vector3(structure.absX, structure.absY, structure.absZ), GlobalDefinitions.warpgate_small)
|
||||
)
|
||||
)
|
||||
case objectType @ "warpgate" if warpGateTypes.contains(objectType) =>
|
||||
zoneMap.addLocalBuilding(
|
||||
structure.objectName,
|
||||
structure.guid,
|
||||
|
|
|
|||
Loading…
Reference in a new issue