Author Topic: Display hud stuff on models.  (Read 5353 times)

seeeker

  • Posts: 122
  • Turrets: +19/-5
Display hud stuff on models.
« 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.

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: Display hud stuff on models.
« Reply #1 on: March 11, 2009, 11:47:32 am »
No. You can't.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

Plague Bringer

  • Posts: 3815
  • Turrets: +147/-187
Re: Display hud stuff on models.
« Reply #2 on: March 13, 2009, 02:30:01 am »
No you can't currently, or no you can't ever?
U R A Q T

Taiyo.uk

  • Posts: 2309
  • Turrets: +222/-191
    • Haos Redro
Re: Display hud stuff on models.
« Reply #3 on: March 13, 2009, 01:34:38 pm »
Can't without modifications to the renderer.

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Re: Display hud stuff on models.
« Reply #4 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.
benmachine

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: Display hud stuff on models.
« Reply #5 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.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

seeeker

  • Posts: 122
  • Turrets: +19/-5
Re: Display hud stuff on models.
« Reply #6 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!

mooseberry

  • Community Moderators
  • *
  • Posts: 4005
  • Turrets: +666/-325
Re: Display hud stuff on models.
« Reply #7 on: March 25, 2009, 05:55:15 am »
helmet could be done via hud
Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

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

~Mooseberry.