News:

Come Chat with us live! Learn how HERE!

Main Menu

Display hud stuff on models.

Started by seeeker, March 11, 2009, 06:59:31 AM

seeeker

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.

Amanieu

Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

Plague Bringer

No you can't currently, or no you can't ever?
U R A Q T

Taiyo.uk

Can't without modifications to the renderer.

benmachine

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.
benmachine

Amanieu

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.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

seeeker

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!

mooseberry

Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

मैं हिन्दी का समर्थन

~Mooseberry.