mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-15 08:24:39 +00:00
drop medapp so client does not crash after character select; also, max needs arm raised (#1225)
This commit is contained in:
parent
02f95a293e
commit
46ad7148a2
1 changed files with 11 additions and 1 deletions
|
|
@ -2134,8 +2134,12 @@ class AvatarActor(
|
||||||
val zoneNum = saveOpt
|
val zoneNum = saveOpt
|
||||||
.collect {
|
.collect {
|
||||||
case persistence.Savedplayer(_, _, _, _, _, zoneNum, _, _, exosuitNum, loadout) =>
|
case persistence.Savedplayer(_, _, _, _, _, zoneNum, _, _, exosuitNum, loadout) =>
|
||||||
player.ExoSuit = ExoSuitType(exosuitNum)
|
val exo = ExoSuitType(exosuitNum)
|
||||||
|
player.ExoSuit = exo
|
||||||
AvatarActor.buildHolsterEquipmentFromClob(player, loadout, log)
|
AvatarActor.buildHolsterEquipmentFromClob(player, loadout, log)
|
||||||
|
if (exo == ExoSuitType.MAX) {
|
||||||
|
player.DrawnSlot = 0 //max arm up
|
||||||
|
}
|
||||||
zoneNum
|
zoneNum
|
||||||
}
|
}
|
||||||
.getOrElse {
|
.getOrElse {
|
||||||
|
|
@ -2154,6 +2158,12 @@ class AvatarActor(
|
||||||
.Holsters()
|
.Holsters()
|
||||||
.foreach(holster =>
|
.foreach(holster =>
|
||||||
holster.Equipment match {
|
holster.Equipment match {
|
||||||
|
case Some(tool: Tool) if tool.Definition == GlobalDefinitions.medicalapplicator =>
|
||||||
|
//todo fix so player may hold medapp when loading the zone (client crash)
|
||||||
|
val item = SimpleItem(GlobalDefinitions.flail_targeting_laser)
|
||||||
|
holster.Equipment = None
|
||||||
|
holster.Equipment = item
|
||||||
|
item.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||||
case Some(tool: Tool) =>
|
case Some(tool: Tool) =>
|
||||||
tool.AmmoSlots.foreach(slot => {
|
tool.AmmoSlots.foreach(slot => {
|
||||||
slot.Box.GUID = PlanetSideGUID(gen.getAndIncrement)
|
slot.Box.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue