-- [ Picked text/plain from multipart/alternative ] Hi all. I'm trying create UI hints for all of the important entities in my mod. Essentially, the player will get a short message under the crosshair that will tell them what the object is and what they can do with it.
I started off with the code in the hl2mp_hud_target_id.cpp file (HL2DM-based mod) which is used to identify friend/enemies. It uses the UTIL_TraceLine function to give entity information. What I would like to do is be able to determine if a player is in a vehicle entrybox, and if so, let them know ( i.e. "Driver's seat\Press use key to get in"). It works fine for hitgroups in the default hitbox set (i.e. the 0 group for the vehicle body or the #5 group we are using for an ammo box similar to the HL2 jeep). Entryboxes, though, are never returned. I'm using the MASK_SOLID | CONTENTS_HITBOX flags on the TraceLine function. Are there any other flags which will "see" entryboxes? Since this is client-side only, I don't see any way to query the entryboxes on the vehicle in the manner that the server-side uses to determine if a player is in an entrybox. A simple fix may be to just add a hitbox to the vehicle that corresponds to the entrybox, but I would like to avoid that if there is a way to get it with TraceLine (or any other efficient method) Thanks! -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

