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

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    17 
    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, 6922 views)
    File Type: sp Get Plugin or Get Source (headshotonly.sp - 15371 views - 5.3 KB)
    File Type: zip headshotonly.zip (8.6 KB, 17662 views)
    __________________

    Last edited by XARIUS; 10-12-2008 at 11:27.
    XARIUS is offline
     



    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 00:02.


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