mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 07:24:53 +00:00
Sync resource silo display & warning light with newly connected clients
This commit is contained in:
parent
86bb83dc09
commit
d72e1adf04
1 changed files with 8 additions and 0 deletions
|
|
@ -4377,6 +4377,14 @@ class WorldSessionActor extends Actor with MDCContextAware {
|
||||||
val amenityId = amenity.GUID
|
val amenityId = amenity.GUID
|
||||||
sendResponse(PlanetsideAttributeMessage(amenityId, 50, 0))
|
sendResponse(PlanetsideAttributeMessage(amenityId, 50, 0))
|
||||||
sendResponse(PlanetsideAttributeMessage(amenityId, 51, 0))
|
sendResponse(PlanetsideAttributeMessage(amenityId, 51, 0))
|
||||||
|
|
||||||
|
amenity.Definition match {
|
||||||
|
case GlobalDefinitions.resource_silo =>
|
||||||
|
// Synchronise warning light & silo capacity
|
||||||
|
sendResponse(PlanetsideAttributeMessage(amenityId, 45, amenity.asInstanceOf[ResourceSilo].CapacitorDisplay))
|
||||||
|
sendResponse(PlanetsideAttributeMessage(amenityId, 47, amenity.asInstanceOf[ResourceSilo].LowNtuWarningOn))
|
||||||
|
case _ => ;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
sendResponse(HackMessage(3, PlanetSideGUID(building.ModelId), PlanetSideGUID(0), 0, 3212836864L, HackState.HackCleared, 8))
|
sendResponse(HackMessage(3, PlanetSideGUID(building.ModelId), PlanetSideGUID(0), 0, 3212836864L, HackState.HackCleared, 8))
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue