AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   PunchShot 1.0 (https://forums.alliedmods.net/showthread.php?t=73973)

Greyscale 07-09-2008 15:38

PunchShot 1.0
 
2 Attachment(s)
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

SixSicSix 07-09-2008 16:28

Re: PunchShot 1.0
 
EDIT: I'd like to request a TF2 version :P

ottobohn 07-09-2008 16:50

Re: PunchShot 1.0
 
Wow, trying this on DM.

otto

Greyscale 07-09-2008 17:42

Re: PunchShot 1.0
 
Quote:

Originally Posted by SixSicSix (Post 650293)
EDIT: I'd like to request a TF2 version :P

It should work on any mod :)

But you might need to switch the hitgroups around a bit, I don't know them for TF2

SixSicSix 07-09-2008 21:02

Re: PunchShot 1.0
 
I tried it on TF2; it wasn't noticeable. PErhaps you could look into it?

Greyscale 07-09-2008 21:34

Re: PunchShot 1.0
 
I don't have a TF2 server.

Hm, change the values to something like 100.0 and see if you notice anything then?

ottobohn 07-10-2008 13:13

Re: PunchShot 1.0
 
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

Greyscale 07-10-2008 14:00

Re: PunchShot 1.0
 
oh well, I guess not all ideas can be winners.

lol.

buaioeae 12-13-2008 01:49

Re: PunchShot 1.0
 
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


All times are GMT -4. The time now is 13:01.

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