View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 04-14-2019 , 19:22   Re: [CS:S/CS:GO/TF2] shavit's bhoptimer (v2.5.3 06/April/2019)
Reply With Quote #1253

v2.5.3 update notes
  • Added pause button in KZ CP menu.
    * In addition, the KZ CP menu now persists and will re-open in case it disappears.
  • Fixed error when a player uses !top before the rankings have been calculated.
  • Removed the pointless round restarting logic in the Dynamic Timelimit module.
  • Made the default method for zoning to be aiming.
  • Added warning that shows up before using functionalities that can stop the timer when your time passes a defined number of seconds. See the new added console variable shavit_misc_stoptimerwarning. This is triggered on noclip/stop and style changing commands.
  • Added "noimprovement" sound config file. The sound will play if you finish the map, but not beating your personal best.

Console Variables
  • shavit_misc_stoptimerwarning - the amount of seconds someone's timer needs to have to receive the "your timer will be stopped" warning upon using !stop, !nc or changing their style.

API
  • Added natives:
    * Shavit_CanPause - determines whether a player is able to pause or not. A value of 0 means that they can pause or resume their timer. Otherwise, this native retrieves flags: CPR_ByConVar, CPR_NoTimer, CPR_InStartZone, CPR_NotOnGround. Sample usage:

    Code:
    if((Shavit_CanPause(client) & CPR_ByConVar) > 0)
    {
        // this code will be executed if the pause cvar is disabled
    }
  • New native behavior:
    * Shavit_ResumeTimer - now has a second parameter, teleport. True will teleport the player to the position they paused at.

  • Added forwards:
    * Shavit_OnTeleport - called upon teleporting with a checkpoint
    * Shavit_OnStopPre - called when the timer is stopping. Ignored when Shavit_StopTimer is called with the bypass parameter set to true. Returning false here will prevent the timer from stopping.

https://github.com/shavitush/bhoptim...ses/tag/v2.5.3
__________________
retired
shavit is offline