sirhamsteralot / HaE-PBLimiter

Profiles pb's and damages them when their runtime goes over a set value
MIT License
11 stars 5 forks source link

Suppress messages when grid has no owner #1

Closed SplenectomY closed 6 years ago

SplenectomY commented 6 years ago

if MySession.Static.Players.TryGetSteamId(PB.OwnerId) doesn't work, the message is sent to ID:0, which is everyone on the server. Pretty annoying when there's a bunch of reavers flying around. Let's suppress the message if there's no owner, perhaps? Thoughts appreciated. I figure this could be a checkbox in the UI as well, "[] Suppress messages for ownerless grids?" I'm unfortunately not well versed enough to try to do a pull request for that.

Sidenote, not sure if MySession.Static.Players.TryGetSteamId(PB.OwnerId) is a double, decimal or what. I assumed double, could be wrong.