AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Headshot Only (Updated: v1.0.1, 10/12/08) (https://forums.alliedmods.net/showthread.php?t=78757)

XARIUS 10-10-2008 10:37

Headshot Only (Updated: v1.0.1, 10/12/08)
 
3 Attachment(s)
General:

I saw someone bumped a thread in Unapproved regarding a headshot only plugin. Here ya go.

Info:

This plugin will prevent all damage except headshots! It uses some built in HL2 sounds for the headshot effects. No downloading or adding sounds is required. You can choose to have these sounds emitted ambiently to all players from the victim, or have them played only to the attacker. Either way, it's a fun way to indicate a headshot. You can also choose to use your own sounds instead of the ones I've included in the code.

Usage:

Sit back and have fun.

Installation:
  • Copy headshotonly.smx to addons/sourcemod/plugins/
  • Copy headshotonly.sp to addons/sourcemod/scripting/
  • Copy headshotonly.phrases.txt to addons/sourcemod/translations/
  • Optional custom sounds go in /sound/headshotonly/
  • headshotonly.cfg will automatically be created in /cfg/sourcemod/
Configuration:
  • sm_headshotonly_enabled - Enables or disables this plugin. (Default: 1)
  • sm_headshotonly_useambient - Use ambient headshot sounds. 0 = Emit sound from victim only to attacker. (Default: 1)
  • sm_headshotonly_sounds - Sound files used to indicate headshots. (Max: 5) Leave blank for default sounds.
Notes:

There is an odd issue when CS calculates armor damage. Even when body shots occur, you will lose one armor point per body shot.

The default sounds are kinda cool. They're squishy fleshy melon crushing sounds from HL2 which go well with getting shot in the head. If you decide to use your own sounds, the default squishy sounds won't be used. I feel like less of a man using the word squishy so much.

Changelog:

Version 1.0.1:

Minor code cleanup. Allow damage from world (falls etc..)

Version 1.0:

Public Release.

Known Issues:

None that I know of!

saulstari 10-10-2008 11:35

Re: Headshot Only
 
thanks, im goin to try it out.

XARIUS 10-10-2008 11:56

Re: Headshot Only
 
Edit: Don't want to give anyone the wrong ideas. This won't work with any mod but CSS currently. =)

FeuerSturm 10-10-2008 12:06

Re: Headshot Only
 
Just 2 comments:

1.) That won't work with any other mod as long as you just use "CCSPlayer", you'd include a Mod detection and then use "CTFPlayer" etc.

2.) Just in case someone asks, this will NOT work for DoD: Source,
as we got several instant kill weapons in that Mod :wink:

XARIUS 10-10-2008 12:28

Re: Headshot Only
 
Quote:

Originally Posted by FeuerSturm (Post 697882)
Just 2 comments:

1.) That won't work with any other mod as long as you just use "CCSPlayer", you'd include a Mod detection and then use "CTFPlayer" etc.

2.) Just in case someone asks, this will NOT work for DoD: Source,
as we got several instant kill weapons in that Mod :wink:

Duh good point! Totally skipped the CSSPlayer bits. =)

Maybe in the future I'll do some mod detection.

X

fpsbrian 10-10-2008 18:31

Re: Headshot Only
 
great mod! love the sound effect added!

abelp 10-11-2008 01:45

Re: Headshot Only
 
support for tf2

XARIUS 10-11-2008 09:33

Re: Headshot Only
 
Quote:

Originally Posted by abelp (Post 698196)
support for tf2

Once this one has made the rounds, I'd be more than happy to update it for TF2. As long as it has a headshot hitbox, we should be good to go. =)

stevieboy 10-12-2008 07:57

Re: Headshot Only
 
We would be interested to have such a plugin for TF2 on our sniper maps as well!

It'd be great if you could look into it.

XARIUS 10-12-2008 08:49

Re: Headshot Only
 
After a quick search through the game events for TF2, I don't see anything similar to a hitgroup that I can hook into. Can anyone with TF2 SM experience confirm this?

XARIUS 10-12-2008 10:51

Re: Headshot Only
 
Updated to 1.0.1, see changelog. (sorry, it's not TF2 support!)

x16 12-25-2008 20:02

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Great mod.
What i have to do when i dont want that this plugin to start when i start my server? I want to start my self (by writing in console).
Thanks

subnoizey 03-17-2009 03:09

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Hey mate, just installed this and wondering how i get rid of the mellon squishing sound? i was just the basic source sounds.

currently the config looks like this

sm_headshotonly_enabled "1"
sm_headshotonly_sounds "0"
sm_headshotonly_useambient "0"

subnoizey 03-18-2009 03:36

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
anybody help ?

Cooltad 03-19-2009 06:46

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
You could do a hack mod of this for tf2 where you disable the hook for a death, but enable it only for the customkill == 1 event. it's possible, but would be a lot of trouble to do, so do this instead!::

Disable damage for all weapons and shots, except for critical shots as sniperrifle. Since you can only get a critical shot from an hs, this method should be much, much easier.

Like if calciscritical && sniperrifle.

cybersquare420 03-19-2009 14:33

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
i have a humble request... i run a coupleTF2 100% crit servers, and it would be nice if the snipers were limited to head shot when using the sniper rifle. I don't know if this would be difficult, but it would be nice if the body shotters were forced to use a little skill...

thanx in advance, and i promise karma :)

Cooltad 03-19-2009 14:37

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Quote:

Originally Posted by cybersquare420 (Post 784565)
i have a humble request... i run a coupleTF2 100% crit servers, and it would be nice if the snipers were limited to head shot when using the sniper rifle. I don't know if this would be difficult, but it would be nice if the body shotters were forced to use a little skill...

thanx in advance, and i promise karma :)

I fixed that a while ago with a plugin I have.

cybersquare420 03-20-2009 12:44

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
any one?? please?? it would be the perfect thing for my situation... i would be ever so grateful...!!

iiimajiebojiokho 04-04-2009 18:38

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
hi! plz mr.programmer add in plugins options allow kill knife & he granade...i whant kill whis weapons

Snake60 04-11-2009 23:17

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Quote:

Originally Posted by iiimajiebojiokho (Post 797559)
hi! plz mr.programmer add in plugins options allow kill knife & he granade...i whant kill whis weapons

Yes, it will be cool! Can anybody do it?

XARIUS 05-06-2009 12:42

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Hi all. I'll try and update this plugin in the near future. I've been away for while and have just gotten back into the swing of things.

GrossKopf 08-01-2009 19:49

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Has anyone tried this with L4D?

tejeskifly 09-08-2009 13:50

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Hi
i want to take the on/off function in admin menu, but dont work :/
I don't see the Headshot only menu in admin menu.
Code:

     

 "admin"        "sm_kick"
        "Headshot only"
        {
            "cmd"        "sm_headshotonly_enabled #1"
            "admin"        "sm_ban"
            "execute"    "server"
            "1"
            {
                "type"        "onoff"
                "title"        "HS only:"
            }
        }

Code:

     
  "admin"        "sm_kick"
        "Headshot only"
        {
            "cmd"        "sm_headshotonly_enabled #1"
            "admin"        "sm_kick"
            "execute"    "server"
            "1"
            {
                "type"        "list"
                "title"        "HS only:"
                "1"        "1"
                "1."        "ON"
                "2"        "0"
                "2."        "OFF"
            }
        }

pls help!!

BentByBogus 06-26-2010 13:56

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Yes would it be possible to implement knifing as well?
Right now its not possible.
Thanks!

Nissan3501 06-28-2010 05:14

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
"Headshot"
{
"admin" "sm_kick"
"Headshot only"
{
"cmd" "sm_headshotonly_enabled #1"
"admin" "sm_kick"
"execute" "server"
"1"
{
"type" "list"
"title" "HS only:"
"1" "1"
"1." "ON"
"2" "0"
"2." "OFF"
}
}
}

pandaking 07-24-2010 06:24

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Working fairly well for me, but I agree that adding knife kills would be good.

If anyone wants to try this out, my server is:
94.76.221.36:21337

Thanks for the plugin.

skabull 01-31-2011 19:50

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Hello,

Is it possible to update the plugin so that players can kill with a knife.

And if possible let the player's suicide when he falls from too high.

Because sometimes a player in a map falls into a hole and he does not die ^ ^

Thank you for reading and can be helped ^ ^

skabull 02-03-2011 17:12

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Please add the ability to kill with the knife ...:wink:

pandaking 02-06-2011 14:56

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
I am getting a bug with this, although not sure if it is due to incompatibility with CSSDM.

When it's enabled, sometimes the gun will disappear on the players screen. The guns still work fine, but there's nothing other than crosshairs on the screen. As you can imagine this is a little disconcerting.
Also, sometimes it causes guns to "follow people around". Kind of hard to explain, but when you look down there's like a deagle or something that just moves with you.
This bug can be see on other peoples screens, where the first bug only effects the player it is happening to.

Any clues?
The bug happens randomly and quite rarely, but often enough for most times I play to hear someone asking where there guns are.

skabull 02-12-2011 03:47

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Hello,

Since the passage of CSS under orangebox many plugins cause this bug, I've had several cases where after the installation of a plugin, weapons randomly disappearing from the screen of players ...

pandaking 02-14-2011 09:18

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Good to see I'm not alone. All the same it would be nice for it to be fixed...

skabull 03-24-2011 19:06

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Please add the ability to kill with the knife ...

pandaking 04-20-2011 16:04

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Yea, it would be awesome if we could still knife kill with this plugin.

SpirAngel 06-14-2011 09:03

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Hi,

I developed a similar plugin that allows killing with the knife. You'll find it here :
https://forums.alliedmods.net/showthread.php?t=159187

DREAD_XI 08-21-2011 16:03

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Our clan Just needs a working plugin that will make server headshots only.
Need to be able to enable and disable the plugin in the map.cfg so it can be forced on when a sniper map starts and off when another type comes in rotation. A class changer I believe is already developed but I have yet to put time into searching for that.
I have been all threw this site and searched google for quite some time now without a working solution to be found by me.

If you would like to test the server I have had controll and been re working our clan server for a week or so now.

68.232.184.218:27015 >XI< MIXED MAPS & TRADE !bp FAST DL (hlstatsx)

DREAD_XI 08-21-2011 16:24

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Found it thanks anyway guys!

Quote:

Originally Posted by cybersquare420 (Post 1181232)

I searched TF2 Headshots only and could not find that link earlier at all!

XD that is why we are the Xtremeidiots!

(www.xtremeidiots.com)

qWax 07-06-2012 07:45

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Can you update?

Tato 08-03-2012 22:46

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Could you please add it for each team, so that we could use it for one specific team only. Would really appreciate it! Thanks.

Ejziponken 02-17-2014 08:28

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
Did this plugin break with latest updates?

keyboard_airflow 03-12-2016 22:28

Re: Headshot Only (Updated: v1.0.1, 10/12/08)
 
for some reason it is not automatically creating cfg in folder. I'm so stuck i just want my server up and running.


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

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