Skip to content

Commit

Permalink
freak_fortress_2: Fix unlocking capture point is not working
Browse files Browse the repository at this point in the history
In detail:
- tf_logic_arena's `CapEnableDelay` is only used for setting tf_gamerules_data's `m_flCapturePointEnableTime` before arena round start.
- So, unlocking by alive check actually unlock them if time check ConVar value was not setup(ex. 0.0)
- But if time check ConVar has positive value, even if the number of people is appropriate, it will not be opened until the time is right.
  • Loading branch information
M60TM committed Nov 10, 2023
1 parent 7bfaeb3 commit 89516ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/freak_fortress_2/gamemode.sp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ void Gamemode_CheckPointUnlock(int alive, bool notice)
}
}

SetArenaCapEnableTime(0.0);
GameRules_SetPropFloat("m_flCapturePointEnableTime", GetGameTime());
SetControlPoint(true);
PointUnlock = 0;
}
Expand Down

0 comments on commit 89516ba

Please sign in to comment.