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

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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:
    3 
    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 - 3315 views - 13.9 KB)
    File Type: sp Get Plugin or Get Source (l4d2_hiar_1.0b.sp - 2955 views - 14.3 KB)

    Last edited by dYZER; 08-13-2010 at 18:59.
    dYZER is offline
     


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


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