Raised This Month: $ Target: $400
 0% 

Detecting player respawn & touch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 07-10-2010 , 00:03   Detecting player respawn & touch
Reply With Quote #1

Any way to detect player respawn, without hamsandwich?

What do you recomends me? Use hamsandwich for only one function or not use it?

An another question..
Is there a way to register the touch of a entity (model) with a non-solid func_wall?

Because i was trying to register the touch of the soccerjam's ball and the goalnet (previously seted with this "entity_set_int(endzone, EV_INT_solid, SOLID_NOT)"). But when the ball runs accross the goalnet nothing it happens


Thanks

Last edited by Mxnn; 07-10-2010 at 00:16.
Mxnn is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-10-2010 , 00:39   Re: Detecting player respawn & touch
Reply With Quote #2

1) Use hamsandwich.

2) You could hook think and get the distance between the two ents. If it's very low you could consider that "touching".
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 07-10-2010 , 00:42   Re: Detecting player respawn & touch
Reply With Quote #3

1) Ok

2) Return a lot of errors like: ball is touching it but is stolen by some one..
Mxnn is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-10-2010 , 00:57   Re: Detecting player respawn & touch
Reply With Quote #4

Quote:
Originally Posted by Mxnn View Post
2) Return a lot of errors like: ball is touching it but is stolen by some one..
So prevent them from occuring.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-10-2010 , 07:52   Re: Detecting player respawn & touch
Reply With Quote #5

You could set the "func_wall" as SOLID_TRIGGER so it will register touch but not collide with it.

Quote:
Return a lot of errors like: ball is touching it but is stolen by some one..

You should check if any player has the ball in the touch function... not that hard.
__________________
Hunter-Digital is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 07-10-2010 , 13:56   Re: Detecting player respawn & touch
Reply With Quote #6

I tried SOLID_TRIGGER but didn't works..
If I put SOLID_NOT, the players and the ball can walk accross it, but register_touch isn't activate.
Mxnn is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-10-2010 , 14:03   Re: Detecting player respawn & touch
Reply With Quote #7

Quote:
Originally Posted by Mxnn View Post
I tried SOLID_TRIGGER but didn't works..
If I put SOLID_NOT, the players and the ball can walk accross it, but register_touch isn't activate.
Quote:
Originally Posted by wrecked_ View Post
You could hook think and get the distance between the two ents. If it's very low you could consider that "touching".
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
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 07:07.


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