From 4973e8df29f17da3e8222e22dc9b7134ce519000 Mon Sep 17 00:00:00 2001 From: FateJH Date: Mon, 5 Mar 2018 23:49:34 -0500 Subject: [PATCH] implemented initial HackMessage during WSA login phase on building id --- .../src/main/scala/net/psforever/packet/game/HackMessage.scala | 2 ++ pslogin/src/main/scala/WorldSessionActor.scala | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/scala/net/psforever/packet/game/HackMessage.scala b/common/src/main/scala/net/psforever/packet/game/HackMessage.scala index 2225033e3..492e5b53d 100644 --- a/common/src/main/scala/net/psforever/packet/game/HackMessage.scala +++ b/common/src/main/scala/net/psforever/packet/game/HackMessage.scala @@ -47,6 +47,8 @@ object HackState extends Enumeration { * Upon the hack's completion, the target on the client will automatically revert back to its original state, if possible. * (It will still be necessary to alert this change from the server's perspective.) * @param unk1 na; + * 0 commonly; + * 3 for building objects during login phase; * hack type? * @param target_guid the target of the hack * @param player_guid the player diff --git a/pslogin/src/main/scala/WorldSessionActor.scala b/pslogin/src/main/scala/WorldSessionActor.scala index 9eb970b85..b7b50a24c 100644 --- a/pslogin/src/main/scala/WorldSessionActor.scala +++ b/pslogin/src/main/scala/WorldSessionActor.scala @@ -3136,13 +3136,12 @@ class WorldSessionActor extends Actor with MDCContextAware { def configZone(zone : Zone) : Unit = { zone.Buildings.foreach({case (id, building) => sendResponse(SetEmpireMessage(PlanetSideGUID(id), building.Faction)) - //TODO HackMessage() ? building.Amenities.foreach(amenity => { val amenityId = amenity.GUID - //TODO HackMessage() ? sendResponse(PlanetsideAttributeMessage(amenityId, 50, 0)) sendResponse(PlanetsideAttributeMessage(amenityId, 51, 0)) }) + sendResponse(HackMessage(3, PlanetSideGUID(id), PlanetSideGUID(0), 0, 3212836864L, HackState.HackCleared, 8)) }) }