Raised This Month: $32 Target: $400
 8% 

Get origin of player's hitboxes


Post New Thread Reply   
 
Thread Tools Display Modes
--kml--
Senior Member
Join Date: Jan 2009
Old 06-25-2009 , 09:25   Re: Get origin of player's hitboxes
Reply With Quote #11

How to profile?
and what it is O.o
__________________
wooT now is asking season
will ask you plenty of things for learning
--kml-- is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-25-2009 , 10:19   Re: Get origin of player's hitboxes
Reply With Quote #12

http://forums.alliedmods.net/showthread.php?t=67752
__________________
Arkshine is offline
Day
Member
Join Date: Jan 2006
Location: Ukraine
Old 06-27-2009 , 06:33   Re: Get origin of player's hitboxes
Reply With Quote #13

trace_line(-1, hostOrigin, entOrigin, hitOrigin)

Have two questions:
1. How to check if the trace hit the glass (and/or transparent) entity?
2. Is it possible to check if the trace has gone trought or hit the smoke (maybe creating transparent entity on it's way)?
__________________
Sith Lord Darth Day

Last edited by Day; 06-27-2009 at 06:37.
Day is offline
Send a message via ICQ to Day
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-27-2009 , 06:45   Re: Get origin of player's hitboxes
Reply With Quote #14

1. Check pev_renderamt ( brightness )
2. Hmm~. *Thinking..*
__________________
Arkshine is offline
Day
Member
Join Date: Jan 2006
Location: Ukraine
Old 06-27-2009 , 07:13   Re: Get origin of player's hitboxes
Reply With Quote #15

Ok, so I need the entity ID where hit the trace. But... as you wrote before, when I use function trace_line with first arg=-1, the the function should return the entity ID which was hit:
PHP Code:
Hit trace_line(-1userOriginentOriginhitOrigin
My problem that Hit always equals -1 Even when entOrigin = hitOrigin
__________________
Sith Lord Darth Day
Day is offline
Send a message via ICQ to Day
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 19:45.


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