PDA

View Full Version : How to edit Plugins in Sourcemod


Speak
10-03-2010, 11:53
Hey everyone; I'm sorry if this is an explicitly noobish question, but How do I edit settings in plugins? (.Smx files obtained from Sourcemod plugin section).
I will use Kill Bonus as an example.

No good instructions have been provided in most of the plugins:


"Install it like any other sourcemod Plugin"


For killbonus, it says CVAR stuff {And I have Absolutely No Clue what CVAR is}
and it lists four values. What do I do with these? ._.''

Cvar list
kb_enabled: Enabled\Disbales The Plugin (Def: 1)
kb_headshot: Hp amount to add when the kill was a headshot (Def: 30)
kb_hp: Hp amount to add on a normal kill (Def: 20)
kb_maxhp: Max Amount of hp a user can get on top of his hp (Def: 100)

Theres no Config files, and the .smx file the plugin is written in is uneditable by Notepad // Notepad++. I've tried typing kb_..... # in the console and got no response. The plugin works great, but to edit them, What do I need to do?

Xsinthis
10-03-2010, 16:54
cvar stands for Con Var or Console Variable, so basically a setting used to change something in the game. Some plugins create their own .cfg file with all the cvars listed, but otherwise your best bet is to edit your sourcemod.cfg with the modified value you want.

i.e. kb_headshot 20

Speak
10-03-2010, 17:27
Thanks. I'll try it out.

Speak
10-03-2010, 19:33
Didn't work. I opened the sourcemod.cfg and added the commands+pariments [kb_headshot 15] and it didn't change; it continued to utilize the default settings.

Kevin_b_er
10-03-2010, 21:10
Try using server.cfg.