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

Revolver Control


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Plugin ID:
4949
Plugin Version:
0.6
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Increases price of Revolver otherwise replaces it with the Desert Eagle.
    Old 12-10-2015 , 10:54   Revolver Control
    Reply With Quote #1

    Revolver Control[v0.6]


    Sick of the R8?
    After receiving an endless number of complaints from my players, I decided to write a plugin which replaces the Revolver with a Deagle until valve decides they have made enough profit and applies a much needed nerf to the weapon.

    How does the plugin work?
    The plugin either increases the price of the Revolver or replaces it with a Deagle by changing the item index before the engine sets the weapon attributes (effectively a hack)

    Cvars
    • sm_rc_type "0" - The amount to increase price by, otherwise <= 0 to replace with Deagle
      Example 1: sm_rc_type 150 would increase the price by $150
      Example 2: sm_rc_type 0 would replace the gun with a Deagle instead.

    Now where can I find one of those servers running this? Here.

    Note: I have only briefly tested the Cvar, it appears to be working fine, although if you find any bugs then please let me know.

    It appears that valve have nerfed the gun now.

    Enjoy!
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_revolver_control.sp - 654 views - 2.7 KB)

    Last edited by SM9; 12-11-2015 at 07:59. Reason: 0.6 - Fixed issues with Deagle.
    SM9 is offline
    supreeda
    Senior Member
    Join Date: Jul 2015
    Old 12-10-2015 , 11:02   Re: No R8 M8
    Reply With Quote #2

    this plugin will remove R8 right?

    and place Desert who use R8
    supreeda is offline
    '-_-'<3zok<3'-_-'
    Senior Member
    Join Date: Feb 2010
    Location: Norway
    Old 12-10-2015 , 11:02   Re: No R8 M8
    Reply With Quote #3

    Great work!
    Quote:
    Originally Posted by supreeda View Post
    this plugin will remove R8 right?

    and place Desert who use R8
    Quote:
    Originally Posted by xCoderx
    I decided to write a plugin which replaces the Revolver with a Deagle

    Last edited by '-_-'<3zok<3'-_-'; 12-10-2015 at 11:06.
    '-_-'<3zok<3'-_-' is offline
    Send a message via Skype™ to '-_-'<3zok<3'-_-'
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 12-10-2015 , 11:16   Re: No R8 M8
    Reply With Quote #4

    Quote:
    Originally Posted by supreeda View Post
    this plugin will remove R8 right?

    and place Desert who use R8
    Yes.

    Last edited by SM9; 12-10-2015 at 12:10.
    SM9 is offline
    Apina
    AlliedModders Donor
    Join Date: May 2013
    Old 12-10-2015 , 11:43   Re: No R8 M8
    Reply With Quote #5

    Where is plugin i dont see in first post
    Apina is offline
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 12-10-2015 , 11:46   Re: No R8 M8
    Reply With Quote #6

    Quote:
    Originally Posted by Apina View Post
    Where is plugin i dont see in first post
    Sorry, I was fixing a money bug, should be ok now.

    Anyone who downloaded it earlier should redownload it now, thanks

    Last edited by SM9; 12-10-2015 at 12:10.
    SM9 is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 12-10-2015 , 14:42   Re: No R8 M8
    Reply With Quote #7

    The gun currently costs 850, however it actually only takes 700 out of the player's money.
    Mitchell is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 12-10-2015 , 16:17   Re: No R8 M8
    Reply With Quote #8

    Why replace it with the Deagle instead of outright blocking it?
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 12-10-2015 , 17:10   Re: No R8 M8
    Reply With Quote #9

    Quote:
    Originally Posted by Powerlord View Post
    Why replace it with the Deagle instead of outright blocking it?
    Because there is no easy way to block them buying it. If you block the buy command it can be bypassed and it also replaces the deagle so it makes sense
    Dr!fter is offline
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 12-10-2015 , 19:15   Re: No R8 M8
    Reply With Quote #10

    Quote:
    Originally Posted by Powerlord View Post
    Why replace it with the Deagle instead of outright blocking it?
    Because its easier for players who have the Revolver equipped in inventory, atleast they can use the Deagle straight away instead of having to exit the server to switch loadout.

    Quote:
    Originally Posted by Dr!fter View Post
    Because there is no easy way to block them buying it. If you block the buy command it can be bypassed and it also replaces the deagle so it makes sense
    Yeah, it appears that it can also be bought in console with "buy deagle" so I can't really determine if I'm blocking a Deagle or Revolver in the CS_OnBuyCommand forward. Anyway by the time I could determine what gun the player has bought it would of already spawned which means I would have to either kill the entity or block it from being used in "SDKHook_WeaponCanUse"

    To sum up, I think its more efficient just to replace than to block it.

    Anyway, I have released a small update (0.4) which improves the money restore and makes it less likely to run into issues. I would say this update is optional and not critical although recommended.

    Last edited by SM9; 12-10-2015 at 19:21.
    SM9 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 14:22.


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