Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Seperate Saveloc(tp) cooldowns #4

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

erdemozor
Copy link

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.

erdemozor and others added 4 commits May 27, 2024 12:05
Add saveloc_cooldown
seperated command and saveloc cooldowns
@erdemozor erdemozor changed the title Seperate Saveloc(tp cooldowns) Seperate Saveloc(tp) cooldowns May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant