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

[TF2] Baseball


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Scag
AlliedModders Donor
Join Date: May 2017
Location: Crashing Hale
Plugin ID:
6602
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Going, going... gone!
    Old 06-14-2019 , 01:50   [TF2] Baseball
    Reply With Quote #1

    When I was younger I used to hang out on Mario_Kart and try to hit back sandman baseballs slung towards me with a bat, but to no avail. Now, this is possible! Only instead, you can return any projectile back with a swing of the ol' wood.

    It's a straight up can-o'-corn: you swing your bat, and any projectiles (within a cvar-determinant range and FOV) get beanball'd right back. Really helps cover one's bases if you get cornered by a Soldier or Demoman.

    Any of these baseball idioms getting to ya?

    Professionally edited showcase video

    CVars
    Code:
    "sm_tfbaseball_velmult", "1.15", "Speed multiplier for a bat'd projectile."
    "sm_tfbaseball_fov", "70.0", "FOV range for bat swing to register as a valid hit."
    "sm_tfbaseball_range", "150.0", "Max range (hu) a projectile can be for it to be in swing range."
    "sm_tfbaseball_taunt_scale", "1.5", "When a scout does his swing taunt, how much should its range scale for projectiles?"
    "sm_tfbaseball_enabled", "1", "Enable TF2Baseball."
    Requirements
    SM 1.10+
    DHooks with Detours

    DOWNLOAD

    Installation
    Extract gamedata, plugins, and scripting to your SM directory.
    Restart your server and play ball!
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired

    Last edited by Scag; 04-26-2020 at 13:56. Reason: Updated download
    Scag is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 06-14-2019 , 15:14   Re: [TF2] Baseball
    Reply With Quote #2

    Nice Plugin!

    Works well, but getting this occasionally in my error log:

    Quote:
    L 06/14/2019 - 11:27:00: [SM] Exception reported: Property "m_iDeflected" not found (entity 1127/tf_projectile_syringe)
    L 06/14/2019 - 11:27:00: [SM] Blaming: tf2baseball.smx
    L 06/14/2019 - 11:27:00: [SM] Call stack trace:
    L 06/14/2019 - 11:27:00: [SM] [0] GetEntProp
    L 06/14/2019 - 11:27:00: [SM] [1] Line 87, C:\_tf2\tf2\tf\addons\sourcemod\scripting\tf2 baseball.sp::Smack
    L 06/14/2019 - 11:27:00: [SM] Exception reported: Property "m_iDeflected" not found (entity 1145/tf_projectile_syringe)
    L 06/14/2019 - 11:27:00: [SM] Blaming: tf2baseball.smx
    L 06/14/2019 - 11:27:00: [SM] Call stack trace:
    L 06/14/2019 - 11:27:00: [SM] [0] GetEntProp
    L 06/14/2019 - 11:27:00: [SM] [1] Line 87, C:\_tf2\tf2\tf\addons\sourcemod\scripting\tf2 baseball.sp::Smack
    L 06/14/2019 - 11:27:08: [SM] Exception reported: Property "m_iDeflected" not found (entity 773/tf_projectile_syringe)
    L 06/14/2019 - 11:27:08: [SM] Blaming: tf2baseball.smx
    L 06/14/2019 - 11:27:08: [SM] Call stack trace:
    L 06/14/2019 - 11:27:08: [SM] [0] GetEntProp
    L 06/14/2019 - 11:27:08: [SM] [1] Line 87, C:\_tf2\tf2\tf\addons\sourcemod\scripting\tf2 baseball.sp::Smack
    PC Gamer is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 06-14-2019 , 15:37   Re: [TF2] Baseball
    Reply With Quote #3

    Damn, I thought I remembered to catch that. Thanks for letting me know. Updated the download link up top.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 06-15-2019 , 11:30   Re: [TF2] Baseball
    Reply With Quote #4

    New version also works well, but now getting this error:

    Quote:
    L 06/15/2019 - 10:19:29: [SM] Exception reported: Property "m_iDeflected" not found (entity 978/tf_projectile_energy_ring)
    L 06/15/2019 - 10:19:29: [SM] Blaming: tf2baseball.smx
    L 06/15/2019 - 10:19:29: [SM] Call stack trace:
    L 06/15/2019 - 10:19:29: [SM] [0] GetEntProp
    L 06/15/2019 - 10:19:29: [SM] [1] Line 91, tf2baseball.sp::Smack
    L 06/15/2019 - 10:194: [SM] Exception reported: Property "m_iDeflected" not found (entity 888/tf_projectile_energy_ring)
    L 06/15/2019 - 10:194: [SM] Blaming: tf2baseball.smx
    L 06/15/2019 - 10:194: [SM] Call stack trace:
    L 06/15/2019 - 10:194: [SM] [0] GetEntProp
    L 06/15/2019 - 10:194: [SM] [1] Line 91, tf2baseball.sp::Smack
    PC Gamer is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 06-15-2019 , 21:24   Re: [TF2] Baseball
    Reply With Quote #5

    Craaap. On it. New DL link up top again. Thanks.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 06-17-2019 , 17:33   Re: [TF2] Baseball
    Reply With Quote #6

    Tested latest version. No new errors. Works good. Thanks!
    PC Gamer is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 06-18-2019 , 09:22   Re: [TF2] Baseball
    Reply With Quote #7

    So what happen if two scout from different team hit the same grenade over and over ?
    __________________
    Arkarr is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 06-18-2019 , 15:46   Re: [TF2] Baseball
    Reply With Quote #8

    Quote:
    Originally Posted by Arkarr View Post
    So what happen if two scout from different team hit the same grenade over and over ?
    Grenade arm time stays the same. But if 2 scouts start whacking on a rocket, it'll increase in velocity until it either lands or reaches a point where the game engine clamps the velocity.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    Varp.TF
    Member
    Join Date: Aug 2018
    Old 08-24-2019 , 08:13   Re: [TF2] Baseball
    Reply With Quote #9

    Added this, thanks
    Varp.TF is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 04-24-2020 , 23:35   Re: [TF2] Baseball
    Reply With Quote #10

    Updated this just now. Now, the Scout's taunt attack can hit back projectiles!
    It's so impressive, even the crowd will cheer you if you manage to pull it off. Has new gamedata with this update so don't forget that if you're updating.

    New cvar with it too, "sm_tfbaseball_taunt_scale". The higher the scale, the farther the reach you have when doing the swing taunt.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag 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 18:41.


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