- Jan 2, 2009
- 774
- 133
Has anyone successfully changed HUD CP icons on the fly - or figured out how to get the lock/unlock change to happen via triggers (aside from capping it to lock it)
The entity accepts an add output, but doing a:
team_overlay_0 sprites/obj_icons/redd
didn't seem to do anything (but it didn't error either)
For the curious:
What I'm trying to accomplish is to visually unlock a CP by the firing of 2 other triggers. I've got a math counter that gets a +1 when each trigger is fired, and when the math counter hits 2, the capture zone for the CP is enabled (allowing it to be captured).
What I'd like to have happen is for the CP to appear locked on the HUD until the capture zone is enabled...but I haven't managed to figure that one out yet.
I'm using custom HUD icons, and I haven't figured out how they decide to apply the padlock (and more importantly how we can get at and use that process).
- In the meantime, since while the capture zone is disabled it doesn't matter who owns the point, I'm going to use a gray locked icon for blu owning the point or something, and then change owner to 0 when teh cap zone is enabled...but that's a work around. If it can be done properly without changing owner that'd be better, so if you know how or have any ideas, please share.
The entity accepts an add output, but doing a:
team_overlay_0 sprites/obj_icons/redd
didn't seem to do anything (but it didn't error either)
For the curious:
What I'm trying to accomplish is to visually unlock a CP by the firing of 2 other triggers. I've got a math counter that gets a +1 when each trigger is fired, and when the math counter hits 2, the capture zone for the CP is enabled (allowing it to be captured).
What I'd like to have happen is for the CP to appear locked on the HUD until the capture zone is enabled...but I haven't managed to figure that one out yet.
I'm using custom HUD icons, and I haven't figured out how they decide to apply the padlock (and more importantly how we can get at and use that process).
- In the meantime, since while the capture zone is disabled it doesn't matter who owns the point, I'm going to use a gray locked icon for blu owning the point or something, and then change owner to 0 when teh cap zone is enabled...but that's a work around. If it can be done properly without changing owner that'd be better, so if you know how or have any ideas, please share.