AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player fall on head no damage? (https://forums.alliedmods.net/showthread.php?t=154438)

brian201049 04-08-2011 10:51

Player fall on head no damage?
 
I have a problem.

How to let Ham_TakeDamage know a player touch another player's head?

HELP ME PLZ! THX A LOT:cry:

P.S. Sorry for my bad English..:oops:

Arkshine 04-08-2011 12:15

Re: Player fall on head no damage?
 
See m_LastHitGroup offset. (75).

const m_LastHitGroup = 75;

if( get_pdata_int( victim, m_LastHitGroup ) == HIT_HEAD )
{

}

Exolent[jNr] 04-08-2011 16:27

Re: Player fall on head no damage?
 
Quote:

Originally Posted by Arkshine (Post 1446095)
See m_LastHitGroup offset. (75).

const m_LastHitGroup = 75;

if( get_pdata_int( victim, m_LastHitGroup ) == HIT_HEAD )
{

}

Arkshine, I think you misunderstood him.
He wants when a player falls on top of another player, the player on the bottom takes damage in the head.

@brian201049
I'm pretty sure this has been made before.
You could probably find it by looking in the (Un)Approved Plugins.

brian201049 04-09-2011 02:04

Re: Player fall on head no damage?
 
Quote:

Originally Posted by Exolent[jNr] (Post 1446173)
Arkshine, I think you misunderstood him.
He wants when a player falls on top of another player, the player on the bottom takes damage in the head.

@brian201049
I'm pretty sure this has been made before.
You could probably find it by looking in the (Un)Approved Plugins.

YES!! I used Arkshine's script and some player fall on another player back and the player take damage.

matsi 04-09-2011 09:42

Re: Player fall on head no damage?
 
check this out:
http://forums.alliedmods.net/showthread.php?t=58024


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

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