Silenci0 / SMAC

Sourcemod Anti-Cheat
Other
155 stars 56 forks source link

Update smac.cfg defaults #44

Closed Tiagoquix closed 4 years ago

caxanga334 commented 4 years ago

This is pointless, the config file is auto-generated.

Tiagoquix commented 4 years ago

This is pointless, the config file is auto-generated.

I know that, but I am updating the file to possibly make the owner update the plugin to generate the new settings (if the new settings are approved).

caxanga334 commented 4 years ago

The convar default value is defined in the plugin code, not the config file. For example: https://github.com/Silenci0/SMAC/blob/master/addons/sourcemod/scripting/smac_aimbot.sp#L58

Tiagoquix commented 4 years ago

The convar default value is defined in the plugin code, not the config file. For example: https://github.com/Silenci0/SMAC/blob/master/addons/sourcemod/scripting/smac_aimbot.sp#L58

Thanks but, I know about this. That is why I have said:

I know that, but I am updating the file to possibly make the owner update the plugin to generate the new settings (if the new settings are approved).

MAGNAT2645 commented 4 years ago

You can't just replace 0.000000 with 0 (or 1.000000 with 1) because SourceMod accepts float numbers as ConVar bounds (min & max). So auto-generated configs will always have float value as minimum or/and maximum.