Phil25 / RTD

Roll The Dice SourceMod plugin for Team Fortress 2
GNU General Public License v3.0
55 stars 20 forks source link

Missing CFG file? #110

Closed kp9589kp closed 6 months ago

kp9589kp commented 6 months ago

im trying to change the duration of some perks it says to change them in rtd2_perks.custom.cfg but i dont have that cfg? its not in the Zip when downloaded either i just redownloaded to see if i just forgot to transfer it when i originally downloaded and added to server 2 weeks ago.

Phil25 commented 6 months ago

rtd2_perks.custom.cfg is for you to create. It's not included in the release so that people could drop the entire unpacked archive into the server files without worrying about overriding custom settings.

Create a text file named rtd2_perks.custom.cfg alongside the default config and follow the instructions here to customize perk times.

Here's an example of setting Spawn Sentry to last 60 seconds:

"Effects"
{
    "spawnsentry"
    {
        "time"  "60"
    }
}
kp9589kp commented 6 months ago

oh alright thank you, i may have missed this reading through as well, is there a way to change all of the default time from 24 seconds or am i only able to change them each by creating that cfg file?

Phil25 commented 6 months ago

No worries, take a look at ConVars. You can change the default perk time by setting sm_rtd2_duration to your custom amount.

The config is there to fine tune stuff per perk, but by default, the perk time is that ConVar's value. However, some perks do override their duration explicitly so won't be affected (currently, that's Timebomb, Fire Timebomb and Paranoia). To change the time of those perks, use the custom config and set their time to 0 for them to default to the ConVar, or just provide the custom one from the config.

kp9589kp commented 6 months ago

Ahh okay i just misinterpreted the description for sm_rtd2_duration. thank you!