View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-08-2014 , 22:50   Re: Check if a cap is locked/unlocked
Reply With Quote #3

Quote:
Originally Posted by MasterOfTheXP View Post
GetEntProp(entityIndex, Prop_Data, "m_bLocked") should work.
You'd think that'd work, but sadly that's only the value from Hammer's "Start locked" field and doesn't change during gameplay.

I'm pretty sure the only way to find out a control points lock state is to manually track the control points from the start of the round.

That means checking their m_bLocked and hooking their OnUnlocked output and other fun stuff (such as figuring out how to track when they lock again)

I do wonder if there's somewhere in the game's code where you can find that out, though...
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-08-2014 at 22:50.
Powerlord is offline