Raised This Month: $ Target: $400
 0% 

origin question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-20-2008 , 03:31   origin question
Reply With Quote #1

is it possible to retrieve the current origin of the player's collision box, pev_origin should not return it?
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-20-2008 , 09:26   Re: origin question
Reply With Quote #2

Get the pev_origin and add the size of player? 16 x 16 y 32 z...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 10-20-2008 , 11:36   Re: origin question
Reply With Quote #3

You can use:
(pev_absmin x/y/z + pev_absmax x/y/z) * 0.5

9/10 you will find that the bounding box corresponds to the origin, I think the only exception are with func_pushables.

For brush entities see (engine_stock.inc):
stock get_brush_entity_origin(ent, Floatrig[3])
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd

Last edited by Orangutanz; 10-20-2008 at 11:38.
Orangutanz 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 14:09.


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