SharpTimer
SharpTimer copied to clipboard
Seperate Saveloc(tp) cooldowns
A server I was playing in had set the command cooldown time higher than normal and css_tp commands would also get affected. I separated the teleport cooldown in the configs with a new variable "sharptimer_command_saveloc_cooldown" accepting floats like the "sharptimer_command_spam_cooldown" variable.
I also made necessary changes to ChatCommands.cs for the css_tp command:
if (playerTimers[player.Slot].TicksSinceLastCmd > cmdSavelocCooldown)
{
//Updated do nothing
}
Tested today and it seems to work.