View Single Post
Author Message
Wliu
Veteran Member
Join Date: Apr 2013
Old 01-09-2016 , 17:33   How to detect when Cow Mangler disables a building
Reply With Quote #1

I did a few tests using hints from FlaminSarge and still can't figure this one out. Is there any way to detect when the Cow Mangler disables a building? I've tried logging the sentry's m_iState and hooking OnObjectSapped, but the first doesn't change to anything unique and the second isn't even fired. Preferably I'd like a solution that doesn't run on a timer or hooks every single building out there, but if it's absolutely necessary, *shrug*.

And as usual, a second totally-unrelated question: how would you add ammo to Jarate/Mad Milk? m_iClip1 returns -1 until you manually set it (which breaks the recharge meter but sets the ammo correctly) and m_iAmmo returns 0 no matter what.
__________________
~Wliu
Wliu is offline