Raised This Month: $182 Target: $400
 45% 

[L4D2] Headshots in a row (!hiar with snd/stats) v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dYZER
Member
Join Date: Jan 2010
Location: Germany
Plugin ID:
1808
Plugin Version:
1.0
Plugin Category:
Statistical
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    Count and play Sound by headshots in a row
    Old 07-15-2010 , 08:26   [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
    Reply With Quote #1

    Info:
    hi headhunters,
    this plugin counting "Headshots kills/hits" in l4d2/l4d(?) and plays a sound at a given row,and display some stats..

    credits:
    thnx TeddyRuxpin (!zinfo)
    http://forums.alliedmods.net/showthread.php?t=84607 i modded a little with the sources


    example
    chat outputs

    [l4d2_hiarnfo "1"] automatic print2chat at a row [l4d2_hiarow1 "10"]

    with stats
    [l4d2_hiarnfows "1"] :
    Code:
    [!hiar] dYZER at 10 Headhots: 67/177 hits 38% | 33/39 kills 85%
    without [l4d2_hiarnfows "0"] :
    Code:
    [!hiar] dYZER makes 10 Headshots in a row
    + with sound [l4d2_hiarsnd "1"] at row [l4d2_hiarow1 "10"] soundfile [l4d2_hiarsound10 "npc/moustachio/strengthlvl1_littlepeanut.wav"]

    chat Trigger !hiar

    Public yes or now
    Code:
    [l4d2_hiarnfopub "1"] puplic:[!hiar] dYZER at 10 Headhots: 67/177 hits 38% | 33/39 kills 85%
    [l4d2_hiarnfopub "0"] private:[!hiar] You are at 10 Headhots: 67/177 hits 38% | 33/39 kills 85%
    Center display Counter
    [l4d2_hiarnfoc "1"] :display at the center (above ur crosshair) a number of the current headshot-kill strike, thats starts up and count at [l4d2_hiarcount "5"] in a row 6/7/...

    Note: if u kill an infected without a headshot, the counter reset to "0"

    HookEvent
    infected_death
    infected_hurt
    player_first_spawn //setup new player
    player_spawn //reset heads in a row, ONLY ( yes its counts so long ur connect to the game!)

    cvars
    l4d2_hiar.cfg (will be created)
    PHP Code:
    // Headshots in a row (0=Disable,1=Enable)
    // -
    // Default: "1"
    l4d2_hiar "1"

    // Start Counter for the Centerinfo
    // -
    // Default: "5"
    l4d2_hiarcount "5"

    // Auto announce at given rows (0=Disable,1=Enable)
    // -
    // Default: "1"
    l4d2_hiarnfo "1"

    // announce Center current Headshots kills(0=Disable,1=Enable)
    // -
    // Default: "1"
    l4d2_hiarnfoc "1"

    // announce Stats public by trigger !hiar (0=Private,1=All)
    // -
    // Default: "1"
    l4d2_hiarnfopub "1"

    // Auto announce at given rows with Stats (0=Disable,1=Enable)
    // -
    // Default: "1"
    l4d2_hiarnfows "1"

    // 1 row
    // -
    // Default: "10"
    l4d2_hiarow1 "10"

    // 2 row
    // -
    // Default: "20"
    l4d2_hiarow2 "20"

    // 3 row
    // -
    // Default: "30"
    l4d2_hiarow3 "30"

    // 4 row
    // -
    // Default: "40"
    l4d2_hiarow4 "40"

    // 5 row
    // -
    // Default: "50"
    l4d2_hiarow5 "50"

    // 6 row
    // -
    // Default: "60"
    l4d2_hiarow6 "60"

    // play sound at the given row (0=Disable,1=Enable)
    // -
    // Default: "1"
    l4d2_hiarsnd "1"

    // Plays that sound file at the 1 row
    // -
    // Default: "npc/moustachio/strengthlvl1_littlepeanut.wav"
    l4d2_hiarsound10 "npc/moustachio/strengthlvl1_littlepeanut.wav"

    // Plays that sound file at the 2 row
    // -
    // Default: "npc/moustachio/strengthlvl2_babypeanut.wav"
    l4d2_hiarsound20 "npc/moustachio/strengthlvl2_babypeanut.wav"

    // Plays that sound file at the 3 row
    // -
    // Default: "npc/moustachio/strengthlvl3_oldpeanut.wav"
    l4d2_hiarsound30 "npc/moustachio/strengthlvl3_oldpeanut.wav"

    // Plays that sound file at the 4 row
    // -
    // Default: "npc/moustachio/strengthlvl4_notbad.wav"
    l4d2_hiarsound40 "npc/moustachio/strengthlvl4_notbad.wav"

    // Plays that sound file at the 5 row
    // -
    // Default: "npc/moustachio/strengthlvl5_sostrong.wav"
    l4d2_hiarsound50 "npc/moustachio/strengthlvl5_sostrong.wav"

    // Plays that sound file at the 6 row
    // -
    // Default: "npc/moustachio/strengthbreakmachine.wav"
    l4d2_hiarsound60 "npc/moustachio/strengthbreakmachine.wav" 
    hmm bug or not, melee weapons can do head(shots)

    fix/help
    fix> moly/pipebomb | hold hiar stats
    custom soundtest use the (v1.0b) and report if its working

    hmm bug or not, but yes u can do headhunting with melee!


    happy hunting Headhunters
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_hiar.sp - 1915 views - 13.9 KB)
    File Type: sp Get Plugin or Get Source (l4d2_hiar_1.0b.sp - 1599 views - 14.3 KB)

    Last edited by dYZER; 08-13-2010 at 18:59.
    dYZER is offline
    dimon222
    Member
    Join Date: Jun 2010
    Location: Hell
    Old 07-15-2010 , 11:14   Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
    Reply With Quote #2

    is there possible to use nonstandart sounds?
    and they will be downloaded or need special plugin for downloading?
    __________________
    dimon222 is offline
    Send a message via ICQ to dimon222 Send a message via MSN to dimon222 Send a message via Skype™ to dimon222
    dYZER
    Member
    Join Date: Jan 2010
    Location: Germany
    Old 07-15-2010 , 15:22   Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
    Reply With Quote #3

    Quote:
    Originally Posted by dimon222 View Post
    is there possible to use nonstandart sounds?
    ^yes tested with an .mp3 file
    Quote:
    and they will be downloaded or need special plugin for downloading?
    not supported, cuz need to edit some server files whitelist or else
    dYZER is offline
    dimon222
    Member
    Join Date: Jun 2010
    Location: Hell
    Old 07-15-2010 , 16:50   Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
    Reply With Quote #4

    pfff, i totally confused, some questions
    Quote:
    Originally Posted by dYZER View Post
    ^yes tested with an .mp3 file
    So. Possible only select from l4d2 game files mp3? Not allowed to download "headshot.mp3" somewhere in internet and use it?
    __________________
    dimon222 is offline
    Send a message via ICQ to dimon222 Send a message via MSN to dimon222 Send a message via Skype™ to dimon222
    dYZER
    Member
    Join Date: Jan 2010
    Location: Germany
    Old 07-15-2010 , 18:46   Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
    Reply With Quote #5

    Quote:
    Originally Posted by dimon222 View Post
    pfff, i totally confused, some questions

    So. Possible only select from l4d2 game files mp3? Not allowed to download "headshot.mp3" somewhere in internet and use it?
    take a look at http://forums.alliedmods.net/showthread.php?t=130823

    or try the v1.0b-beta version untested, cuz i got no dedicatet server , (and local cant download same files, if there allready exist?)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_hiar_1.0b.sp - 869 views - 14.3 KB)

    Last edited by dYZER; 08-13-2010 at 19:00.
    dYZER is offline
    blitzzz
    Member
    Join Date: Mar 2010
    Old 07-30-2010 , 14:14   Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
    Reply With Quote #6

    Is there a way to make the announcements show only to admins?
    blitzzz 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 18:41.


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