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?


All times are GMT -4. The time now is 19:03.

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