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