Raised This Month: $51 Target: $400
 12% 

WeaponRewards


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Plugin ID:
9
Plugin Version:
1.0.2
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds extra cash for kills with various weapons
    Unapprover:
    Reason for Unapproving:
    Outdated, replaced by: http://forums.alliedmods.net/showthread.php?t=56264
    Old 04-15-2007 , 00:34   WeaponRewards
    Reply With Quote #1

    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
      • Released
    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.
    Attached Files
    File Type: zip weaponrewards.zip (5.4 KB, 340 views)
    File Type: sp Get Plugin or Get Source (weaponrewards.sp - 1130 views - 3.8 KB)
    File Type: txt weapon_rewards.txt (586 Bytes, 370 views)

    Last edited by FlyingMongoose; 04-26-2008 at 09:35.
    FlyingMongoose is offline
    PureSpider
    Senior Member
    Join Date: Aug 2006
    Old 04-15-2007 , 06:44   Re: [PLUGIN] WeaponRewards
    Reply With Quote #2

    Thanks to Olly, sslice, BAILOPAN, and sslice...
    so sslice helped twice huh?
    PureSpider is offline
    API
    Veteran Member
    Join Date: May 2006
    Old 04-15-2007 , 13:49   Re: [PLUGIN] WeaponRewards
    Reply With Quote #3

    Hah. Great job anyway
    API is offline
    Send a message via AIM to API
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 04-15-2007 , 14:05   Re: [PLUGIN] WeaponRewards
    Reply With Quote #4

    apparently he did :p but did you not notice the time that this was posted? I meant to put in devicenull.

    Anyway, thanks :p
    FlyingMongoose is offline
    Olly
    Senior Member
    Join Date: Mar 2007
    Location: UK
    Old 04-15-2007 , 14:35   Re: [PLUGIN] WeaponRewards
    Reply With Quote #5

    Hopefully lots of servers will run this (and use it fairly, as intended) but it makes a good improvement on the plain $300 for a kill, nice work FM
    Olly is offline
    Send a message via MSN to Olly
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 04-15-2007 , 14:47   Re: [PLUGIN] WeaponRewards
    Reply With Quote #6

    Why valve didn't think of this instead of DWP I'll never know... And I don't care if admins "abuse" this honestly...it's why I made it, I know a crap load of admins don't really WANT to disable the awp...but at least they can make their kills with it worthless ;)....in fact...I'm going to expand upon this and change it's name....hehe...you can see where this is going ;).

    Last edited by FlyingMongoose; 04-15-2007 at 19:57.
    FlyingMongoose is offline
    SaintK
    Veteran Member
    Join Date: Mar 2004
    Old 04-17-2007 , 18:56   Re: [PLUGIN] WeaponRewards
    Reply With Quote #7

    I've installed the plugin, running like a charm!

    Nice work!
    SaintK is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 04-17-2007 , 23:04   Re: [PLUGIN] WeaponRewards
    Reply With Quote #8

    Thank you for the kind words ;) I wouldn't mind knowing the common settings of some admins.
    FlyingMongoose is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 04-18-2007 , 14:47   Re: [PLUGIN] WeaponRewards
    Reply With Quote #9

    Updated plugin, see changelog on first post. Updated packaged zip file as well (using latest sourcemod build as of April 18, 2007)
    FlyingMongoose is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 04-29-2007 , 02:58   Re: [PLUGIN] WeaponRewards
    Reply With Quote #10

    Updated the plugin, see change log for changes (somewhat small/insignificant change). Basically prevention of a minor annoyance.
    FlyingMongoose 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 10:45.


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