Advertisement
Guest User

Untitled

a guest
Oct 15th, 2012
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. I put these lines in HudPlayerClass.res for the actual xhair itself (you can put them where you want)
  2. xHairInner
  3. {
  4. "ControlName" "CExLabel"
  5. "fieldName" "xHairInner"
  6. "xpos" "c-17"
  7. "ypos" "c-15"
  8. "zpos" "999"
  9.  
  10. "wide" "35"
  11. "tall" "35"
  12.  
  13. "visible" "1"
  14. "enabled" "1"
  15. "labelText" "9"
  16. "textAlignment" "center"
  17.  
  18. "font" "xHair26"
  19. "fgcolor" "255 255 255 192"
  20. }
  21. xHairOuter
  22. {
  23. "ControlName" "CExLabel"
  24. "fieldName" "xHairOuter"
  25. "xpos" "c-18"
  26. "ypos" "c-14"
  27. "zpos" "999"
  28.  
  29. "wide" "36"
  30. "tall" "35"
  31.  
  32. "visible" "1"
  33. "enabled" "1"
  34. "labelText" "g"
  35. "textAlignment" "center"
  36.  
  37. "font" "xHair34"
  38. "fgcolor" "0 0 0 192"
  39. }
  40. xHairBacker
  41. {
  42. "ControlName" "CExLabel"
  43. "fieldName" "xHairBacker"
  44. "xpos" "c-18"
  45. "ypos" "c-18"
  46. "zpos" "999"
  47.  
  48. "wide" "36"
  49. "tall" "35"
  50.  
  51. "visible" "1"
  52. "enabled" "1"
  53. "labelText" "n"
  54. "textAlignment" "center"
  55.  
  56. "font" "xHair28"
  57. "fgcolor" "0 0 0 90"
  58. }
  59.  
  60. This is perfectly aligned for 16:10 resolutions. You'll need to change positioning and maybe xhair sizes on other ones for proper centering.
  61.  
  62. I defined the fonts in ClientScheme.res under the ECon Fonts settnigs like this:
  63. "xHair28"
  64. {
  65. "1"
  66. {
  67. "name" "crosshairs"
  68. "tall" "28"
  69. "weight" "0"
  70. "antialias" "1"
  71. }
  72. }
  73. replace the number (28 here) with what your use, with multiple entries if you need multiple sizes (like I did with also 26 and 34)
  74.  
  75. You need Fog's HUD Xhair font installed for this to work. You can find it easily enough on the forum.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement