mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-12 06:55:10 +00:00
swapped arm lowering counteraction to target action: boarding the vehicle while it is being spawned
This commit is contained in:
parent
d6325d8dfc
commit
cfdc2c9ec7
1 changed files with 6 additions and 5 deletions
|
|
@ -1043,6 +1043,12 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
||||||
|
|
||||||
case VehicleSpawnPad.StartPlayerSeatedInVehicle(vehicle, pad) =>
|
case VehicleSpawnPad.StartPlayerSeatedInVehicle(vehicle, pad) =>
|
||||||
val vehicle_guid = vehicle.GUID
|
val vehicle_guid = vehicle.GUID
|
||||||
|
PlayerActionsToCancel()
|
||||||
|
if(player.VisibleSlots.contains(player.DrawnSlot)) {
|
||||||
|
player.DrawnSlot = Player.HandsDownSlot
|
||||||
|
sendResponse(ObjectHeldMessage(player.GUID, Player.HandsDownSlot, true))
|
||||||
|
avatarService ! AvatarServiceMessage(continent.Id, AvatarAction.ObjectHeld(player.GUID, player.LastDrawnSlot))
|
||||||
|
}
|
||||||
sendResponse(PlanetsideAttributeMessage(vehicle_guid, 22, 1L)) //mount points off?
|
sendResponse(PlanetsideAttributeMessage(vehicle_guid, 22, 1L)) //mount points off?
|
||||||
sendResponse(PlanetsideAttributeMessage(vehicle_guid, 21, player.GUID.guid)) //fte and ownership?
|
sendResponse(PlanetsideAttributeMessage(vehicle_guid, 21, player.GUID.guid)) //fte and ownership?
|
||||||
|
|
||||||
|
|
@ -3841,11 +3847,6 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
||||||
shooting = None
|
shooting = None
|
||||||
case None => ;
|
case None => ;
|
||||||
}
|
}
|
||||||
if(player != null && player.isAlive && player.VisibleSlots.contains(player.DrawnSlot)) {
|
|
||||||
player.DrawnSlot = Player.HandsDownSlot
|
|
||||||
sendResponse(ObjectHeldMessage(player.GUID, Player.HandsDownSlot, true))
|
|
||||||
avatarService ! AvatarServiceMessage(continent.Id, AvatarAction.ObjectHeld(player.GUID, player.LastDrawnSlot))
|
|
||||||
}
|
|
||||||
if(flying) {
|
if(flying) {
|
||||||
sendResponse(ChatMsg(ChatMessageType.CMT_FLY, false, "", "off", None))
|
sendResponse(ChatMsg(ChatMessageType.CMT_FLY, false, "", "off", None))
|
||||||
flying = false
|
flying = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue