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

[TF2] Melee Dare


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Theme97
Senior Member
Join Date: Mar 2009
Plugin ID:
1233
Plugin Version:
0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Plays "meleedare" sound files at seemingly appropriate times.
    Old 10-18-2009 , 22:15   [TF2] Melee Dare
    Reply With Quote #1

    Helping out the guys working on the Touhou Fortress 2 modification, I felt kinda bad for having our voice actors record lines that aren't ever used.

    The Scout, Heavy, Sniper, and Spy have "meleedare" lines that don't actually play, so this plugin attempts to freshen your TF2 experience and maybe make you smile as your character utters a humorous saying when you pull out your melee weapon.

    This is a beta; since it's difficult to determine what conditions make for a good "meleedare" line, I'll let the community give suggestions as to what works and what doesn't. Additionally, without a place to test on my own, I'll need you guys to help me find and squash those pesky bugs.

    Currently (v0.1), only the Scout, Heavy, and Sniper will play their lines. The plugin monitors your current weapon and, when it detects that you've switched to your melee weapon, checks the following requirements:

    (0. You have not "meleedare"d in the last 5 seconds.)
    1. There is at least one enemy within 1024 units of your position.
    2. Said enemy is NOT a Spy. (Later versions will check if the Spy is uncloaked and not disguised as an enemy.)
    3. The enemy is in your FOV (acos(0.3) = 72.5423969 degrees)
    4. You are in the enemy's FOV.

    I'm unsure of what we could do to trigger the Spy's meleedare line since his melee fights aren't so much melee duels as they are "oh crap I need to get away, let me attack blindly and hope for a facestab."

    But yeah, I'll leave it to you, the community, to figure out ideal or additional conditions.
    Attached Files
    File Type: sp Get Plugin or Get Source (MeleeDare.sp - 2273 views - 3.5 KB)
    __________________
    I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

    [ALL] Karaoke
    [TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All
    Theme97 is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-18-2009 , 22:58   Re: [TF2] Melee Dare
    Reply With Quote #2

    Interesting. I was thinking about making this, so this is just great.

    I'll try it and report back to you.

    EDIT: It doesn't work.

    Last edited by noodleboy347; 10-18-2009 at 23:07.
    noodleboy347 is offline
    Theme97
    Senior Member
    Join Date: Mar 2009
    Old 10-18-2009 , 23:42   Re: [TF2] Melee Dare
    Reply With Quote #3

    Quote:
    Originally Posted by noodleboy347 View Post
    EDIT: It doesn't work.
    Gah. Any errors or a detailed description of what you tried to do? It seemed to work last time I had someone else try it.
    __________________
    I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

    [ALL] Karaoke
    [TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All

    Last edited by Theme97; 10-18-2009 at 23:48.
    Theme97 is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 10-19-2009 , 00:01   Re: [TF2] Melee Dare
    Reply With Quote #4

    Quote:
    Originally Posted by Theme97 View Post
    Gah. Any errors or a detailed description of what you tried to do? It seemed to work last time I had someone else try it.
    I loaded it, and tried it as a Heavy. Didn't work. I killed myself, respawned, didn't work.

    Tried having melee out, looking at people, having them look at me, started punching, had them use melee, etc.
    noodleboy347 is offline
    Theme97
    Senior Member
    Join Date: Mar 2009
    Old 10-19-2009 , 00:38   Re: [TF2] Melee Dare
    Reply With Quote #5

    Hmm. Try it without the public cvar (line 26).

    If not, then I'd appreciate some error logs.
    Attached Files
    File Type: sp Get Plugin or Get Source (MeleeDare.sp - 1570 views - 3.5 KB)
    __________________
    I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

    [ALL] Karaoke
    [TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All
    Theme97 is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 10-19-2009 , 02:56   Re: [TF2] Melee Dare
    Reply With Quote #6

    Fantastic, will be trying this out later!
    __________________
    Jindo is offline
    Mecha the Slag
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 10-19-2009 , 16:58   Re: [TF2] Melee Dare
    Reply With Quote #7

    Incredibly excellent. Trying it out in a minute on my server
    edit: yes it's working!

    It'd be really sweet if you could get the other unused voice files into the game!

    Last edited by Mecha the Slag; 10-19-2009 at 17:22.
    Mecha the Slag is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 10-20-2009 , 03:13   Re: [TF2] Melee Dare
    Reply With Quote #8

    Working absolutely fine for me!
    __________________
    Jindo is offline
    emuzombie
    Member
    Join Date: Sep 2009
    Location: Wisconsin, US
    Old 10-20-2009 , 04:03   Re: [TF2] Melee Dare
    Reply With Quote #9

    Works great but so far only noticed it fire once in a real game, and no one else noticed... Oh well, give it time I guess hehe.
    __________________
    emuzombie is offline
    Theme97
    Senior Member
    Join Date: Mar 2009
    Old 10-21-2009 , 19:58   Re: [TF2] Melee Dare
    Reply With Quote #10

    Quote:
    Originally Posted by Mecha the Slag View Post
    It'd be really sweet if you could get the other unused voice files into the game!
    Yeah, that was sort of my next move with this idea. If you know some sound files that don't get used, I'll be happy to add them.

    Quote:
    Originally Posted by Jindo View Post
    Working absolutely fine for me!
    Thanks for the confirmation.

    Quote:
    Originally Posted by emuzombie View Post
    Works great but so far only noticed it fire once in a real game, and no one else noticed... Oh well, give it time I guess hehe.
    Part of it is because there are only three classes that say it, but that's also part of why I'd like some help thinking of more situations that call for a melee dare.

    Perhaps it could also fire if there is an enemy (not cloaked/disguised Spy) who is
    a) very close to you (say, 256 units) but out of FOV
    b) a little farther (2048?) but 5-10 degrees of where you're aiming
    __________________
    I now have very little time to work on stuff and my main computer (which is the only one that can run TF2) is not cooperating with me, so don't expect many updates from me anytime soon.

    [ALL] Karaoke
    [TF2] Intel Timer | Crabmod | Randomizer | Stopwatch | Crits 4 All
    Theme97 is offline
    Reply



    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 01:34.


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