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

[ANY] BlessCurse 1.20


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sneakret
Member
Join Date: Jul 2012
Plugin ID:
3125
Plugin Version:
1.20
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Bless or curse players to change damage taken/dealt.
    Unapprover:
    Reason for Unapproving:
    Unsupported. Errors are present.
    Old 07-30-2012 , 19:43   [ANY] BlessCurse 1.20
    Reply With Quote #1

    Allows admins to bless or curse players, changing their damage dealt and taken. Blessing/curse levels default to 4.0, but can be specified. For example, the following command would curse the blue team so that they all take double damage and deal half damage:
    Quote:
    sm_curse @blue 2.0
    Players are not notified when they are blessed or cursed.
    Blessings and curses last until the cursed player disconnects or the plugin reloads.

    I use this plugin on a kid-friendly trade/idle/achievement TF2 server to nerf spawn campers or really obnoxious snipers that are making the game less fun for other players, and to give little kids a fighting chance.

    This has only been tested in TF2, but will probably work with other games.

    Commands:
    • sm_bless - Bless players.
      Usage: sm_bless <targetname/#userid> [blessinglevel=4.0]
      Damage dealt by blessed players is multiplied by blessinglevel.
      Damage taken by blessed players is divided by curselevel.
    • sm_curse - Curse players.
      Usage: sm_curse <targetname/#userid> [curselevel=4.0]
      Damage inflicted by cursed players is divided by curselevel.
      Damage taken is multiplied by curselevel.
    • sm_unbless - Unbless players.
      Usage: sm_uncurse <targetname/#userid>
    • sm_uncurse - Uncurse players.
      Usage: sm_uncurse <targetname/#userid>
    • sm_blessed - List blessed players.
      Usage: sm_blessed
    • sm_cursed - List cursed players.
      Usage: sm_cursed

    Requires SDKHooks. Pre-compiled .smx attached.
    Attached Files
    File Type: sp Get Plugin or Get Source (BlessCurse.sp - 214 views - 13.4 KB)
    File Type: smx BlessCurse.smx (6.3 KB, 190 views)

    Last edited by RedSword; 09-08-2015 at 12:15. Reason: Replacing the curse mod with BlessCurse. ; 08/09/2015 changing status from "Ready for review" to "(none)", since there is no will to correct it
    sneakret is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 07-30-2012 , 19:54   Re: [ANY] Curse
    Reply With Quote #2

    that's a unique coding style
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 07-30-2012 , 19:57   Re: [ANY] Curse
    Reply With Quote #3

    You should note in the OP that it requires SDKHooks, and add a compiled version.
    Tylerst is offline
    sneakret
    Member
    Join Date: Jul 2012
    Old 07-30-2012 , 20:16   Re: [ANY] Curse
    Reply With Quote #4

    Quote:
    Originally Posted by Tylerst View Post
    You should note in the OP that it requires SDKHooks, and add a compiled version.
    Thanks. I forgot I had used SDKHooks in this one. Fixed.
    sneakret is offline
    Jim E. Rustler
    BANNED
    Join Date: Jul 2012
    Old 07-30-2012 , 20:45   Re: [ANY] Curse 1.01
    Reply With Quote #5

    Quote:
    Originally Posted by sneakret View Post
    I use this plugin to handle TF2 spawn campers or really obnoxious snipers that are making the game less fun for other players.
    Man, this is just horrible. I can understand doing this to players that are breaking rules or something but just because a player is better than you or spawn camps is just... wow.
    Jim E. Rustler is offline
    sneakret
    Member
    Join Date: Jul 2012
    Old 07-30-2012 , 20:46   Re: [ANY] Curse
    Reply With Quote #6

    Quote:
    Originally Posted by TnTSCS View Post
    that's a unique coding style
    I assume you're talking about the newlines between parameters. I write the code to fit in an 80 column window without wrapping. If the parameters are too long to fit on a single line, I put each parameter on its own line.

    It's not all that unique, but I suspect it's fairly unique to SourcePawn.
    sneakret is offline
    sneakret
    Member
    Join Date: Jul 2012
    Old 07-30-2012 , 20:49   Re: [ANY] Curse 1.01
    Reply With Quote #7

    Quote:
    Originally Posted by Jim E. Rustler View Post
    Man, this is just horrible. I can understand doing this to players that are breaking rules or something but just because a player is better than you or spawn camps is just... wow.
    I should probably have mentioned that I wouldn't use it that way on a "serious" server. This is on a trade/idle server where people who do that sort of thing are basically griefing.

    As far as using it for people breaking the rules--on some servers, spawn camping is against the rules.
    sneakret is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 08-02-2012 , 01:29   Re: [ANY] Curse
    Reply With Quote #8

    Quote:
    Originally Posted by sneakret View Post
    I write the code to fit in an 80 column window without wrapping.
    The 90s called.
    They want their monitor back.
    __________________
    DarthNinja is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 08-02-2012 , 03:08   Re: [ANY] Curse 1.01
    Reply With Quote #9

    I have one
    __________________
    Leonardo is offline
    sneakret
    Member
    Join Date: Jul 2012
    Old 08-02-2012 , 22:50   Re: [ANY] Curse
    Reply With Quote #10

    Quote:
    Originally Posted by DarthNinja View Post
    The 90s called.
    They want their monitor back.
    ... and their joke?
    sneakret is offline
    Reply


    Thread Tools
    Display Modes

    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 00:13.


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