mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-16 08:55:18 +00:00
extend bail protection during emergency drop
This commit is contained in:
parent
83f6b761d8
commit
933f9aa6df
1 changed files with 3 additions and 2 deletions
|
|
@ -25,7 +25,8 @@ class CargoCarrierControl(vehicle: Vehicle)
|
|||
|
||||
/**
|
||||
* If the vehicle becomes disabled, the safety and autonomy of the cargo should be prioritized.
|
||||
* @param kickPassengers passengers need to be ejected "by force"
|
||||
* @param kickPassengers passengers need to be ejected "by force";
|
||||
* actually controls bail protection and flavors a log message (further down the line)
|
||||
*/
|
||||
override def PrepareForDisabled(kickPassengers: Boolean) : Unit = {
|
||||
super.PrepareForDisabled(kickPassengers)
|
||||
|
|
@ -33,7 +34,7 @@ class CargoCarrierControl(vehicle: Vehicle)
|
|||
vehicle.CargoHolds.collect {
|
||||
case (index, hold : Cargo) if hold.isOccupied =>
|
||||
val cargo = hold.occupant.get
|
||||
checkCargoDismount(cargo.GUID, index, iteration = 0, bailed = false)
|
||||
checkCargoDismount(cargo.GUID, index, iteration = 0, bailed = kickPassengers)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue