Raised This Month: $ Target: $400
 0% 

[L4D] Headshots Only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teddyruxpin
Overseer of lost packets
Join Date: Feb 2008
Old 01-16-2009 , 23:28   [L4D] Headshots Only
Reply With Quote #1

Simple plugin that will only allow players to kill both the common and special infected with headshots. If it cant do special infected even one only allowing headshots on common would be great.

Probably get away with tracking this event and giving back the health if the shot is on any other body part.

http://wiki.alliedmods.net/Left_4_De...#infected_hurt

Thanks,

-Teddy
__________________
Black Tusk Labs Home of Turbo TF2 and Turbo L4D:
http://blacktusklabs.com/ - Mah blog and stuff

My Crappy Plugins: SuperBuilds, Parent Buildables,
L4D Player Info
teddyruxpin is offline
Jamesyoung79
New Member
Join Date: Jan 2009
Old 01-17-2009 , 00:47   Re: [L4D] Headshots Only
Reply With Quote #2

sm_cvar z_non_head_damage_factor_easy "1"
sm_cvar z_non_head_damage_factor_expert "1"
sm_cvar z_non_head_damage_factor_hard "1"
sm_cvar z_non_head_damage_factor_normal "1" //will effect VS also

these Cvars will get the effect you want no plugin needed
Jamesyoung79 is offline
meowmeowduck
New Member
Join Date: Apr 2009
Old 04-07-2009 , 11:38   Re: [L4D] Headshots Only
Reply With Quote #3

I had to make an account just to rectify this blatant fallacy.

The value you want is 0, not 1.


The value is coefficient. 1 means that all damage is unmodified, the default for Easy is 2, meaning you deal 2x damage per shot.

1x damage in each category is completely wrong.


Values are as such, choose as you will

0 - Unkillable without headshot
.01 - Largely unkillable without headshot, but not entirely
.1 - Not entirely unkillable without headshot, but preserves a feeling that the zombies are very difficult to put down without


Common infected have 50 hp ("100" in expert due to .5 coefficient, 67 advanced for its value also).

Divide this 50 by the value you choose to determine their effective HP.

50 / 0 = undefined/infinite
50 / .01 = 5000
50 / .1 = 500


Compare your chosen value to the weapons here http://woodio.net/gaming/8-pc/29-lef...age-guide.html for an idea of how many shots it'll take without a headshot.

(Short reference for point blank/long range)
Pistol - 36 / 13
Uzi - 20 / 11
AR15 - 33 / 29
Shotgun - 25 x 10 / 7 x 10
AutoSG - 25 x 12 / 7 x 12


AR15 can output 30*50 damage (simple average) or 1500 damage in one clip.

At .01, it'll take almost 3 clips to kill a single infected without headshot, at .1 you can kill 3 infected with one clip, or whatever in between .1 and .01.


So you can opt for complete immunity or just "extremely resistent".

The Hunting Rifle is the oddball, as it does 90 damage at all ranges, but can still kill a 100 HP infected in 1 shot, so I'm not sure if it simply "always headshots" or not.
meowmeowduck is offline
Don Punch
Junior Member
Join Date: Mar 2008
Old 08-05-2009 , 22:33   Re: [L4D] Headshots Only
Reply With Quote #4

what file should these values be set in?

sourcemod.cfg?
Don Punch is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-07-2009 , 05:01   Re: [L4D] Headshots Only
Reply With Quote #5

Quote:
Originally Posted by Don Punch View Post
what file should these values be set in?

sourcemod.cfg?
Sourcemod.cfg is loaded every map change, so its a valid place. But server.cfg should work too. And whats wrong with that plugin? 1 Its just a plugin to quickly enable or disable headshots? 2 Its not answer for your question, teddyruxpin asked for such thing, read thread topic name before -carma next time.
__________________
olj is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-06-2009 , 02:49   Re: [L4D] Headshots Only
Reply With Quote #6

http://forums.alliedmods.net/showpos...5&postcount=10
__________________
olj is offline
Zverina
Senior Member
Join Date: Aug 2009
Location: California, USA
Old 08-23-2009 , 05:51   Re: [L4D] Headshots Only
Reply With Quote #7

is there a way to make it so SI need a hs too? when i use those cvars only commons need a hs...
Zverina is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-23-2009 , 11:03   Re: [L4D] Headshots Only
Reply With Quote #8

Quote:
Originally Posted by Zverina View Post
is there a way to make it so SI need a hs too? when i use those cvars only commons need a hs...
Yeas, this works for commons only. You will need extra plugin to block non headshot damage for special infected.
__________________

Last edited by olj; 08-24-2009 at 03:56.
olj is offline
Reply



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 03:20.


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