AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detecting origin of an i_t_g (https://forums.alliedmods.net/showthread.php?t=55946)

hlstriker 06-02-2007 16:08

Detecting origin of an i_t_g
 
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?

regalis 06-02-2007 16:25

Re: Detecting origin of an i_t_g
 
2 Attachment(s)
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

hlstriker 06-02-2007 17:25

Re: Detecting origin of an i_t_g
 
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*.

sawce 06-03-2007 10:03

Re: Detecting origin of an i_t_g
 
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.

regalis 06-03-2007 10:55

Re: Detecting origin of an i_t_g
 
Quote:

Originally Posted by regalis (Post 485000)
What is an i_t_g entity? never heard of that..0o


sawce 06-03-2007 12:48

Re: Detecting origin of an i_t_g
 
It's the objective goal entity classname in TFC. I don't know why it has such an awkward name.

regalis 06-03-2007 16:33

Re: Detecting origin of an i_t_g
 
Quote:

Originally Posted by sawce (Post 485239)
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 ;)


All times are GMT -4. The time now is 10:39.

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