Custom HUDs

Forum Dedicated to Neotokyo Community Content

Moderators: FriedchikenCamo, Glasseater

Custom HUDs

Postby ta1os on Wed Sep 08, 2010 10:45 pm

Here's something I've been messing around with for a while, thought I'd post it up here so you folks could grab it if you want to. Comes in two flavors, a more minimal one focused on taking up little extra space on your screen while still being more accessible than the default HUD and a bolder, more centralized one that strives to keep HUD elements such as your Health and Ammo easy to keep track of without taking your eyes off of the crosshair.

Image
Download Minimal HUD

Image
Download Bold HUD

Just drop the folders into Steam/steamapps/SourceMods/NeotokyoSource. I would recommend backing up all relevant files beforehand in case you want to revert to the default HUD. As far as I know these should (theoretically) work on all resolutions. Constructive criticism/feedback is appreciated.

If you want to tweak the HUD yourself just open up scripts/HudLayout.res in Notepad, start up Neotokyo, bind a key to hud_reloadscheme, and start messin around with the values under NHudHealth and NHudWeapon. (Those are the main ones, most of the elements in this file don't actually do anything.) If you want to change fonts and font sizes (including ammo indicators) you'll have to go to resources/ClientScheme.res, however to see the effects of changes to this file you'll have to restart NT.
ta1os
 
Posts: 2
Joined: Wed Sep 08, 2010 1:19 am

Re: Custom HUDs

Postby Alone on Thu Sep 09, 2010 8:12 am

Very nice, will give it a try. Thanks.
Alone
Tester
 
Posts: 399
Joined: Sat Jul 11, 2009 2:32 am
Location: Grenadier

Re: Custom HUDs

Postby Shazam on Thu Sep 16, 2010 3:00 am

I LIKE it! In particular, I like how the minimal hud is centered on your weapon, so it doesn't really obscure anything that wasn't obscured in the first place. I'll give it a looksee.
Shazam
 
Posts: 305
Joined: Fri Aug 14, 2009 8:32 am

Re: Custom HUDs

Postby rnld on Tue Apr 19, 2011 4:24 am

Greetings.

Could you share you got yours to scale to other resolutions? I am in the process of making a hud and at other resolutions it appears out of place.

https://picasaweb.google.com/1038185556 ... 8989013250

Here's what I have so far. I would also like to know if there is a way to re-position the ammo indicator.
rnld
 
Posts: 20
Joined: Wed Feb 16, 2011 7:13 pm

Re: Custom HUDs

Postby ta1os on Sun Apr 24, 2011 6:37 am

I had that problem too at first. I'm guessing your xpos values are all set relative to the left side of the screen. Use c and r to set them relative to the center or right side of the screen e.g. 105 will place it 105 from the left side of the screen but c105 or c-105 will place it 105 to the right or left of center respectively. All ammo hud elements should be under NHudWeapon.

Hope this helps.
ta1os
 
Posts: 2
Joined: Wed Sep 08, 2010 1:19 am

Re: Custom HUDs

Postby rnld on Sun May 01, 2011 5:50 am

@ta1os

Thanks for the info. I finished it up and here's what it looks like.

http://bit.ly/mjeALF

Code: Select all
}
   NHudHealth
   {
      "fieldName"      "NHudHealth"
      "xpos"   "c-40"
      "ypos"   "r35"
      "wide"   "49"
      "tall"  "14"
      "visible" "1"
      "enabled" "1"

      "healthtext_xpos" "60"
      "healthtext_ypos" "60"
      "healthbar_xpos" "0"
      "healthbar_ypos" "0"
      "healthbar_w" "0"
      "healthbar_h" "0"
      "healthnum_xpos" "17"
      "healthnum_ypos" "1"           
     
      "camotext_xpos" "60"
      "camotext_ypos" "60"
      "camobar_xpos" "0"
      "camobar_ypos" "0"
      "camobar_w" "0"
      "camobar_h" "0"
      "camonum_xpos" "28"
      "camonum_ypos" "1"           
     
      "sprinttext_xpos" "60"
      "sprinttext_ypos" "60"
      "sprintbar_xpos" "0"
      "sprintbar_ypos" "0"
      "sprintbar_w" "0"
      "sprintbar_h" "0"
      "sprintnum_xpos" "45"
      "sprintnum_ypos" "1"            
   }   
   NHudWeapon
   {
      "fieldName"      "NHudWeapon"
      "xpos"   "c-85"
      "ypos"   "r35"
      "wide"   "169"
      "tall"  "14"
      "visible" "1"
      "enabled" "1"
      
      "text_xpos" "150"
      "text_ypos" "5"
      "digit_xpos" "150"
      "digit_ypos" "0"
      "digit2_xpos" "165"
      "digit2_ypos" "0"
      
      "icon_xpos" "8"
      "icon_ypos" "6"
   }   
   TargetID
   {
      "fieldName" "TargetID"
      "visible" "1"
      "enabled" "1"
      "wide"    "640"
      "tall"    "480"
   }
   NHudRangeFinder
   {
      "fieldName"      "NHudRangeFinder"
      "xpos"   "C-35"
      "ypos"   "C05"
      "wide"   "80"
      "tall"  "12"
      "visible" "1"
      "enabled" "1"
     
      "text_xpos" "900"
      "text_ypos" "0"
      "digit_xpos" "65"
      "digit_ypos" "1"   
   }


Note: you will also need to go into clientscheme.res and edit this line

Code: Select all
}
      NHudBullets
      {
"3"
      {
            "name"      "NOCR"
            "tall"      "14"
            "weight"   "0"
            "range"      "0x0000 0x017F" //   Basic Latin, Latin-1 Supplement, Latin Extended-A
            "yres"      "YOUR RESOLUTION GOES HERE. EXAMPLE: 1024 1280. HEIGHT ALWAYS COMES BEFORE WIDTH, ALWAYS. "
            "antialias"   "1"
            "additive"   "1"




Hope you guys like. :D
rnld
 
Posts: 20
Joined: Wed Feb 16, 2011 7:13 pm


Return to Community Content

Who is online

Users browsing this forum: No registered users and 2 guests

cron