From 6454042037a50000b7c2c1453abab262429e8395 Mon Sep 17 00:00:00 2001 From: Mazo Date: Wed, 21 Aug 2019 15:32:16 +0100 Subject: [PATCH] Turn off "festive" backpacks (#262) --- .../psforever/packet/game/PlanetsideAttributeMessage.scala | 1 + pslogin/src/main/scala/WorldSessionActor.scala | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/scala/net/psforever/packet/game/PlanetsideAttributeMessage.scala b/common/src/main/scala/net/psforever/packet/game/PlanetsideAttributeMessage.scala index 8d320850..4e10dca3 100644 --- a/common/src/main/scala/net/psforever/packet/game/PlanetsideAttributeMessage.scala +++ b/common/src/main/scala/net/psforever/packet/game/PlanetsideAttributeMessage.scala @@ -37,6 +37,7 @@ import scodec.codecs._ * `102 - TRAPSs`
* `103 - OMFTs`
* `104 - sensor disruptors`
+ * `112 - enable/disable festive backpacks`
*
* Players/General:
* Server to client :
diff --git a/pslogin/src/main/scala/WorldSessionActor.scala b/pslogin/src/main/scala/WorldSessionActor.scala index 704ea226..31c9161e 100644 --- a/pslogin/src/main/scala/WorldSessionActor.scala +++ b/pslogin/src/main/scala/WorldSessionActor.scala @@ -783,7 +783,7 @@ class WorldSessionActor extends Actor with MDCContextAware { LivePlayerList.Add(sessionId, avatar) traveler = new Traveler(self, continent.Id) //PropertyOverrideMessage - sendResponse(PlanetsideAttributeMessage(PlanetSideGUID(0), 112, 1)) + sendResponse(PlanetsideAttributeMessage(PlanetSideGUID(0), 112, 0)) // disable festive backpacks sendResponse(ReplicationStreamMessage(5, Some(6), Vector(SquadListing()))) //clear squad list sendResponse(FriendsResponse(FriendAction.InitializeFriendList, 0, true, true, Nil)) sendResponse(FriendsResponse(FriendAction.InitializeIgnoreList, 0, true, true, Nil)) @@ -2931,7 +2931,7 @@ class WorldSessionActor extends Actor with MDCContextAware { //custom sendResponse(ContinentalLockUpdateMessage(13, PlanetSideEmpire.VS)) // "The VS have captured the VS Sanctuary." sendResponse(ReplicationStreamMessage(5, Some(6), Vector(SquadListing()))) //clear squad list - sendResponse(PlanetsideAttributeMessage(PlanetSideGUID(0), 112, 1)) //common + sendResponse(PlanetsideAttributeMessage(PlanetSideGUID(0), 112, 0)) // disable festive backpacks //(0 to 255).foreach(i => { sendResponse(SetEmpireMessage(PlanetSideGUID(i), PlanetSideEmpire.VS)) }) //find and reclaim own deployables, if any