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

[TF2] Last Player Melee v0.2.3 (7/21/2014)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Yoda12999
Junior Member
Join Date: Dec 2010
Plugin ID:
2136
Plugin Version:
0.2.3
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Asks the last player alive on a team whether they want to fight the other team with melee only.
Old 12-20-2010 , 22:57   [TF2] Last Player Melee v0.2.3 (7/21/2014)
Reply With Quote #1

[TF2] Last Player Melee

Per request from a few friends at my favorite arena server, this plugin notifies the last person on a team that they are the last person and asks them whether they want to fight the rest of the opposing team melee only.
  • Feature list
    • Asks the last player on a team if they want to call melee.
    • If there are only two players left and melee hasn't been called yet, each votes whether they want to fight melee.
    • Uses the best melee mode plugin that allows some non-melee weapons if you choose this and disables sentries.
  • Commands
    • None
  • Changelog
    • 0.1.0 - 12/20/2010 -
      • Initial release
    • 0.1.1 - 12/22/2010 -
      • Removed !melee command
      • Fixed problems with player counting code
      • Implemented true voting for last players
      • Cleaned up and optimized code
    • 0.1.2 - 1/10/2011
      • Fixed a problem with dead rigger deaths
    • 0.1.3 - 5/29/2011
      • Fixed bug where melee lasted through round change if called late
      • Added public cvar
    • 0.1.4 - 7/22/2012
      • Updated to work with most recent TF2 version
      • Fixed a few small trivialities with how the voting is called
    • 0.2.0 - 7/24/2012
      • Now checks the number of people alive when someone disconnects
      • Added ConVar to disable the plugin
    • 0.2.1 - 12/21/2013
      • Fixes problems when two people are left and either one votes no
    • 0.2.2 - 7/20/2014
      • Code clean up
      • Added option to change the menu style
    • 0.2.3 - 7/20/2014
      • Changed menus to use NativeVotes to get rid of complaints about menu popups stopping weapon switching
  • Installation instructions
    • Place lastpersonmelee.smx in sourcemod\plugins
    • Make sure the Melee Only plugin is installed correctly and set up how you want melee to work when called.
  • CVARs
    • last_melee_version - public cvar and version
    • last_melee_enable - 0 - Last person melee is disabled | 1 - Last person melee is enabled
  • Dependencies
Attached Files
File Type: sp Get Plugin or Get Source (lastpersonmelee.sp - 246 views - 6.6 KB)
File Type: smx lastpersonmelee.smx (6.9 KB, 404 views)

Last edited by Yoda12999; 07-21-2014 at 00:21.
Yoda12999 is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 12-21-2010 , 17:16   Re: [TF2] Last Player Melee
Reply With Quote #2

Hey, neat idea, and I'm happy you used the natives from my melee plugin but this isn't ready for prime time. I tried it on my server and it didn't work. I looked at your code, here's some suggestions:

1. My melee plugin already hooks "melee" so you need to come up with a different name. Otherwise, both functions get called. If you popup a menu, you don't even need a chat trigger command.

2. Your logic of counting players is flawed, after a round starts player count can easily change, ie. players change team, disconnect, etc. It's best to just count them when you need to look up the value. That'll simplify some of your code too.

You've got some other mistakes as well. I had people spamming !melee in chat and it kept spamming center messages on everyone. You probably need to keep track of when you're in a round and who's allowed to use that command.

Again, great plugin idea, just needs a little more work.
__________________
pheadxdll is offline
Yoda12999
Junior Member
Join Date: Dec 2010
Old 12-22-2010 , 12:28   Re: [TF2] Last Player Melee
Reply With Quote #3

Thank you pheadxdll! You have forced me to not use the hacky way that I hated using, and actually fix the player counting code I was trying to use originally! Also because of what you pointed out about the command I have removed it. Lastly, just for laughs I implemented actual voting when asking about 1vs1 melee if melee hasn't been called already.

Thank you once again for forcing my hand!
Yoda12999 is offline
Yoda12999
Junior Member
Join Date: Dec 2010
Old 01-11-2011 , 00:06   Re: [TF2] Last Player Melee
Reply With Quote #4

The plugin has been updated so there are no more known bugs, but there could still be some in there! I would love if anyone with an arena server could try it out and, no matter if you like it or not, say if you found any bugs! Thank you all!
Yoda12999 is offline
Yoda12999
Junior Member
Join Date: Dec 2010
Old 04-03-2011 , 22:47   Re: [TF2] Last Player Melee
Reply With Quote #5

Bumping once just because I think this plugin was forgotten about by, well, everyone but me. Seeing if I'll get this approved or not and if it is ignored again I'll leave it be.
Yoda12999 is offline
Daft
Junior Member
Join Date: Mar 2011
Old 05-29-2011 , 13:48   Re: [TF2] Last Player Melee v1.1.2
Reply With Quote #6

Outstanding. I host an arenaserver known as arenafortress. We had a meleeonly plugin and we had the policy "If you are the last person alive an admin may enable melee if you would like." People got upset because the admins would be afk or would not react quick enough. We disabled it because of all the complaints and I just reinstalled today after I saw this. It works very well. My community loves it and we have not found any bugs yet.
Great Job.
Daft is offline
Yoda12999
Junior Member
Join Date: Dec 2010
Old 05-29-2011 , 17:52   Re: [TF2] Last Player Melee v1.1.2
Reply With Quote #7

You just made my day! It's great to here that you like it and so does your server. Expect to see me possibly just to check you guys out!
Yoda12999 is offline
Daft
Junior Member
Join Date: Mar 2011
Old 06-01-2011 , 12:50   Re: [TF2] Last Player Melee v0.1.3
Reply With Quote #8

There is one flaw that we have seen over these past few days is when it is a 1 v 1 melee and it asks both players to accept or decline and we dont know what is suppose to happen. When a person declines it continues..
Daft is offline
Yoda12999
Junior Member
Join Date: Dec 2010
Old 06-01-2011 , 16:07   Re: [TF2] Last Player Melee v0.1.3
Reply With Quote #9

When even one person declines melee shouldn't be turned on. Is it doing the opposite of this?
Yoda12999 is offline
Daft
Junior Member
Join Date: Mar 2011
Old 07-19-2012 , 03:29   Re: [TF2] Last Player Melee v0.1.3
Reply With Quote #10

Anyway someone could continue this? yoda is inactive but the plugin is great, just needs some minor fixes
Daft 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 07:13.


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