Re: [hlcoders] Identifying all players in the current view

2006-05-02 Thread Philip Withnall
This is a multi-part message in MIME format.
--
That sounds good. Thanks! :-)

John Sheu wrote:
 Loop through all the players, calling IsDormant() on them.  That should
 let you pick out the ones that are being currently server-updated (and
 thus in your PVS).

 John Sheu

 ___
 To unsubscribe, edit your list preferences, or view the list archives, please 
 visit:
 http://list.valvesoftware.com/mailman/listinfo/hlcoders





--
[ philip.vcf of type text/x-vcard deleted ]
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



[hlcoders] Identifying all players in the current view

2006-05-01 Thread Philip Withnall
This is a multi-part message in MIME format.
--
I'm trying to code a sniper view mode which identifies all the players
currently visible in the active player's view, and displays information
about each of them floating above them.

I've had several ideas, including: just displaying the information for
everybody on the server; always having the information attached to the
people and only visible when the player's sniping; and looping through
the player list, determining who's visible and attaching the information
as appropriate. However, none of these methods is particularly elegant,
and I was hoping there was some better way to do it. :-)
--
[ philip.vcf of type text/x-vcard deleted ]
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Identifying all players in the current view

2006-05-01 Thread Jorge Rodriguez

Philip Withnall wrote:

I'm trying to code a sniper view mode which identifies all the players
currently visible in the active player's view, and displays information
about each of them floating above them.

I've had several ideas, including: just displaying the information for
everybody on the server; always having the information attached to the
people and only visible when the player's sniping; and looping through
the player list, determining who's visible and attaching the information
as appropriate. However, none of these methods is particularly elegant,
and I was hoping there was some better way to do it. :-)


That last one sounds best to me. How much more elegant were you wanting it?

--
Jorge Vino Rodriguez


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Identifying all players in the current view

2006-05-01 Thread John Sheu
Loop through all the players, calling IsDormant() on them.  That should
let you pick out the ones that are being currently server-updated (and
thus in your PVS).

John Sheu

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders