Tremulous Forum

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

Title: Display hud stuff on models.
Post 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.
Title: Re: Display hud stuff on models.
Post by: Amanieu on March 11, 2009, 11:47:32 am
No. You can't.
Title: Re: Display hud stuff on models.
Post by: Plague Bringer on March 13, 2009, 02: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, 01:34:38 pm
Can't without modifications to the renderer.
Title: Re: Display hud stuff on models.
Post by: benmachine on March 21, 2009, 12:03:32 am
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, 07: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, 06: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, 05:55:15 am
helmet could be done via hud