Raised This Month: $ Target: $400
 0% 

Detecting origin of an i_t_g


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-02-2007 , 16:08   Detecting origin of an i_t_g
Reply With Quote #1

I am having some problems with i_t_g entities. I'm trying to detect when a player is in distance to the entity, but it doesn't work like other entities.

I also scanned to find the i_t_g entity manually, but I found out all the i_t_g entities origins are 0,0,0.

Is there any way at all to detect where these entities are at, or if a player is near one?
hlstriker is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-02-2007 , 16:25   Re: Detecting origin of an i_t_g
Reply With Quote #2

What is an i_t_g entity? never heard of that..0o

This tools are pretty cool if you work with entities...
ent_info gives you infos about a entity by just aiming at it..and if you press +attack it lists all information about that entity in your console..(thx to pizzahut for this nice tool)
And with shp_tool you can do also much things...i have just used traceent and drawent and it helped me alot..but it have alot more functionality..0o (thx to SpaceHeadedProductions for this nice tool)

greetz regalis
Attached Files
File Type: sma Get Plugin or Get Source (ent_info.sma - 685 views - 4.7 KB)
File Type: sma Get Plugin or Get Source (shptools.sma - 710 views - 40.9 KB)
__________________

Last edited by regalis; 06-02-2007 at 16:32.
regalis is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-02-2007 , 17:25   Re: Detecting origin of an i_t_g
Reply With Quote #3

Thanks for the reply but I've used both them already and neither work.

An i_t_g entity I'm guessing doesn't have an origin. I used ripent and noticed instead of an origin it had model*.
hlstriker is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 06-03-2007 , 10:03   Re: Detecting origin of an i_t_g
Reply With Quote #4

Use the get_brush_entity_origin() stock in engine_stocks.inc

You may get weird results with brushes that have a large size, or awkward shape, but for the majority of maps it should work fine.
__________________
fyren sucks
sawce is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-03-2007 , 10:55   Re: Detecting origin of an i_t_g
Reply With Quote #5

Quote:
Originally Posted by regalis View Post
What is an i_t_g entity? never heard of that..0o
__________________
regalis is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 06-03-2007 , 12:48   Re: Detecting origin of an i_t_g
Reply With Quote #6

It's the objective goal entity classname in TFC. I don't know why it has such an awkward name.
__________________
fyren sucks
sawce is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-03-2007 , 16:33   Re: Detecting origin of an i_t_g
Reply With Quote #7

Quote:
Originally Posted by sawce View Post
It's the objective goal entity classname in TFC. I don't know why it has such an awkward name.
thX
It is an realy awkward name for an entity...thought this would be a shortcut*lol*
Anyway..thank you for clearing this ;)
__________________
regalis 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 10:39.


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