Blood Money
Version 1.0.0
Released on January 25th, 2008
By Jean-Sebastien Carle
Description
Blood money allows attackers to gain money at the expense of their victims. This is my first plugin so I'd love to get some feedback from you guys and see what you all think.
CVars- bm_version
- Contains the plugin version
- bm_enabled <0/1>
- Enables/disables the plugin
- 0 = disabled
- 1 = enabled (default)
- bm_debug <0/1>
- Enables/disables debuging output to the server
- 0 = disabled (default)
- 1 = enabled
- bm_mode <1/2/3>
- Determines the play mode for the plugin
- 1 = Enable for HP damage only
- 2 = Enable for kills only
- 3 = Enable for both (default)
- bm_hpamount <#>
- Amount of money per HP of damage
- Any integer amount (default is 5)
- bm_killamount <#>
- Amount of money per kill
- Any integer amount (default is 500)
- bm_headshotbonus <#>
- Bonus amount per headshot
- Any integer amount (default is 500)
- bm_selfinflictedpenalty <#>
- Penalty amount per HP of self-inflicted damage
- Any integer amount (default is -10)
- bm_suicidepenalty <#>
- Penalty amount for a suicide
- Any integer amount (default is -1000)
- bm_globalhpmodifier <#>
- Amount for both parties per HP of damage
- Any integer amount (default is 0)
- bm_globalkillmodifier <#>
- Amount for both parties per kill
- Any integer amount (default is 0)
- bm_balanceratio <0.0 - 1.0>
- Balance ratio used to apply all amounts except global modifiers
- 0.0 =0% for the attacker and minus 200% for the victim
- 0.25 = 50% for the attacker and minus 150% for the victim
- 0.5 = 100% for the attacker and minus 100% for the victim (default)
- 0.75 = 150% for the attacker and minus 50% for the victim
- 1.0 = 200% for the attacker and 0% for the victim
- bm_echotochat <0/1/2/3>
- Determines which information to output to the chat
- 0 = Do not output to chat
- 1 = Output HP damage only
- 2 = Output kills only (default)
- 3 = Output both
Notes
Blood money works by adding the specified amounts to the attacker and substracting them from the victim in relation to the balance ratio. A balance ratio of 0.0 adds nothing to the attacker and substracts 200% of the amount from the victim, a ratio of 0.5 adds 100% of the amount to the attacker and substracts 100% of the amount from the victim, a ratio of 1.0 adds 200% of the amount to the attacker and substracts nothing from the victim. Any floating point number between 0.0 and 1.0 can be used for the ratio.
Also worth mentioning, the amounts can be positive or negative. Putting negative amounts would cause the attacker to lose money and the victim would gain it. Global modifiers are applied to both players for the amount specified whether positive or negative.
Installation
To install Blood Money, simply drop the bloodmoney.smx file into your plugins folder. The configuration file is located in cfg/sourcemod/. The configuration file is called plugin.bloodmoney.cfg and is created automatically when the module is started the first time.
Change LogBugs and Request
If you run into problems, find bugs, have suggestions or want more done to this, just write in this thread. Cheers.