AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   No Headshot With Helmet v1.1.0 (https://forums.alliedmods.net/showthread.php?t=56475)

Simon Logic 06-14-2007 12:13

No Headshot With Helmet v1.1.0
 
1 Attachment(s)
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)

Arkshine 06-14-2007 12:19

Re: No Headshot With Helmet
 
Nice ! :)

Cheap_Suit 06-14-2007 13:14

Re: No Headshot With Helmet
 
If you want a ricochet effect you can try hitgroup 8 which is the shield.

XxAvalanchexX 06-14-2007 13:46

Re: No Headshot With Helmet
 
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.

godlike 06-14-2007 16:14

Re: No Headshot With Helmet
 
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?

[X]-RayCat 06-14-2007 19:01

Re: No Headshot With Helmet
 
This is good idea, but then helmet must cost more than it does cost as default.

Stixsmaster 06-14-2007 21:23

Re: No Headshot With Helmet
 
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...

Simon Logic 06-15-2007 06:31

Re: No Headshot With Helmet
 
@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.

soccdoodcss 06-21-2007 13:43

Re: No Headshot With Helmet
 
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.

Stixsmaster 06-21-2007 14:24

Re: No Headshot With Helmet
 
yea same...

---Stixsmaster

Simon Logic 06-22-2007 11:43

Re: No Headshot With Helmet v1.1.0
 
Updated:

v1.1.0 [2007-06-22]
+ added cvar 'amx_superhelmet_when_armor'
+ kevlar can act as shield (req. by Stixsmaster)
* optimized core as XxAvalanchexX suggested (experimental)

HeXeN 07-22-2007 01:46

Re: No Headshot With Helmet v1.1.0
 
is it possible to make it work for sum ppl. not all. if u kno what i meen

Simon Logic 07-31-2007 06:27

Re: No Headshot With Helmet v1.1.0
 
e.g. for admins only? or custom?

HeXeN 08-23-2007 22:18

Re: No Headshot With Helmet v1.1.0
 
ya is it?

Simon Logic 08-25-2007 09:40

Re: No Headshot With Helmet v1.1.0
 
it's unfair, i don't like it

IntelliQ 08-25-2007 10:45

Re: No Headshot With Helmet v1.1.0
 
this is brilliant. :)

too bad i dont play cs.

i will suggest this one in the SUGGESTION category to make it work for HLDM. (Instead of buying helmet, maybe they could be picked up like other things: weapons, hev, etc etc....and when u pick one up it goes on your head? when u get shot more than 2 times it flies off your head? )

Simon Logic 11-23-2007 07:54

Re: No Headshot With Helmet v1.1.0
 
Quote:

Originally Posted by IntelliQ (Post 523118)
too bad i dont play cs.

Play CSDM with Item Mode turned on. It's so awesome that i haven't been playing HLDM anymore for about a year.

Quote:

Originally Posted by IntelliQ (Post 523118)
i will suggest this one in the SUGGESTION category to make it work for HLDM. (Instead of buying helmet, maybe they could be picked up like other things: weapons, hev, etc etc....and when u pick one up it goes on your head? when u get shot more than 2 times it flies off your head? )

It has nothing to do with this plugin & actually much more complex. Also there are no headshots in HLDM.

letgoofmyeggs 07-26-2008 00:10

Re: No Headshot With Helmet v1.1.0
 
wats the cvar to turn it off

Simon Logic 07-31-2008 05:11

Re: No Headshot With Helmet v1.1.0
 
The is no cvar. You can just pause the plugin.

smgcz 11-24-2008 23:36

Re: No Headshot With Helmet v1.1.0
 
Is there a way to allow certain weapons to be allowed for a normal headshot. I am thinking the pump shotgun for cz. Its hard enough to kill someone with the pump shotty. Or is there a line I can add to the .sma to ignore the no headshot plugin while using the pump shotty? If I can add a line where would the exact placement of the line go? Great plugin btw, works well on cz. Thanks, smgcz :)

cs1.7 12-11-2008 03:26

Re: No Headshot With Helmet v1.1.0
 
could you make a version where this is not the regular helmet, but it's a special item? then it has to be bought seperately. the regular cs helmet from the cs buy menu is then just a normal helmet.

Player: /buy_anti_hs_helmet

Concept~ 12-11-2008 11:25

Re: No Headshot With Helmet v1.1.0
 
Excelent, CSS Style =P

ConnorMcLeod 12-11-2008 16:40

Re: No Headshot With Helmet v1.1.0
 
Why don't use Ham_TrecaAttack instead of Traceline ?
PHP Code:

    RegisterHam(Ham_TraceAttack"player""Player_TraceAttack")
}

public 
Player_TraceAttack(ididattackerFloat:damageFloat:fDirection[3], ptrdamagebits)
{
    if( 
get_tr2(ptrTR_iHitgroup) == HIT_HEAD )
    {
        static 
Float:flArmor
        pev
(idpev_armorvalueflArmor)

        if( 
flArmor >= && get_pdata_int(id112) == )
        {
            if( 
get_pcvar_float(g_cvarSHelmetThreshold) < flArmor )
                
set_tr2(ptrTR_iHitgroupHIT_SHIELD)
            else
                
set_tr2(ptrTR_iHitgroupHIT_GENERIC)
        }
    }



Owyn 06-29-2009 13:02

Re: No Headshot With Helmet v1.1.0
 
if hit by knife in the head i still see blood and no shield effect =\

Simon Logic 06-30-2009 04:52

Re: No Headshot With Helmet v1.1.0
 
Quote:

Originally Posted by ConnorMcLeod (Post 726058)
Why don't use Ham_TrecaAttack instead of Traceline ?

Because on 14-06-07 there was no sign about HS :)

Quote:

Originally Posted by .Owyn. (Post 860146)
if hit by knife in the head i still see blood and no shield effect =\

I see no problems here. Plugin named "No Headshot" should block bullet hits only.

alias_retaer 07-11-2009 11:18

Re: No Headshot With Helmet v1.1.0
 
Quote:

set armor threshold when helmet acts as shield
can someone say it simply... ?
I cant undrestand it... xax :D

almaro 09-15-2011 20:33

Re: No Headshot With Helmet v1.1.0
 
Brilliant idea! More realistic.

May I add the feature in this plugins:
- Yes, no HS when using helmet
- But the helmet will be stripped off when receiving HS (protect for one HS only), emit sound "DANG!" for the player only and show "HELMET PROTECTION! You have lost helmet protection" or something like that
- Of course players can buy the helmet again if he can reach buy zone

- I would like to exclude AWP from helmet, but the code would become complicated at unnecessary extent (slow down the server)
- I don't care if knife HS can't be protected by helmet.

KingJTellem 04-14-2013 09:04

Re: No Headshot With Helmet v1.1.0
 
Quote:

Originally Posted by almaro (Post 1556098)
Brilliant idea! More realistic.

May I add the feature in this plugins:
- Yes, no HS when using helmet
- But the helmet will be stripped off when receiving HS (protect for one HS only), emit sound "DANG!" for the player only and show "HELMET PROTECTION! You have lost helmet protection" or something like that
- Of course players can buy the helmet again if he can reach buy zone

- I would like to exclude AWP from helmet, but the code would become complicated at unnecessary extent (slow down the server)
- I don't care if knife HS can't be protected by helmet.

this is a very good ide hope they can make it like that


All times are GMT -4. The time now is 08:29.

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