Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Plugin ID:
571
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    15 
    Plugin Description:
    Plugin which prevents all damage but headshots.
    Old 10-10-2008 , 10:37   Headshot Only (Updated: v1.0.1, 10/12/08)
    Reply With Quote #1

    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!
    Attached Files
    File Type: txt headshotonly.phrases.txt (165 Bytes, 6919 views)
    File Type: sp Get Plugin or Get Source (headshotonly.sp - 15357 views - 5.3 KB)
    File Type: zip headshotonly.zip (8.6 KB, 17651 views)
    __________________

    Last edited by XARIUS; 10-12-2008 at 11:27.
    XARIUS is offline
    saulstari
    Member
    Join Date: Jan 2006
    Old 10-10-2008 , 11:35   Re: Headshot Only
    Reply With Quote #2

    thanks, im goin to try it out.
    saulstari is offline
    XARIUS
    SourceMod Donor
    Join Date: May 2008
    Location: Atlanta, GA
    Old 10-10-2008 , 11:56   Re: Headshot Only
    Reply With Quote #3

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

    Last edited by XARIUS; 10-10-2008 at 12:30.
    XARIUS is offline
    FeuerSturm
    AlliedModders Donor
    Join Date: Apr 2004
    Old 10-10-2008 , 12:06   Re: Headshot Only
    Reply With Quote #4

    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
    FeuerSturm is offline
    XARIUS
    SourceMod Donor
    Join Date: May 2008
    Location: Atlanta, GA
    Old 10-10-2008 , 12:28   Re: Headshot Only
    Reply With Quote #5

    Quote:
    Originally Posted by FeuerSturm View Post
    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
    Duh good point! Totally skipped the CSSPlayer bits. =)

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

    X
    __________________
    XARIUS is offline
    fpsbrian
    Senior Member
    Join Date: Feb 2008
    Old 10-10-2008 , 18:31   Re: Headshot Only
    Reply With Quote #6

    great mod! love the sound effect added!
    __________________
    fpsbrian is offline
    abelp
    Senior Member
    Join Date: May 2008
    Old 10-11-2008 , 01:45   Re: Headshot Only
    Reply With Quote #7

    support for tf2
    abelp is offline
    XARIUS
    SourceMod Donor
    Join Date: May 2008
    Location: Atlanta, GA
    Old 10-11-2008 , 09:33   Re: Headshot Only
    Reply With Quote #8

    Quote:
    Originally Posted by abelp View Post
    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. =)
    __________________
    XARIUS is offline
    stevieboy
    Member
    Join Date: Feb 2008
    Old 10-12-2008 , 07:57   Re: Headshot Only
    Reply With Quote #9

    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.
    __________________
    stevieboy is offline
    XARIUS
    SourceMod Donor
    Join Date: May 2008
    Location: Atlanta, GA
    Old 10-12-2008 , 08:49   Re: Headshot Only
    Reply With Quote #10

    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 is offline
    Reply


    Thread Tools
    Display Modes

    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 09:04.


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