Raised This Month: $32 Target: $400
 8% 

Blood Money


Post New Thread Reply   
 
Thread Tools Display Modes
Author
jcarle
Junior Member
Join Date: Jan 2008
Location: Joliette, QC, Canada
Plugin ID:
265
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blood money allows attackers to gain money at the expense of their victims.
    Old 01-25-2008 , 04:39   Blood Money
    Reply With Quote #1

    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 Log
    • Version 1.0.0
      • Released
    Bugs and Request

    If you run into problems, find bugs, have suggestions or want more done to this, just write in this thread. Cheers.
    Attached Files
    File Type: smx bloodmoney.smx (5.6 KB, 1233 views)
    File Type: sp Get Plugin or Get Source (bloodmoney.sp - 2945 views - 11.1 KB)

    Last edited by jcarle; 01-25-2008 at 04:41.
    jcarle is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 02-01-2008 , 11:35   Re: Blood Money
    Reply With Quote #2

    Sound nice will test it....

    cya
    __________________
    Rebell is offline
    pRED*
    Join Date: Dec 2006
    Old 02-20-2008 , 17:16   Re: Blood Money
    Reply With Quote #3

    Nice work. Approved.
    pRED* is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:55.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode