...after a set amount of time of the point being controlled the point uncaps and switches to a new location and it has to be recaptured.
Hey, quick tip for this! the hud timer for tf_logic_cp_timer can be activated without using that entity, which would be extremely useful for this gamemode you are working on, as it would allow you to very easily have a visual timer for when the point with reset and change location.
1: whenever you want this timer to appear, run this:
Code:
| Target Entity | Target Input | Parameter |
| tf_objective_resource | RunScriptCode | NetProps.SetPropFloatArray(self, `m_flCPTimerTimes`, Time() + TIMER LENGTH HERE, POINT INDEX HERE) |
Ignore hammer if it says the input is incorrect. tf_objective_resource only exists ingame and cannot be created in hammer, nor should you do so.
Replace
POINT INDEX HERE
with the index of the point you want to target, and replace
TIMER LENGTH HERE
with the length of the timer. I will assume a length of 1 minute and an index of 0 from now on.
2: Whenever you want the timer to
stop, create a new input and replace everything after
`m_flCPTimerTimes`
, with -1 0, with 0 being the point index.
This must be done every time you count down to the point being reset and location-swapped. This is also purely just the visual element, all other logic must be handled manually.