This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Hitgroup Restrictions


Post New Thread Reply   
 
Thread Tools Display Modes
Author
patches11
Junior Member
Join Date: Aug 2007
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 08-11-2007 , 16:18   Re: Hitgroup Restrictions
    Reply With Quote #1

    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 #2

    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
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-11-2007 , 18:40   Re: Hitgroup Restrictions
    Reply With Quote #3

    server os is windows
    thats the problem I get no error when my server crashes. The thing is if I dont use this plugin it seems to be fine but when I run this plugin the server crashs after maybe 1 or 2 maps before it crashes about 3 seconds into the map.
    MrSafe is offline
    wewo
    New Member
    Join Date: Aug 2007
    Old 08-16-2007 , 07:28   Re: Hitgroup Restrictions
    Reply With Quote #4

    SO is the consensus that this plugin does not function properly at this time?
    wewo is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-16-2007 , 14:50   Re: Hitgroup Restrictions
    Reply With Quote #5

    Yes from what I understand its causing some serious crashes...
    MrSafe is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-11-2007 , 21:05   Re: Hitgroup Restrictions
    Reply With Quote #6

    Quote:
    Originally Posted by Knagg0 View Post
    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

    What are your server settings?
    MrSafe is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-12-2007 , 01:15   Re: Hitgroup Restrictions
    Reply With Quote #7

    heres my server config

    Quote:
    // YOU MUST RESTART YOUR SERVER AFTER MAKING ANY CHANGES FOR THEM TO BE CHANGED


    //////////////////////////// Server Name and Passwords ////////////////////////////
    // You must keep quotes around the name and passwords or your server will stop working


    // Server Name
    hostname "[PwNd]100TICK 24/7 Random Map HEADSHOT ONLY"

    // Set the rcon Passsword
    rcon_password "********"

    // Set Private Password
    sv_password ""


    ///Headshot mod
    hgr_enable 1
    hgr_hitgroups 1 1 0 0 0 0 0 0 0


    //////////////////////////// Game Variables ////////////////////////////
    // Sets the amount of minutes players are able to buy
    mp_buytime .30

    // Sets the amount of starting money, max=16000
    mp_startmoney 16000

    // Sets the amount of secs before C4 explodes
    mp_c4timer 35

    // 1 enables dynamic pricing, 0 disables it
    mp_dynamicpricing 0

    // 1 enables flashlight, 0 disables it
    mp_flashlight 1

    // 1 enables hearing footsteps, 0 disables it
    mp_footsteps 1

    // 1 enables falling damage, 0 disables it
    mp_falldamage 1

    // Sets the number of hostages a player can kill before they are booted from the server. 0 is disabled
    mp_hostagepenalty 5

    // If enabled, every map change will change the server variables back to the settings in this server.cfg file.
    // Remove the slashes in front of the line below to enable this variable.
    // mapchangecfgfile "server.cfg"

    //Turns all talk on and off
    sv_alltalk 1



    //////////////////////////// TIME, WIN & ROUND SETTINGS ////////////////////////////
    // Timelimit is how many minutes for a map.
    mp_timelimit 15

    // When a team reaches this amount of wins (before the timelimit or the roundlimit is
    // reached), it has won the map. 0=disabled
    mp_winlimit 12

    // When two teams finish playing this amount of rounds (before the timelimit or the
    // winlimit is reached) the map ends. 0=disabled
    mp_maxrounds 15

    // Round time, in minutes. After this amount of minutes has passed,
    // a scenario win is awarded. Min 1, Max 9
    mp_roundtime 2.25

    // Sets the seconds before players can move in the beginning of a round
    mp_freezetime 3



    //////////////////////////// TEAMBALANCING ////////////////////////////
    // Toggles the forcing of clients to join teams to make it balanced. 1=on and 0=off
    mp_autoteambalance 1

    // Sets the maximum number of players that one team can have more than the
    // other team. Use a setting of '0' to completely disable the team limiting.
    mp_limitteams 0



    //////////////////////////// FF & TEAMKILL & IDLE ////////////////////////////
    // Toggles friendly fire 1=on and 0=off
    mp_friendlyfire 1

    // Toggles the forcing of a player to sit out the next round if he
    // has just killed a teammate. 1=on and 0=off
    mp_tkpunish 1

    // Kick idle/team-killing players. 1=on and 0=off
    mp_autokick 1

    // Kick players who team-kill within this many seconds of a round restart.
    mp_spawnprotectiontime 2

    // After this many seconds without a message from a client, the client is dropped
    sv_timeout 65



    //////////////////////////// SPECTATORS ////////////////////////////
    // Restricts spectatorcamera view for dead players. 1=on and 0=off
    mp_forcecamera 0

    // toggles whether the server allows spectator mode or not. 1=on and 0=off
    mp_allowspectators 1



    //////////////////////////// DOWNLOAD ////////////////////////////
    // Allow clients to download files
    sv_allowdownload 1

    // Allow clients to upload customizations files like logospray files
    sv_allowupload 1

    // Sets the maximum size that a map can be to be automatically downloaded
    // Any map under this value can be automatically downloaded by a user
    net_maxfilesize 40

    //Enable this if you have a fastmap download server.
    //sv_downloadurl ""



    //////////////////////////// CHEATS & PAUSE ////////////////////////////
    // Enables cheats
    sv_cheats 0

    // disable clients' ability to pause the server
    sv_pausable 0

    // VOICE disabled, if you want VOICE enabled then change 0 into 1
    sv_voiceenable 1

    //Enforces Server Consistency. Change to 1 to enable. Provides some cheat protection.
    sv_consistency 1

    //Pure Settings (Remove // below to enable) 0 = Little or no Cheat Protection, 1 = Medium Protection, 2 = The Most protection
    sv_pure 0



    //////////////////////////////// Physics ////////////////////////////////
    // Some of these variables require sv_cheats to be 1
    sv_accelerate 5
    sv_airaccelerate 10
    sv_gravity 800
    sv_maxspeed 320
    sv_friction 4

    //Determines how fast objects move when shot
    sv_turbophysics 0

    //This variable determines how an object will fly away from you when shot
    phys_pushscale 1



    //////////////////////////// OTHER SETTINGS ////////////////////////////
    // amount of seconds players can chat after the game is over
    mp_chattime 10

    // if not 0 then game will restart in the specified number of seconds
    mp_restartgame 10

    // Enable/Disable LAN mode
    sv_lan 0

    // 0=US East coast, 1=US West coast, 2= South America, 3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africa and 255=world.
    sv_region 1


    sv_maxspeed 320
    mp_fraglimit 0
    mp_playerid 0


    /////other

    ma_restrict awp 2
    ma_restrict g3sg1 2
    ma_restrict sg550 2
    //ma_restrict m249 0
    //ma_restrict flashbang 0
    //ma_restrict smokegrenade 0
    //ma_restrict hegrenade 0
    //ma_restrict flashbang 0
    //ma_restrict xm1014 0
    //ma_restrict m3 0
    //ma_restrict fiveseven 0
    //ma_restrict glock 0
    //ma_restrict vest 0 // Kevlar
    //ma_restrict vesthelm 0 // Kevlar+Helmet



    //////////////////////////// Execute Config Files ////////////////////////////
    // Exec files on startup

    // loads the existing IP-bans to memory
    exec banned_ip.cfg

    // loads the existing SteamID-bans to memory
    exec banned_user.cfg

    // writes the SteamID-bans to disk
    writeid

    // writes the IP-bans to disk
    writeip

    //Executes Mani configs
    exec mani_server.cfg

    //Executes Mani Quake Sound configs
    exec mani_quake_sounds.cfg

    //Executes Custom Bot Configs
    //exec bot.cfg

    //Enter your own custom config files to execute below this line

    autoexec.cfg //mainly for event scripts

    //////////////////////////// bandwidth rates/settings ////////////////////////////
    // UNLESS YOU REALLY KNOW WHAT YOU ARE DOING
    // PLEASE DO NOT CHANGE THESE SETTINGS
    // THEY HAVE BEEN SET TO GIVE YOUR SERVER THE BEST RESULTS
    // WITH OUT NETWORK. CHANGING THESE SETTINGS MAY CAUSE LAG, CHOKE, OR LOSS.


    sv_maxrate 0 //DONT CHANGE
    sv_minrate 0 //DONT CHANGE
    sv_maxupdaterate 100 //DONT CHANGE
    sv_minupdaterate 10 //DONT CHANGE
    fps_max 600 //DONT CHANGE
    decalfrequency 10 //DONT CHANGE
    MrSafe is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-13-2007 , 15:31   Re: Hitgroup Restrictions
    Reply With Quote #8

    **BUMP**
    MrSafe is offline
    MrSafe
    Junior Member
    Join Date: Aug 2007
    Old 08-11-2007 , 18:44   Re: Hitgroup Restrictions
    Reply With Quote #9

    Quote:
    Originally Posted by patches11 View Post
    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.
    thats is exactly how my crashes happen also
    MrSafe 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 08:35.


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