Reduce the amount of actor message spam from vanu turrets recharging their ammo constantly

This commit is contained in:
Mazo 2020-04-29 22:31:07 +01:00
parent eabb952683
commit 31440d341b
3 changed files with 23 additions and 5 deletions

View file

@ -5850,6 +5850,12 @@ class WorldSessionActor extends Actor
})
}
projectilesToCleanUp(projectileIndex) = false
obj match {
case turret : FacilityTurret if turret.Definition == GlobalDefinitions.vanu_sentry_turret =>
turret.Actor ! FacilityTurret.WeaponDischarged()
case _ => ;
}
}
else {
log.warn(s"WeaponFireMessage: $player's ${tool.Definition.Name} projectile is too far from owner position at time of discharge ($distanceToOwner > $acceptableDistanceToOwner); suspect")