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

Hitgroup Restrictions


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Plugin ID:
28
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    With this plugin you can restrict hitgroups. When you hit a player on a restricted hitgroup, he doesn't get any damage.
    Unapprover:
    Reason for Unapproving:
    Tested this and it causes crashes. Also appears to be abandoned / unsupported.
    Old 06-16-2007 , 03:13   Hitgroup Restrictions
    Reply With Quote #1

    REQUIREMENTS:CVARS:
    • hgr_enable
      • Enables/disables this plugin
      • Default: 1
    • hgr_hitgroups
      • With that you can edit the restrictions
      • Usage: 1 = Allow - 0 = Restrict
      • Default: "1 1 1 1 1 1 1 1 1"
    • hgr_chatcmd
      • Chat command to display the restrictions
      • Default: "/hitgroups"
    CHANGELOG:
    • 0.1.0 (6/16/07)
      • Release
    Attached Files
    File Type: zip hgr.zip (5.1 KB, 1405 views)
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]


    Last edited by Knagg0; 06-30-2007 at 11:55.
    Knagg0 is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-16-2007 , 06:59   Re: [PLUGIN] Hitgroup Restrictions
    Reply With Quote #2

    i was expecting someone to make this, a lot of clans out there want this kind of thing to practice headshots. Good work.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    CoolPeter
    Member
    Join Date: Nov 2005
    Old 07-20-2007 , 10:08   Re: Hitgroup Restrictions
    Reply With Quote #3

    Big thanks!!!!
    I was searching for a plugin like this a long time!
    Works great
    CoolPeter is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-09-2007 , 03:11   Re: Hitgroup Restrictions
    Reply With Quote #4

    every time i run this it works fine for the map that it is enabled on but on the map change my server crashes this only happens with source mod.
    MrSafe is offline
    patches11
    Junior Member
    Join Date: Aug 2007
    Old 08-09-2007 , 04:52   Re: Hitgroup Restrictions
    Reply With Quote #5

    I looked through the code some, my best guess is that it's because hooks aren't being released and re-established when needed. This plugin (and perhaps even Sourcemod in general) isn't stable enough for use.
    patches11 is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-09-2007 , 05:10   Re: Hitgroup Restrictions
    Reply With Quote #6

    so it could be either source mod or this mod?
    MrSafe is offline
    patches11
    Junior Member
    Join Date: Aug 2007
    Old 08-09-2007 , 05:28   Re: Hitgroup Restrictions
    Reply With Quote #7

    As best as I can tell, yes. I honestly don't know, I've been trying to get my server up and running stable, and I was having weird problems while running Sourcemod with my own custom scripts. No way to know whether I was doing any of it right. I'm giving it another shot... If I get this plugin to work okay, I'll post it here.
    patches11 is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-09-2007 , 05:58   Re: Hitgroup Restrictions
    Reply With Quote #8

    thank you. Because my server crashes when I have this mod running. I want source mod to grow because of its versatility and power.
    MrSafe is offline
    patches11
    Junior Member
    Join Date: Aug 2007
    Old 08-11-2007 , 16:18   Re: Hitgroup Restrictions
    Reply With Quote #9

    The reason I want this to work is because player_hurt doesn't get hitgroup information, and I'm trying to get headshot hitsounds, not just a headshot sound when someone dies. What's really weird though, is that I had this working under EventScripts at one point, so in light of this, I created a new event player_hurt_x and had ES fire it off to SourceMod (which is really cool), but it wasn't including hitgroup information, and then when I tried my ES script that was working, normal hitsounds worked but headshot sounds had stopped working. My best guess is that I was running a plugin or script or something that added hitgroup information to the player_hurt event before EventScripts got it. I really wish I could figure that one out.

    As far as actual hitgroup restrictions, this script is based off of a hack extension, and despite my best efforts, I haven't been able to get it to run stable. The hitgroups works for a while, and then it quits working after anywhere from a couple minutes to about 20 minutes with varying server loads. I wish the author of this thing would return to life and take a look at it

    On the upside, when not running this script, SourceMod appears to be running just fine, no weird crashes or anything.
    patches11 is offline
    Knagg0
    SourceMod Donor
    Join Date: Dec 2005
    Location: Germany
    Old 08-11-2007 , 16:34   Re: Hitgroup Restrictions
    Reply With Quote #10

    It runs fine for me on 2 servers... What doesn't work for you? Server OS? What error do you get?

    Btw. this is the player_hurt event for CS:S

    Code:
    	"player_hurt"
    	{
    		"userid"	"short"   	// player index who was hurt
    		"attacker"	"short"	 	// player index who attacked
    		"health"	"byte"		// remaining health points
    		"armor"		"byte"		// remaining armor points
    		"weapon"	"string"	// weapon name attacker used, if not the world
    		"dmg_health"	"byte"	// damage done to health
    		"dmg_armor"	"byte"		// damage done to armor
    		"hitgroup"	"byte"		// hitgroup that was damaged
    	}
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]


    Last edited by Knagg0; 08-11-2007 at 16:36.
    Knagg0 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:27.


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