Raised This Month: $ Target: $400
 0% 

right above water


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-25-2010 , 19:24   Re: right above water
Reply With Quote #1

use find_ent_by_class(iIndex, const szClass[]) with "func_water" and compare the info_target's origin to the mins/maxs of the func_water to see if it is corresponding func_water entity.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 05-26-2010 , 00:10   Re: right above water
Reply With Quote #2

Quote:
Originally Posted by Emp` View Post
use find_ent_by_class(iIndex, const szClass[]) with "func_water" and compare the info_target's origin to the mins/maxs of the func_water to see if it is corresponding func_water entity.
This isn't working when you have func_water based on multiple brushes(for example de_aztec). I would rather need to check touch at one frame only. I would register touch, but i don't need to check touch every frame, so it would be a waste of resources. I would need something like:

Code:
get_entity_touching(ent, classname)
__________________

Last edited by Voi; 05-26-2010 at 00:27.
Voi 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 05:17.


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