Tremulous Forum

Mods => Modding Center => Topic started by: seeeker on March 11, 2009, 06:59:31 AM

Title: Display hud stuff on models.
Post by: seeeker on March 11, 2009, 06: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.
Title: Re: Display hud stuff on models.
Post by: Amanieu on March 11, 2009, 10:47:32 AM
No. You can't.
Title: Re: Display hud stuff on models.
Post by: Plague Bringer on March 13, 2009, 01:30:01 AM
No you can't currently, or no you can't ever?
Title: Re: Display hud stuff on models.
Post by: Taiyo.uk on March 13, 2009, 12:34:38 PM
Can't without modifications to the renderer.
Title: Re: Display hud stuff on models.
Post by: benmachine on March 20, 2009, 11:03:32 PM
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.
Title: Re: Display hud stuff on models.
Post by: Amanieu on March 21, 2009, 06:26:17 AM
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.
Title: Re: Display hud stuff on models.
Post by: seeeker on March 22, 2009, 05:47:50 AM
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!
Title: Re: Display hud stuff on models.
Post by: mooseberry on March 25, 2009, 04:55:15 AM
helmet could be done via hud