Raised This Month: $62 Target: $400
 15% 

[TF2] Baseball


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ragenewb
Member
Join Date: May 2017
Location: RemoveEntity(0);
Plugin ID:
6602
Plugin Version:
1.0.0
Plugin Category:
Gameplay
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."
    Requirements
    SM 1.9+
    DHooks

    Installation
    Extract gamedata, plugins, and scripting to your SM directory.
    Type "sm plugins load tf2baseball" and play ball!
    Attached Files
    File Type: zip tf2baseball.zip (12.8 KB, 2 views)
    __________________
    Over-engineering is underrated.

    Last edited by Ragenewb; Yesterday at 21:27. Reason: Future proofing that damn error
    Ragenewb is offline
    PC Gamer
    Senior 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
    Ragenewb
    Member
    Join Date: May 2017
    Location: RemoveEntity(0);
    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.
    Ragenewb is offline
    PC Gamer
    Senior Member
    Join Date: Mar 2014
    Old Yesterday , 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
    Ragenewb
    Member
    Join Date: May 2017
    Location: RemoveEntity(0);
    Old Yesterday , 21:24   Re: [TF2] Baseball
    Reply With Quote #5

    Craaap. On it. New DL link up top again. Thanks.
    __________________
    Over-engineering is underrated.
    Ragenewb 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 06:35.


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