Raised This Month: $14 Target: $400
 3% 

No Headshot With Helmet v1.1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 06-14-2007 , 12:13   No Headshot With Helmet v1.1.0
Reply With Quote #1

Info:
When player has a helmet he can't be killed by headshot.

Requirements:
* CS/CZ mod
* AMX/X 1.7x or higher
* CStrike module
* Fakemeta module

New cvars:
* amx_superhelmet_when_armor <num> (default=0)
set armor threshold when helmet acts as shield

Credits:
* Cheap_Suit for 'hitgroup 8' idea

Changelog:
v1.1.0 [2007-06-22]
+ added cvar 'amx_superhelmet_when_armor'
+ helmet can act as shield (req. by Stixsmaster)
* optimized core as XxAvalanchexX suggested (experimental; actually stable)
Attached Files
File Type: sma Get Plugin or Get Source (no_hs_with_helmet.sma - 8849 views - 2.1 KB)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 11-26-2008 at 13:19.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-14-2007 , 12:19   Re: No Headshot With Helmet
Reply With Quote #2

Nice !
__________________
Arkshine is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-14-2007 , 13:14   Re: No Headshot With Helmet
Reply With Quote #3

If you want a ricochet effect you can try hitgroup 8 which is the shield.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-14-2007 , 13:46   Re: No Headshot With Helmet
Reply With Quote #4

I would register TraceLine as a post hook, and then you can use get/set_tr2 on the ptr handler passed, instead of retracing your own.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
godlike
Senior Member
Join Date: Apr 2005
Old 06-14-2007 , 16:14   Re: No Headshot With Helmet
Reply With Quote #5

i dont get it , so when i shoot someone in the head and he got a helmet he doesnt get killed at all? Does it do the same damage or what?
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 06-14-2007 , 19:01   Re: No Headshot With Helmet
Reply With Quote #6

This is good idea, but then helmet must cost more than it does cost as default.
[X]-RayCat is offline
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 06-14-2007 , 21:23   Re: No Headshot With Helmet
Reply With Quote #7

I think what it does is cause sum damage but not an instant kill like in real life...

---Stixsmaster

P.S. I would like the ricochet effect added if that is ok...
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 06-15-2007 , 06:31   Re: No Headshot With Helmet
Reply With Quote #8

@Cheap_Suit
But then you can't kill a player at all shooting at his head. Right?

@XxAvalanchexX - see PM.

@godlike
It does damage but no headshot (instant kill) available. Stixsmaster is right.

@[X]-RayCat
Actually i did it for CSDM because Helmet presence has minor sense. So i will not bother with buying & price.

I have a plan to improve this version when you shoot at victim's face to make 50/50 chance for headshot.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 06-21-2007 , 13:43   Re: No Headshot With Helmet
Reply With Quote #9

Sounds useful. Maybe set a pcvar for less damage or no damage. I know i wouldn't mind playing some CSDM with anti-headshot helmets.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 06-21-2007 , 14:24   Re: No Headshot With Helmet
Reply With Quote #10

yea same...

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
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 06:38.


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