AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Humiliation Friendly Fire 0.6 (31/12) (https://forums.alliedmods.net/showthread.php?t=104865)

Jindo 09-28-2009 12:13

[TF2] Humiliation Friendly Fire 0.6 (31/12)
 
3 Attachment(s)
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!

bl4nk 09-28-2009 13:07

Re: [TF2] End of Round Crits 0.2 (28/9)
 
Instead of using a timer, why not just hook teamplay_round_start and use that to set friendlyfire back to the default value?

Jindo 09-28-2009 13:11

Re: [TF2] End of Round Crits 0.2 (28/9)
 
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)

pheadxdll 09-28-2009 13:41

Re: [TF2] End of Round Crits 0.2 (28/9)
 
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.

Jindo 09-28-2009 13:46

Re: [TF2] End of Round Crits 0.2 (28/9)
 
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...

rlshky 10-03-2009 22:36

Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
 
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.

Jindo 10-04-2009 03:00

Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
 
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.

3_stooges_geo 10-05-2009 05:38

Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
 
pyros flamethrower does not kill team mates.

SuperShadow 10-05-2009 07:49

Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
 
Quote:

Originally Posted by 3_stooges_geo (Post 952830)
pyros flamethrower does not kill team mates.

Thank Valve for that, it never has.

Jindo 10-05-2009 09:22

Re: [TF2] Humiliation Friendly Fire 0.3 (28/9)
 
Flare Gun doesn't either, but as SuperShadow said, it's an issue that I can't resolve.


All times are GMT -4. The time now is 07:13.

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