--
[ Picked text/plain from multipart/alternative ]
Look at the way origins are scaled to a 2D screen space in
CMapOverview::DrawMapPlayers() and CMapOverview::WorldToMap
On 4/11/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
>
> --
> [ 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
>
>
--
Programmer for RnL
www.resistanceandliberation.com
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders