Raised This Month: $154 Target: $400
 38% 

[TF2] Bodyshot Punishment


Post New Thread Reply   
 
Thread Tools Display Modes
Author
WakiMiko
Junior Member
Join Date: Jun 2009
Plugin ID:
947
Plugin Version:
0.2
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Punish snipers for having bad aim.
    Old 06-23-2009 , 21:06   [TF2] Bodyshot Punishment
    Reply With Quote #1

    Hey guys, this is a really simple plugin that can automatically punish snipers who are only going for bodyshots.

    That doesn't mean that bodyshots are bad, I'm not trying change the gameplay or anything, the idea just popped into my head when dicking around with some fellow snipers on a private server and I thought it would be a fun thing to have.

    It only counts bodyshots that actually kill and can be set to slay, slap or kick the offender. The admin can choose how many bodyshots are required to trigger the action, and whether or not headshots reset this counter. It can also play a sound file to all players upon punishment.

    This is my first plugin and the first time I've programmed in sourcepawn, so feedback and tips are more than welcome!


    CVars:
    sm_bs_action (0/1, default: 0)
    Action to perform against offenders: 0 = slay, 1 = slap (see sm_bs_slap_damage), 2 = kick

    sm_bs_count (int, default: 1)
    Trigger action after this many violations, 0 to disable plugin

    sm_bs_reset (0/1, default: 0)
    Whether or not the violation counter should be reset after each headshot

    sm_bs_slap_damage (int, default: 50)
    The damage to slap offenders with if sm_bs_action is set to 1

    sm_bs_sound (0/1, default 1)
    Whether or not to play a sound file to all players when somebody gets punished.

    edit: Hmmm, description and version fields dont seem to work.
    Attached Files
    File Type: sp Get Plugin or Get Source (bodyshot.sp - 1838 views - 4.4 KB)
    File Type: 7z bodyshot%20punishment%20v0.2.7z (26.7 KB, 1542 views)

    Last edited by WakiMiko; 06-25-2009 at 20:10.
    WakiMiko is offline
    YellowDeath
    Junior Member
    Join Date: Jun 2009
    Old 06-27-2009 , 13:05   Re: [TF2] Bodyshot Punishment
    Reply With Quote #2

    Greatest plug-in EVER! It has brought end-less hours of entertainment to our server. Thank you. There are a couple of features we would like to see added if possible.

    • The addition of the Huntsman & Ambassador
    • The option to count bodyshot kills as 0 points

    These additions would take this plug-in from great to EPIC! Thanks again for such an awesome plug-in.

    Nathan
    majmar – The Push Little Cart Revolution! [66.55.154.204:27015]
    YellowDeath is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 07-08-2009 , 17:53   Re: [TF2] Bodyshot Punishment
    Reply With Quote #3

    .7z attachments are not permitted.

    Please remove and plugin will be approved.
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?
    Antithasys is offline
    alinayg
    Senior Member
    Join Date: Apr 2009
    Location: USA, RI
    Old 07-09-2009 , 05:57   Re: [TF2] Bodyshot Punishment
    Reply With Quote #4

    Dose it count the huntsmen as body shots? because that would be bad.

    Get back to me on that and if hunts men doesn't count I'll be sure to use it on our orange/custom maps server
    __________________
    alinayg is offline
    Teraku
    Member
    Join Date: Feb 2009
    Old 07-11-2009 , 05:22   Re: [TF2] Bodyshot Punishment
    Reply With Quote #5

    What I would like to see is that you can set a cvar to what it counts. Always sniper rifle, but also if the ambassador or the huntsman affects this.
    Teraku is offline
    misterj20
    Junior Member
    Join Date: Aug 2006
    Location: Québec (Canada)
    Old 08-04-2009 , 23:21   Re: [TF2] Bodyshot Punishment
    Reply With Quote #6

    Omg ! This is a very bad plugin. It changes Gameplay !
    I play on majmar – The Push Little Cart Revolution! and i have been slay because I missed my shot. WTF ! It's ridiculous ! Punish the snipers, only ! WOW ! Good Job dude

    I removed this server of my favs.
    misterj20 is offline
    YellowDeath
    Junior Member
    Join Date: Jun 2009
    Old 09-01-2009 , 11:57   Re: [TF2] Bodyshot Punishment
    Reply With Quote #7

    @misterj20

    LMAO! You don't seem to get the joke. You won't be missed *wink *wink Dude, if you can't get a headshot kill out of 3 shots you REALLY need to find a new class.

    See what I mean? This is the best plug-in ever! It keeps whiny, I can't hit anything, sniper stackers off your server. It works better then class limits!

    Now, if I can just get an option to count body shots as zero points. Mwahahahaha!

    @alinayg

    No, it does not count for the huntsmen.

    Nathan
    majmar – The Push Little Cart Revolution! [66.55.154.204:27015]
    YellowDeath is offline
    dann
    Senior Member
    Join Date: Nov 2007
    Old 09-01-2009 , 13:01   Re: [TF2] Bodyshot Punishment
    Reply With Quote #8

    how about an option for a message to display in the snipers chat when this happens like, "you're terrible please change to a w+m1 class" or anything that could be configurable haha.
    dann is offline
    ENF
    Junior Member
    Join Date: Sep 2008
    Location: Tokyo, Japan (
    Old 09-02-2009 , 10:10   Re: [TF2] Bodyshot Punishment
    Reply With Quote #9

    Can you modify this code to slay/kick/ban someone if they get a kill with an SMG?

    I've got two Sniper Only servers that this would be great on. I'm already using a mod to cancel bodyshots, thus Headshot only.... although 1-2% of bodyshots get through...

    Well anyway, SMG's are a bigger problem and we have to kick/ban people left and right for it.

    EDIT: After reading up on this, I may try to create my own plug-in. Does not look that hard, just going to try and dive in and try.
    __________________


    Ultima Gaming (FPS) Ultima Linkshell (FFXI/MMORPG)

    Last edited by ENF; 09-02-2009 at 22:36. Reason: Updated Post and English Fail.
    ENF is offline
    snrooster
    Junior Member
    Join Date: Sep 2009
    Old 10-05-2009 , 21:58   Re: [TF2] Bodyshot Punishment
    Reply With Quote #10

    I have had a couple players complain about this plugin. Personally, I like it. A skilled sniper should have no problem getting headshot kills. Not to say, I've been slain a couple times myself. Only problem I have is the sound not playing, but that's no problem. I gotta tell ya, this is a great plugin. Thanks for your hard work.
    __________________
    Sometimes it's what you don't see that helps you sleep at night.
    What you call Hell, I call Home!
    snrooster 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 05:44.


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