You need to use ScreenTransform. (equivalent to the triapi->WorldToScreen in hl1)
Also.. is this object you're pointing at, supposed to be pointed at by all players on the server, no matter what or something? -------------- -- omega Heroes of Excelsior http://www.heroesofexcelsior.com Blackened Interactive http://www.blackened-interactive.com -----Original Message----- From: Benjamin Davison [mailto:[EMAIL PROTECTED] Sent: April 10, 2006 12:13 PM To: [email protected] Subject: Re: [hlcoders] Putting an entitys position on the hud with a graphic and other bonus questions. -- [ Picked text/plain from multipart/alternative ] Thanks guy, I have gone a different way and am just using a server side entity which works well. This is more a questions about maths theory than anything else, so I have the Vectors transmitting perfectly :D But making them usable on the HUD is making me scratch my head, at the moment I have this code which deals with the layout of the label element. //-------------------------------------------------------------------------- --- // Purpose: Resizes the label //-------------------------------------------------------------------------- --- void CBBHudPointer::PerformLayout() { CHL2MPRules *pRules = HL2MPRules(); if ( !pRules ) return; Vector vPointer = pRules->m_vPointerPosition; int x = vPointer.x; int y = vPointer.y; m_pWarmupLabel->SetPos( x , y ); } Now even I can see why that is wrong, X&Y are going to be relative to the clients HUD not the entitys position. I currently have -no- idea on how to nake it useable for my purposes. On 4/9/06, Aaron Schiff <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > if you're using HL2MP sdk, you can define the player limits in > src\dlls\hl2mp_dll\hl2mp_gameinterface.cpp > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- - Benjamin Davison -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

