Target5150 / MoYu_Server_Stupid_Plugins

L4D2 Target Cat Project
GNU General Public License v3.0
80 stars 21 forks source link

I have a question regarding the readyup_togglecvars plugin. #55

Open WolfDogJeebe opened 12 months ago

WolfDogJeebe commented 12 months ago

The readyup_togglecvars plugin failed to disable the custom plugin even after starting the round.

Did I do something wrong or is it a plugin problem?

in server.cfg sm_readyup_add_togglecvars "l4d_lasertag_enable" "1" "0" I added it like this.

I used the latest version of the readyup plugin, but the result was the same.

jensewe commented 12 months ago

It depends on whether changes of set cvars are monitored by their plugins. You probably want to check out the plugin registering l4d_lasertag_enable attaches a change hook to it.

jensewe commented 12 months ago

Just pushed a possible fix, since it's likely that SM includes the qoutes when getting command arguments, and results in a failure to find corresponding convar.

WolfDogJeebe commented 12 months ago

Oh thank you. I'll check.

WolfDogJeebe commented 12 months ago

@jensewe

I tried the modified version but it didn't work.

jensewe commented 12 months ago

Suggest typing !cvar <cvarname> to check if this plugin has toggle it on and off, so it will be then clear what is going wrong.

WolfDogJeebe commented 12 months ago

@jensewe thank you Custom plugins are normally disabled. :D