Tremulous Forum
Mods => Modding Center => Topic started by: seeeker on March 11, 2009, 07:59:31 am
-
Is it even remotely possible to show the player ammo info like:
//CLIPS
itemDef
{
name "clips"
rect 538 423 60 15
visible 1
decoration
forecolor 0.8 0.4 0.0 1.0
ownerdraw CG_PLAYER_CLIPS_VALUE
}
(taken from the human_hud.menu)
on any other place than the hud? (weapon to be precise >=D)
is CG_PLAYER_CLIPS_VALUE a shader? if so how can i make reference to it?
I know everyone might see a diff info on their side, but still.
-
No. You can't.
-
No you can't currently, or no you can't ever?
-
Can't without modifications to the renderer.
-
CG_PLAYER_CLIPS_VALUE is just an identifier that cg_draw.c uses to call the appropriate draw function. In theory you can get that function to do something else entirely, but it's probably not going to be an easy ride.
-
Actually I was thinking about this, and it should be possible to do with some crafty use of trap_R_RemapShader with the numbers on the screen.
-
yay it would be awesome to have stuff like bp shown on ckit, ammo shown on weapons, glowy poison shown on claws (=o) or even an actual helmet model (inside area) drawn on the players screen showing the radar/etc
;D!
-
helmet could be done via hud