Moved the glow creation under the build object event (some netprops on
the sentry and the player doesn't get initialized until the sentry is
built at least once).
Fixed an issue where the sentry owner couldn't be retrived.
That pull request should also fix issue #6, I couldn't test it, but according to valve's code, it looks if the bot was either killed by a sniper holding a bow/sniper, or look for the attribute "force_distribute_currency_ondeath", but those attributes with "", can't be hooked by TF2Attributes, hopefully I only saw that attribute being applied to bots only so far, so I don't think there's any point to worry about that attribute.
Everything should be fine from now .
I couldn't test the code yesterday, but I did today, and everything is working fine. And here some screenies: the sentry is being placed for the 1st time the sentry has been placed the sentry has been placed, and now it's now carried placing a mini sentry for the 1st time, while the main sentry is built the mini has been placed carrying a mini sentry that has been placed, while the main sentry is built final screenshot, showing the glow is reapplied fine to the mini sentry, and not to the main sentry
That pull request should also fix issue #6, I couldn't test it, but according to valve's code, it looks if the bot was either killed by a sniper holding a bow/sniper, or look for the attribute "force_distribute_currency_ondeath", but those attributes with "", can't be hooked by TF2Attributes, hopefully I only saw that attribute being applied to bots only so far, so I don't think there's any point to worry about that attribute.