mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-16 08:55:18 +00:00
restored emergency drop/passenger dump from galaxy when pilot bails
This commit is contained in:
parent
53e3f9a08d
commit
83f6b761d8
1 changed files with 1 additions and 1 deletions
|
|
@ -28,12 +28,12 @@ class CargoCarrierControl(vehicle: Vehicle)
|
||||||
* @param kickPassengers passengers need to be ejected "by force"
|
* @param kickPassengers passengers need to be ejected "by force"
|
||||||
*/
|
*/
|
||||||
override def PrepareForDisabled(kickPassengers: Boolean) : Unit = {
|
override def PrepareForDisabled(kickPassengers: Boolean) : Unit = {
|
||||||
|
super.PrepareForDisabled(kickPassengers)
|
||||||
//abandon all cargo
|
//abandon all cargo
|
||||||
vehicle.CargoHolds.collect {
|
vehicle.CargoHolds.collect {
|
||||||
case (index, hold : Cargo) if hold.isOccupied =>
|
case (index, hold : Cargo) if hold.isOccupied =>
|
||||||
val cargo = hold.occupant.get
|
val cargo = hold.occupant.get
|
||||||
checkCargoDismount(cargo.GUID, index, iteration = 0, bailed = false)
|
checkCargoDismount(cargo.GUID, index, iteration = 0, bailed = false)
|
||||||
super.PrepareForDisabled(kickPassengers)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue