Raised This Month: $105 Target: $400
 26% 

[TF2] Humiliation Friendly Fire 0.6 (31/12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Plugin ID:
1191
Plugin Version:
0.4
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Enables Friendly Fire at the end of rounds.
    Old 09-28-2009 , 13:13   [TF2] Humiliation Friendly Fire 0.6 (31/12)
    Reply With Quote #1

    Humiliation Friendly Fire - "Super Move" (TF2) v0.6

    Description:

    This plugin enables friendly fire when a team wins. It uses the 'mp_bonusroundtime' cvar to determine how long friendly fire should stay on for, and disables it when the next round starts.

    The plugin uses a TF2 exclusive event and cvar and so it won't be compatible with other mods.

    I've seen plugins that enable friendly fire at times like the Waiting for Players pre-game time, but I've yet to find one for the end of rounds, which is what this achieves.

    Warning: All kills in friendly fire count towards players' points, if you run a server with regulars who care about their points then this plugin isn't recommended for now.

    Cvars:

    smove_version 0.6 - The version of the plugin.
    smove_message 1 - Enables the center text messages when Super Move is used.
    smove_enable 1 - Enables the plugin.
    smove_print Friendly Fire - [i]This appears as the print name of the plugin in the 'Super Move in action/disengaged' messages (Irrelevant unless smove_message is non-zero.)

    ---

    To Do (complete) (low) (med) (high):

    • Get sounds working.
    • Add optional 'randomized' conditions for winning/losing teams (such as ubers, jarates, role reversal (winning team = losing animations etc))
    ---

    Version History:

    • 0.2:
      • Public Release
    • 0.3:
      • General code adjustments
    • 0.4:
      • Attempted to hide the change of the friendlyfire cvar.
    • 0.5:
      • Additional version of the plugin created, this version blocks scores being sent, but requires the CalcPlayerScore extension by bl4nk.
    • 0.6:
      • Alternative score blocking method used.
      • Added 'smove_print', used to adjust the Super Move message.
    ---

    I made this because a certain admin on my server kept doing it manually when the round ended, it sounded like a good idea to me once I found out and so I wrote this to relieve them of the chore, it also proved to be very popular with the regulars! I also wrote this because my server's waiting time is skipped once we get enough players and so the pre-game mayhem plugin isn't of as much use to me as this.

    Have fun!
    Attached Files
    File Type: sp Get Plugin or Get Source (supermove.sp - 3185 views - 3.3 KB)
    __________________

    Last edited by Jindo; 12-31-2009 at 07:07. Reason: Added public cvar to post header
    Jindo is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 09-28-2009 , 14:07   Re: [TF2] End of Round Crits 0.2 (28/9)
    Reply With Quote #2

    Instead of using a timer, why not just hook teamplay_round_start and use that to set friendlyfire back to the default value?
    bl4nk is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 09-28-2009 , 14:11   Re: [TF2] End of Round Crits 0.2 (28/9)
    Reply With Quote #3

    I suppose I could do this, I originally wrote it with the center text as mandatory, and so using the round start event would cause the text to appear whenever the round started (including when the map had just loaded).

    I'll adjust this shortly.

    EDIT: There's probably a better way of handling the cvars too. (For a start, adjusting the cvar flags is probably unnecessary)
    __________________

    Last edited by Jindo; 09-28-2009 at 14:39.
    Jindo is offline
    pheadxdll
    AlliedModders Donor
    Join Date: Jun 2008
    Old 09-28-2009 , 14:41   Re: [TF2] End of Round Crits 0.2 (28/9)
    Reply With Quote #4

    There used to be a Humilation Friendly Fire plugin, by MikeJS I think. (My server still uses it ) But I can't find it on the forums. I think he replaced it with http://forums.alliedmods.net/showthread.php?t=81219 Anyway, since there's not one I can find, thanks for making one.
    pheadxdll is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 09-28-2009 , 14:46   Re: [TF2] End of Round Crits 0.2 (28/9)
    Reply With Quote #5

    If you do find such a plugin (or if my plugin is deemed too similar to the above linked plugin), I'll be more than happy to request unapproval of this one!

    Adjusted the code slightly, updated as 0.3!

    QUICK FIX: Fixed the title misleading users by saying "End of Round Crits", I really wasn't thinking there...

    Also adjusted the plugin description, which said the same thing, apologies for any confusion I may have caused...
    __________________

    Last edited by Jindo; 09-28-2009 at 18:55.
    Jindo is offline
    rlshky
    Member
    Join Date: Mar 2009
    Location: San Diego
    Old 10-03-2009 , 23:36   Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
    Reply With Quote #6

    I used to use the plugin linked above to do the same thing but It would always give my server a friendly fire tag in the server browser so I stopped doing it. If someone knew a way around that I'd appreciate it.
    rlshky is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 10-04-2009 , 04:00   Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
    Reply With Quote #7

    It should only do that during humiliation, I'll look in to it.

    EDIT: Having just checked, my server's tags remained unchanged (and no sign of the 'ff' tag), I'll try one last thing.

    EDIT2: I'm sorry to say, I've had no luck replicating this, my tags stay the same through-out humiliation and there is never an 'ff' tag for me.
    __________________

    Last edited by Jindo; 10-04-2009 at 04:23.
    Jindo is offline
    3_stooges_geo
    Member
    Join Date: Jul 2008
    Location: Blackwood,New Jersey
    Old 10-05-2009 , 06:38   Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
    Reply With Quote #8

    pyros flamethrower does not kill team mates.
    3_stooges_geo is offline
    SuperShadow
    SourceMod Donor
    Join Date: Jun 2008
    Location: Westminster, MD
    Old 10-05-2009 , 08:49   Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
    Reply With Quote #9

    Quote:
    Originally Posted by 3_stooges_geo View Post
    pyros flamethrower does not kill team mates.
    Thank Valve for that, it never has.
    SuperShadow is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 10-05-2009 , 10:22   Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
    Reply With Quote #10

    Flare Gun doesn't either, but as SuperShadow said, it's an issue that I can't resolve.
    __________________
    Jindo 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 19:57.


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