Over some time I have felt that the money given for a kill just wasn't quite "fair" if you will. By default you will always get $300 no matter what weapon you use, you don't get a benefit if you use this weapon over that. Well, I wrote this plugin to fix that. You are now able to set the amount of cash on a kill dependant on the weapon used. You can set each weapon to any value from 0-16000.
FAIR WARNING: This COMPLETELY removes the original value of a kill (-300), so if you set a weapon to 0, or remove a line, the player will be awarded NO money for killing with the specific weapon. However, I HIGHLY advise AGAINST removing lines from the
weapon_rewards.txt file, if you want a weapon to be worth $0, just set it to 0. Also, while you may want to set the value for a weapon above 16000, the plugin will not allow for this and will automatically force a maximum of $16000. The engine does not support higher values well, and I highly advise against this.
You may wonder why my default configuration of the prices seem so close to the original. I based the modifiers on the default value of a kill ($300), multiplied by the psychostats modifier. So end result was 300 * modifier. If you want to know what they are, go download psychostats.
I have attached a packaged zip file, the sp, and the txt file (config). If you would like a version of this compiled against the LATEST version of SourceMod, PLEASE use the "Get Plugin" link.
The packaged zip was compiled against build 716, if you would like a compile against the LATEST version of SourceMod, PLEASE, utilize the "Get Plugin" link.
The packaged zip include the following
- configuration file
- addons/sourcemod/configs/weapon_rewards.txt
- the source
- addons/sourcemod/scripting/weaponrewards.sp
- the compiled plugin
- addons/sourcemod/plugins/weaponrewards.smx
INSTALLATION:- Using the package file
- Extract the contents directly into your cstrike directory
- Installing individual files
- Click on Get Plugin below, put the resulting .smx into your addons/sourcemod/plugins/ directory.
- Click on weapon_rewards.txt below, place this into the addons/sourcemod/configs/ directory.
CVARS:- sm_weaponrewards
- Turns plugin on/off
- Default Values: 0 or 1
CHANGELOG:- 1.0.2
- Fixed a bug where the plugin would try to handle "Player 0 index" and error.
- 1.0.1
- Fixed a bug that would cause error logging and invalid stack calls sometimes causing crashes
- 1.0.0
Thanks to Olly, sslice, BAILOPAN, and devicenull for helping out in this one.
Thank you to
GameConnect for allowing me to test this on their servers.