AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Headshots in a row (!hiar with snd/stats) v1.0 (https://forums.alliedmods.net/showthread.php?t=132447)

dYZER 07-15-2010 08:26

[L4D2] Headshots in a row (!hiar with snd/stats) v1.0
 
2 Attachment(s)
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

dimon222 07-15-2010 11:14

Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
 
is there possible to use nonstandart sounds?
and they will be downloaded or need special plugin for downloading?

dYZER 07-15-2010 15:22

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

Originally Posted by dimon222 (Post 1240139)
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

dimon222 07-15-2010 16:50

Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
 
pfff, i totally confused, some questions
Quote:

Originally Posted by dYZER (Post 1240455)
^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?

dYZER 07-15-2010 18:46

Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
 
1 Attachment(s)
Quote:

Originally Posted by dimon222 (Post 1240551)
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?)

blitzzz 07-30-2010 14:14

Re: [L4D2] Headshots in a row (!hiar with snd/stats) v1.0
 
Is there a way to make the announcements show only to admins?


All times are GMT -4. The time now is 09:48.

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