Raised This Month: $ Target: $400
 0% 

Some question about Ham_Touch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-04-2012 , 06:54   Some question about Ham_Touch
Reply With Quote #1

Hello there,


PHP Code:
RegisterHam(Ham_Touch"grenade""fwd_Ham_Touch"); 
My question is, will this check if he touches the grenade?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 05-04-2012 at 06:54.
Bilal Pro is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-04-2012 , 07:26   Re: Some question about Ham_Touch
Reply With Quote #2

What exactly do you want to do?
If you are asking whether the function will be called when grenade touches something - yes, it will.
__________________
<VeCo> is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-04-2012 , 07:30   Re: Some question about Ham_Touch
Reply With Quote #3

I am trying to make a dodgeball mod, for a last request plugin.

So when the grenade touches you in the air you will die
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-04-2012 , 07:36   Re: Some question about Ham_Touch
Reply With Quote #4

Then yes, that will work.
The function should look like this:

PHP Code:
public fwd_Ham_Touch(ent,id//ent is grenade entity index, id is the index of the player
{
        
// Here you can check if id is a valid connected player and if he is in the air (~FL_ONGROUND).
        // If you want to work only for HE Grenades, then you should also add a check for ent's model.

__________________

Last edited by <VeCo>; 05-04-2012 at 07:37.
<VeCo> is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-04-2012 , 09:49   Re: Some question about Ham_Touch
Reply With Quote #5

Quote:
Originally Posted by Bilal Pro View Post
Hello there,


PHP Code:
RegisterHam(Ham_Touch"grenade""fwd_Ham_Touch"); 
My question is, will this check if he touches the grenade?
You can easily test this and answer for yourself. This is why I said what I said in the other thread.
__________________
fysiks is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-04-2012 , 10:53   Re: Some question about Ham_Touch
Reply With Quote #6

I was on my phone at my grandmother, how am i able to test it.

And i had some more questions about ham touch.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-05-2012 , 01:12   Re: Some question about Ham_Touch
Reply With Quote #7

Quote:
Originally Posted by Bilal Pro View Post
I was on my phone at my grandmother, how am i able to test it.

And i had some more questions about ham touch.
Not a good excuse. If you can't test then don't ask until after you've tested.

If you find that it does work then you can ask "Is there a better method than Ham_Touch to do this?" If it doesn't work then you say "I've tried this but it doesn't work, is how would I do it?"
__________________
fysiks is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-04-2012 , 11:24   Re: Some question about Ham_Touch
Reply With Quote #8

If you are on ur phone,

how the hell u code oO
__________________
Retired.
Xalus is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-04-2012 , 11:26   Re: Some question about Ham_Touch
Reply With Quote #9

Use register_touch() because you can specify both classnames of entities that are touching each other.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 00:26.


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