Raised This Month: $ Target: $400
 0% 

Finding Out When An Entity Hits A Player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-01-2010 , 18:00   Finding Out When An Entity Hits A Player
Reply With Quote #1

What I'm trying to do at the moment is:

1a) Find a forward of some sort that finds if a player is hit by an entity, a grenade for example. [ I have already searched Nomexus's Nade Modes plugin, but it was like finding the needle in a haystack. ]

1b) Maybe I would use a pre-think for something like this?


2) Finding an example to see what this would be like.

Any help would be appreciated.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-01-2010 , 18:33   Re: Finding Out When An Entity Hits A Player
Reply With Quote #2

Quote:
/**
* Description: Normally called whenever one entity blocks another from moving.
* Forward params: function(this, idother);
* Return type: None.
* Execute params: ExecuteHam(Ham_Blocked, this, idother);
*/
Ham_Blocked
?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-01-2010 , 18:48   Re: Finding Out When An Entity Hits A Player
Reply With Quote #3

Quote:
Originally Posted by Owyn View Post
?
If it's not too much trouble, could you provide an example?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-02-2010 , 00:56   Re: Finding Out When An Entity Hits A Player
Reply With Quote #4

register_touch("grenade", "player", "GrenadeTouchByPlayer")

public GrenadeTouchByPlayer(iNade, iPlayer)



or



RegisterHam(Ham_Touch, "grenade", "CGrenade_Touch")

public CGrenade_Touch(iNade, iAnyEnt)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-02-2010 , 15:28   Re: Finding Out When An Entity Hits A Player
Reply With Quote #5

Thanks Connor.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 07:21.


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