I'm trying to effectively change the time at which the control point on arena maps is enabled from the default 60 seconds to my own event that I run later. I've gotten it to "work", but I'm having trouble with the "aesthetics".
What currently happens:
Round start: HUD icon has a lock, no floating symbol above the CP.
55 seconds into the round: Announcer counts down from 5 and says "CP Enabled", the HUD icon counts down from 5 and then no longer has a lock, and the floating symbol is a question mark.
Some time later (when I choose): Same as immediately before, but standing on the Control Point captures it as it should (and then changes the floating icon accordingly).
What I'd like to happen is:
Round start: Same as currently
55 seconds into the round: No change from round start
Some time later (when I choose): Count down from 5, remove the lock icon, and make the floating symbol a question mark (exactly what happens 55 seconds into the round currently).
My code:
PHP Code:
//On arena round start
new startEnt = -1;
new CP = 0;//team_control_point is the spinny icon
CP = FindEntityByClassname(startEnt, "trigger_capture_area");
if (IsValidEntity(CP)){
AcceptEntityInput(CP, "Disable")
}
...
//When I want
new startEnt = -1;
new CP = 0;//team_control_point is the spinny icon
CP = FindEntityByClassname(startEnt, "trigger_capture_area");
if (IsValidEntity(CP)){
AcceptEntityInput(CP, "Enable")
}
I disable/enable the
trigger_capture_area.
If I could just block the "Control Point Enabled" event that happens at 55/60 seconds (if there is one?), that would probably do the trick.
I've found out that I can do HideModel on the
team_control_point to remove the spinny question-mark icon above the control point, but the map un-hides it at 60 seconds. It seems I can use DispatchKeyValue to change some properties of the C, but can I set its flags? I'd like to set flag 1 on team_control_point to get rid of the HUD, if possible..
P.S. I asked a similar question (to which this is a follow-up) a while ago
here.
Sorry for poorly-written long-post, and thanks! ;)