Rainyan / sourcemod-nt-competitive

SourceMod plugin for competitive Neotokyo.
1 stars 3 forks source link

Ghost overtime #33

Closed Agiel closed 1 year ago

Agiel commented 1 year ago

Implements ghost overtime which makes the timer slow down near end of round when the ghost is held. Note that this depends on nt_ghostcap v1.9.0.

Ghost overtime is also implemented as a stand-alone plugin, but requires tight integration with the comp plugin due to interactions with pause etc. Both plugins should not be used at the same time.

The overtime is controlled by four new cvars

To illustrate how the timer behaves with default settings:
Ghost overtime kicks in at 15 seconds on the clock and will add a maximum of 45 seconds to the round. This gives us a total of 15 + 45 = 60 seconds for the timer of 15 seconds to decay. 60 / 15 = 4, meaning each second on the clock during ghost overtime will last for 4 real seconds.

Note that the upcoming tournament (Winter Warzone 2023) will have grace reset disabled.

This pull request also contains a change to use the m_iGameState prop instead of round time to determine whether the round has ended, with regards to player kills.