Raised This Month: $182 Target: $400
 45% 

PunchShot 1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Plugin ID:
461
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Allows you to define velocity/direction of the punch applied on a clients view when shot in specific body parts
    Old 07-09-2008 , 15:38   PunchShot 1.0
    Reply With Quote #1

    PunchShot
    Version 1.0

    Requirements:
    • Sourcemod 1.0.3
    Description:
    What this plugin does is allows you to preset the punch velocity/direction on a client when shot in a specific hitgroup. The default settings are configured to push the clients view towards the body part that has been shot. When shot in the head, your view is spun to represent dizziness. Every punch can be configured in punchdata.cfg. Have fun!

    Todo:
    (Strikethrough = Completed)
    • (none)
    Config:
    addons/sourcemod/configs/punchshot.cfg
    Code:
    // ====================
    //     PunchShot
    //   File: punchshot.cfg
    //   Author: Greyscale
    // ==================== 
    //
    // Here you can configure the punch velocity of each hitgroup
    // Format
    //
    // "hitgroup" - Hitgroup ID goes here, each are labeled with the actual body part
    //    "pitch" - Vertical push, positive pushes DOWN, negative pushes UP
    //    "yaw" - Horizontal push, positive pushes LEFT, negative pushes RIGHT
    //    "roll" - Twist, positive twist to the RIGHT, negative twists to the LEFT
    //
    // NOTE: Leaving the value blank ("") will not apply any force on that plane
    
    
    "punchdata"
    {
        "0" // generic (anything from explosions to falling)
        {
            "pitch"        ""
            "yaw"        ""
            "roll"        ""
        }
    
        "1" // head
        {
            "pitch"        ""
            "yaw"        "800.0"
            "roll"        ""
        }
    
        "2" // chest
        {
            "pitch"        "-10.0"
            "yaw"        ""
            "roll"        ""
        }
    
        "3" // stomach
        {
            "pitch"        "10.0"
            "yaw"        ""
            "roll"        ""
        }
    
        "4" // left arm
        {
            "pitch"        ""
            "yaw"        "13.0"
            "roll"        "-10.0"
        }
    
        "5" // right arm
        {
            "pitch"        ""
            "yaw"        "-13.0"
            "roll"        "10.0"
        }
    
        "6" // left leg
        {
            "pitch"        "10.0"
            "yaw"        "10.0"
            "roll"        "-15.0"
        }
    
        "7" // right leg
        {
            "pitch"        "10.0"
            "yaw"        "-10.0"
            "roll"        "15.0"
        }
    }

    Installation:
    • Download the .sp file (which should compile into a .smx file) and extract to sourcemod/plugins
    • Download the .cfg file and extract to <yourgamedir>/addons/sourcemod/configs, then configure your punch velocity data
    • Your done!
    Changelog:

    July 9th
    • Released
    Attached Files
    File Type: sp Get Plugin or Get Source (punchshot.sp - 1295 views - 3.1 KB)
    File Type: cfg punchdata.cfg (1.2 KB, 583 views)
    __________________

    Last edited by Greyscale; 07-09-2008 at 17:42.
    Greyscale is offline
    SixSicSix
    Senior Member
    Join Date: Jan 2008
    Old 07-09-2008 , 16:28   Re: PunchShot 1.0
    Reply With Quote #2

    EDIT: I'd like to request a TF2 version
    SixSicSix is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 07-09-2008 , 16:50   Re: PunchShot 1.0
    Reply With Quote #3

    Wow, trying this on DM.

    otto
    ottobohn is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 07-09-2008 , 17:42   Re: PunchShot 1.0
    Reply With Quote #4

    Quote:
    Originally Posted by SixSicSix View Post
    EDIT: I'd like to request a TF2 version
    It should work on any mod

    But you might need to switch the hitgroups around a bit, I don't know them for TF2
    __________________
    Greyscale is offline
    SixSicSix
    Senior Member
    Join Date: Jan 2008
    Old 07-09-2008 , 21:02   Re: PunchShot 1.0
    Reply With Quote #5

    I tried it on TF2; it wasn't noticeable. PErhaps you could look into it?
    SixSicSix is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 07-09-2008 , 21:34   Re: PunchShot 1.0
    Reply With Quote #6

    I don't have a TF2 server.

    Hm, change the values to something like 100.0 and see if you notice anything then?
    __________________
    Greyscale is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 07-10-2008 , 13:13   Re: PunchShot 1.0
    Reply With Quote #7

    hahha well, most of the Dm players called in admins to check for hackers. I didn't tell them that we ran the plugin as a test. No one liked it hahaha. I'm going to find a way to implement it for the dodgeball server.

    Otto
    ottobohn is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 07-10-2008 , 14:00   Re: PunchShot 1.0
    Reply With Quote #8

    oh well, I guess not all ideas can be winners.

    lol.
    __________________
    Greyscale is offline
    buaioeae
    New Member
    Join Date: Aug 2008
    Old 12-13-2008 , 01:49   Re: PunchShot 1.0
    Reply With Quote #9

    Thank you, this mod works nicely on my server. Everyone likes it, it makes the game more real and shooting more challenge. Good job.
    69.12.92.146:27015 {HBS]CLAN - Medic,Spawn Protect,Parachute,Team Balance,Sniper 24/7
    buaioeae 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:43.


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