I tried it out and it is kind of a miracle, I can actually use the MP5 now…
throwing grenades is still a shot in the dark tho.
Thanks for the feedback, you two!
How so?
Because of their angle / how they’re thrown?
If you know how to improve this little guide (or if you spot any errors), feel free to reply below, with your suggestions.
You may also want to ask for help, if it doesn’t work properly.
EDIT (08:45 AM):
This was irrelevant information, see my last post in this thread, why.
Something I thought would be carried over from HL2 was the Bracket Health and ammo indicators on the crosshair.
The reason I say this it was a cool feature and it helped you see a bit better.
Is this feature hardcoded or can it be loaded in to BMS by using the font file hl2crosshairs.txt
Now I am aware there are 2 versions 1 that displays the health and ammo and the alternative in HLDM which stays as a solid bracket around the crosshair
Is the crosshair for the Health and ammo scripted or coded?
And can script this to display onto the HUD and use that font around the cross hair?
Or can you go about it the auto-exec config method?
I have no idea where a grenade is going to go when I throw it, and it certainly doesn’t land where the center of the screen is. I dont use the grenades cuz of their horrible throw placement. your crosshairs cannot make up for it.
Going to bump this one again…
anyway to get this back for continuity and it also helps you see better?
Are the black Mesa Crosshairs also font based?
If so I will attempt to edit the font file
edit
Ok they are texture based so can you import a second font based crosshair like in HL2?
change the script to accept font based crosshairs?
and is the weapon and ammo data hard coded on the brackets or a script?
Font driven seems to be the keyword here…
Ok I think I will check weapondata.txt
compare with HL2 weapndata.txt
Ok after digging about inside some of the text files it seems all the resources to implement the bracket crosshairs are already there.
BMS uses the HL2Crosshais.ttf
The BMS game UI.txt keeps a mention to hudquickinfo
But I am struggling to find the actual scripting for hudquickinfo in half life 2.
Basically I am only looking for the brackets at the momment.
What is the console command and can someone try this out HudQuickInfo 1
although I guess it will not draw the brackets… I am looking for the script code for the brackets in HL2 (HL2crosshairs.ttf)
I’m not going to jump to conclusions here, but I’ve tried many ways of getting new crosshairs to work, but it always turned out non-working.
Replacing some of the .ttf files back and forth did not work, for example…
Removing the material files (VTF, VMT) for the crosshairs, did not help.
Removing the .ttf files entirely did not help, either.
I am assuming that the crosshairs are handled in a hardcoded way, via ‘client.dll’ (it reads or stores part of its information from / in ‘hud_textures.txt’).
BMS’ file is empty, though (apparently).
It could be that the crosshairs are pre-defined in the library (DLL) itself, with settings which override any changes made to said crosshairs.
Looking at the lines that are already in one of the Language files, one of the future updates’ probably going to give us the ability of changing the crosshair’s appearance entirely.
EDIT (12 : 36 PM): This is what a hud_textures.txt file could look like (extracted from one of the .gcf containers):
"sprites/640_hud"
{
TextureData
{
"arrow" [$WIN32]
{
"file" "sprites/arrow"
"x" "0"
"y" "0"
"width" "32"
"height" "32"
}
"autoaim_c" [$WIN32]
{
"file" "sprites/crosshairs"
"x" "96"
"y" "0"
"width" "24"
"height" "24"
}
"item_battery" [$WIN32]
{
"font" "WeaponIcons"
"character" "*"
}
"item_healthkit" [$WIN32]
{
"font" "WeaponIcons"
"character" "+"
}
"crosshair"
{
"file" "sprites/qi_center"
"x" "0"
"y" "0"
"width" "40"
"height" "40"
}
"crosshair_left"
{
"font" "QuickInfo"
"character" "("
}
"crosshair_right"
{
"font" "QuickInfo"
"character" ")"
}
"crosshair_left_full"
{
"font" "QuickInfo"
"character" "['
}
'crosshair_right_full'
{
'font' 'QuickInfo'
'character' ']"
}
"crosshair_left_empty"
{
"font" "QuickInfo"
"character" "{"
}
"crosshair_right_empty"
{
"font" "QuickInfo"
"character" "}"
}
"crosshair_default"
{
"file" "sprites/crosshairs"
"x" "0"
"y" "48"
"width" "24"
"height" "24"
}
"crosshair_xbox"
{
"file" "vgui/hud/xbox_reticle"
"x" "0"
"y" "0"
"width" "64"
"height" "64"
}
"viewhair"
{
"file" "sprites/hud/v_crosshair2"
"x" "0"
"y" "0"
"width" "32"
"height" "32"
}
"gunhair"
{
"file" "sprites/hud/v_crosshair1"
"x" "0"
"y" "0"
"width" "32"
"height" "32"
}
"plushair"
{
"font" "Crosshairs"
"character" "Q"
}
}
}
As far as I can gather the Brackets from HL2 are in HL2crosshairs.ttf
as for HudQuickInfo reference that remains in BMS
and the Font file HL2.crosshairs.ttf is also referenced in a Res custom fonts script so BMS uses the same font file with the brackets.
So I think it is possible to call it but I don’t know where the code is that implements HudQuickInfo in HL2
here is the string in the BMS Game info txt
“GameUI_HudQuickInfo” “Quick info”
“GameUI_HudQuickInfo_Info” “Show health and ammo info on crosshair”
It has been removed from the Clientscheme.res though in BMS
Of which the values are
QuickInfo
{
“1”
{
“name” “HL2cross”
“tall” “28”
“weight” “0”
“antialias” “1”
“additive” “1”
“custom” “1”
}
}
OK I have copied over every piece of code I can find referencing crosshairs.
This includes the following
Hudlayout.res
clientscheme.res
hudtextures.txt
All Font files copies over and sprites in the correct directories that are referenced in the scripts
I cannot get the quickinfo brackets to display but I found out most of the data is in Hudtextures.txt refrerencing the quickinfo brackets.
Now my Black Mesa menu title text looks like this though
BL@CK MESA
so I have done something wrong I think in the coding or caused an error
But I have managed to get a HL2crosshairs font to display on the mp5 only the same commands won’t work in the weapons scripts.
Yes the HL2 font command works only on the MP5 so they must have missed a piece of coding for that or smg_crosshair vmt / vtf works
CLIENTSCHEME RES
Crosshairs
{
"1"
{
"name" "HalfLife2"
"tall" "40"
"weight" "0"
"antialias" "0"
"additive" "1"
"custom" "1"
"yres" "1 10000"
}
}
QuickInfo
{
"1"
{
"name" "HL2cross"
"tall" "28"
"weight" "0"
"antialias" "1"
"additive" "1"
"custom" "1"
}
}
CustomFontFiles
{
"1" "resource/HALFLIFE2.ttf"
"2" "resource/HL2crosshairs.ttf"
"3" "resource/HL2EP2.ttf"
"4" "resource/blackmesa.ttf"
"6" "resource/din1451m.ttf"
"7" "resource/SVBasicManual-Bold.ttf"
}
}
HUDTEXTURES.TXT
“sprites/640_hud”
{
TextureData
{
“crosshair”
{
“file” “sprites/qi_center”
“x” “0”
“y” “0”
“width” “40”
“height” “40”
}
“crosshair_left”
{
“font” “QuickInfo”
“character” “(”
}
“crosshair_right”
{
“font” “QuickInfo”
“character” “)”
}
“crosshair_left_full”
{
“font” “QuickInfo”
“character” “[’
}
‘crosshair_right_full’
{
‘font’ ‘QuickInfo’
‘character’ ']”
}
“crosshair_left_empty”
{
“font” “QuickInfo”
“character” “{”
}
“crosshair_right_empty”
{
“font” “QuickInfo”
“character” “}”
}
“crosshair_default”
{
“file” “sprites/crosshairs”
“x” “0”
“y” “48”
“width” “24”
“height” “24”
}
“viewhair”
{
“file” “sprites/hud/v_crosshair2”
“x” “0”
“y” “0”
“width” “32”
“height” “32”
}
“gunhair”
{
“file” “sprites/hud/v_crosshair1”
“x” “0”
“y” “0”
“width” “32”
“height” “32”
}
"progress_bar"
{
"file" "sprites/hud1"
"x" "238"
"y" "0"
"width" "10"
"height" "28"
}
"plushair"
{
"font" "Crosshairs"
"character" "Q"
// “file” “sprites/crosshairs”
// “x” “0”
// “y” “24”
// “width” “24”
// “height” “24”
}
}
}
}
}
HUDLAYOUT.RES
HudCrosshair
{
“fieldName” “HudCrosshair”
“visible” “1”
“enabled” “1”
“wide” “640”
“tall” “480”
}
WEAPON_MP5.TXT
WeaponData
{
printname “Mp5”
bucket “2”
bucket_position “0”
clip_size “30”
item_flags “0”
playermodel “models/weapons/w_mp5.mdl”
primary_ammo “9mm”
secondary_ammo “grenade_mp5”
viewmodel “models/weapons/v_mp5.mdl”
weight “3”
anim_prefix “mp5”
fov “54”
SoundData
{
double_shot "weapon_mp5.Double"
reload_npc "weapon_mp5.Reload_NPC"
empty "weapon_mp5.Empty"
single_shot "weapon_mp5.Single"
single_shot_npc "weapon_mp5.Single_NPC"
}
}
“crosshair”
{
“font” “Crosshairs”
“character” “Q”
}
“autoaim”
{
“file” “sprites/crosshairs”
“x” “0”
“y” “48”
“width” “24”
“height” “24”
}
}
Does quick info use the hudanimation.txt?
“BL@CK MESA” instead of “BLλCK MESA” as your menu-title usually indicates a missing ‘blackmesa.ttf’ file.
EDIT (11:20 PM):
CODE-tags, Ronster - CODE-tags…
This…:
[ CODE ][ /CODE ]
Note: Remove the spaces.
…looks like this:
<TEXT>
What am I doing wrong… Is it the brackets because I am just copy pasting text and putting files in.
Basically I don’t have a clue what I am doing but I know it relates to what I am trying to do…
If I upload the text files can you check it for spacing errors?
link below
https://www.mediafire.com/?6hzeze3ifskepep
If you spot errors any chance you can upload it back fixed because I think it is nearly there?
Looking again at the Hudtextures.txt perhaps should have put in Autoaim_c values in also
OK see what you mean now
ClientScheme.res
Scheme
{
Colors
{
// base colors
"White" "255 255 255 255"
"OffWhite" "255 255 255 180"
"DullWhite" "255 255 255 180"
"Orange" "255 155 0 255"
"TransparentBlack" "0 0 0 128"
"Black" "0 0 0 255"
"Blank" "0 0 0 0"
}
BaseSettings
{
"FgColor" "255 180 0 150"
"BgColor" "0 0 0 76"
"BrightDamagedFg" "255 0 0 255"
"BrightFg" "255 180 0 255"
"DamagedFg" "180 0 0 255"
"FadeFg" "255 180 0 0"
"BgHudColor" "255 180 0 32"
"Label.TextColor" "255 180 0 150"
"Label.TextBrightColor" "255 180 0 255"
"Label.TextRed" "255 180 0 255"
"Label.TextBrightRed" "255 0 0 255"
"Main.Title1.X" "53"
"Main.Title1.Y" "190"
"Main.Title1.Y_hidef" "130"
"Main.Title1.Color" "255 255 255 255"
"Main.Title2.X" "53"
"Main.Title2.Y" "190"
"Main.Title2.Y_hidef" "174"
"Main.Title2.Color" "255 255 255 0"
"Main.Menu.X" "53"
"Main.Menu.X_hidef" "76"
"Main.Menu.Y" "240"
"Main.BottomBorder" "32"
ListPanel.TextColor "OffWhite"
ListPanel.TextBgColor "Blank"
ListPanel.BgColor "TransparentBlack"
ListPanel.SelectedTextColor "Black"
ListPanel.SelectedBgColor "Orange"
ListPanel.SelectedOutOfFocusBgColor "255 155 0 128"
ListPanel.EmptyListInfoTextColor "OffWhite"
ScrollBar.Wide 17
ScrollBarButton.FgColor "White"
ScrollBarButton.BgColor "Blank"
ScrollBarButton.ArmedFgColor "White"
ScrollBarButton.ArmedBgColor "Blank"
ScrollBarButton.DepressedFgColor "White"
ScrollBarButton.DepressedBgColor "Blank"
ScrollBarSlider.FgColor "Blank" // nob color
ScrollBarSlider.BgColor "255 255 255 64" // slider background color
Slider.NobColor "108 108 108 255"
Slider.TextColor "180 180 180 255"
Slider.TrackColor "31 31 31 255"
Slider.DisabledTextColor1 "117 117 117 255"
Slider.DisabledTextColor2 "30 30 30 255"
TextEntry.TextColor "Orange"
TextEntry.BgColor "TransparentBlack"
TextEntry.CursorColor "Orange"
TextEntry.DisabledTextColor "Orange"
TextEntry.DisabledBgColor "Blank"
TextEntry.SelectedTextColor "Black"
TextEntry.SelectedBgColor "Red"
TextEntry.OutOfFocusSelectedBgColor "Red"
TextEntry.FocusEdgeColor "TransparentBlack"
//Weapon Selection
WeaponSelection.BucketColor "255 180 0 180"
WeaponSelection.BucketSelected "255 180 0 255"
WeaponSelection.BucketEnabledColor "127 90 0 90"
WeaponSelection.BucketDisabledColor "127 90 0 40"
WeaponSelection.BucketText "255 180 0 255"
WeaponSelection.IconColor "255 180 0 25"
WeaponSelection.IconSelectedColor "255 180 0 250"
WeaponSelection.AmmoColor "100 255 0 40"
WeaponSelection.AmmoSelectedColor "100 255 0 255"
WeaponSelection.AmmoLowColor "255 0 0 75"
WeaponSelection.AmmoLowSelectedColor "255 0 0 255"
}
//
//////////////////// BORDERS //////////////////////////////
//
// describes all the border types
Borders
{
BaseBorder DepressedBorder
ButtonBorder RaisedBorder
ComboBoxBorder DepressedBorder
MenuBorder RaisedBorder
BrowserBorder DepressedBorder
PropertySheetBorder RaisedBorder
FrameBorder
{
// rounded corners for frames
"backgroundtype" "2"
}
DepressedBorder
{
"inset" "0 0 1 1"
Left
{
"1"
{
"color" "Border.Dark"
"offset" "0 1"
}
}
Right
{
"1"
{
"color" "Border.Bright"
"offset" "1 0"
}
}
Top
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
Bottom
{
"1"
{
"color" "Border.Bright"
"offset" "0 0"
}
}
}
RaisedBorder
{
"inset" "0 0 1 1"
Left
{
"1"
{
"color" "Border.Bright"
"offset" "0 1"
}
}
Right
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
Top
{
"1"
{
"color" "Border.Bright"
"offset" "0 1"
}
}
Bottom
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
}
TitleButtonBorder
{
"backgroundtype" "0"
}
TitleButtonDisabledBorder
{
"backgroundtype" "0"
}
TitleButtonDepressedBorder
{
"backgroundtype" "0"
}
ScrollBarButtonBorder
{
"inset" "2 2 0 0"
Left
{
"1"
{
"color" "Border.Bright"
"offset" "0 1"
}
}
Right
{
"1"
{
"color" "Border.Dark"
"offset" "1 0"
}
}
Top
{
"1"
{
"color" "Border.Bright"
"offset" "0 0"
}
}
Bottom
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
}
ScrollBarButtonDepressedBorder
{
"inset" "2 2 0 0"
Left
{
"1"
{
"color" "Border.Dark"
"offset" "0 1"
}
}
Right
{
"1"
{
"color" "Border.Bright"
"offset" "1 0"
}
}
Top
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
Bottom
{
"1"
{
"color" "Border.Bright"
"offset" "0 0"
}
}
}
TabBorder
{
"inset" "0 0 1 1"
Left
{
"1"
{
"color" "Border.Bright"
"offset" "0 1"
}
}
Right
{
"1"
{
"color" "Border.Dark"
"offset" "1 0"
}
}
Top
{
"1"
{
"color" "Border.Bright"
"offset" "0 0"
}
}
}
TabActiveBorder
{
"inset" "0 0 1 0"
Left
{
"1"
{
"color" "Border.Bright"
"offset" "0 0"
}
}
Right
{
"1"
{
"color" "Border.Dark"
"offset" "1 0"
}
}
Top
{
"1"
{
"color" "Border.Bright"
"offset" "0 0"
}
}
}
ToolTipBorder
{
"inset" "0 0 1 0"
Left
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
Right
{
"1"
{
"color" "Border.Dark"
"offset" "1 0"
}
}
Top
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
Bottom
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
}
// this is the border used for default buttons (the button that gets pressed when you hit enter)
ButtonKeyFocusBorder
{
"inset" "0 0 1 1"
Left
{
"1"
{
"color" "Border.Selection"
"offset" "0 0"
}
"2"
{
"color" "Border.Bright"
"offset" "0 1"
}
}
Top
{
"1"
{
"color" "Border.Selection"
"offset" "0 0"
}
"2"
{
"color" "Border.Bright"
"offset" "1 0"
}
}
Right
{
"1"
{
"color" "Border.Selection"
"offset" "0 0"
}
"2"
{
"color" "Border.Dark"
"offset" "1 0"
}
}
Bottom
{
"1"
{
"color" "Border.Selection"
"offset" "0 0"
}
"2"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
}
ButtonDepressedBorder
{
"inset" "2 1 1 1"
Left
{
"1"
{
"color" "Border.Dark"
"offset" "0 1"
}
}
Right
{
"1"
{
"color" "Border.Bright"
"offset" "1 0"
}
}
Top
{
"1"
{
"color" "Border.Dark"
"offset" "0 0"
}
}
Bottom
{
"1"
{
"color" "Border.Bright"
"offset" "0 0"
}
}
}
}
BitmapFontFiles
{
"Buttons" "materials/vgui/fonts/buttons_32.vbf"
}
Fonts
{
"AchievementNotification"
{
"1"
{
"name" "Trebuchet MS"
"tall" "14"
"weight" "900"
"antialias" "1"
}
}
DebugFixed
{
"1"
{
"name" "Courier New"
"tall" "14"
"weight" "400"
"antialias" "1"
}
}
DebugFixedSmall
{
"1"
{
"name" "Courier New"
"tall" "14"
"weight" "400"
"antialias" "1"
}
}
Default
{
"1" [$WIN32]
{
"name" "Verdana"
"tall" "9"
"weight" "700"
"antialias" "1"
"yres" "1 599"
}
"2"
{
"name" "Verdana"
"tall" "12"
"weight" "700"
"antialias" "1"
"yres" "600 767"
}
"3"
{
"name" "Verdana"
"tall" "14"
"weight" "900"
"antialias" "1"
"yres" "768 1023"
}
"4"
{
"name" "Verdana"
"tall" "20"
"weight" "900"
"antialias" "1"
"yres" "1024 1199"
}
"5"
{
"name" "Verdana"
"tall" "24"
"weight" "900"
"antialias" "1"
"yres" "1200 10000"
"additive" "1"
}
}
DefaultS
{
"1"
{
"name" "Verdana"
"tall" "12"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "480 599"
}
"2"
{
"name" "Verdana"
"tall" "13"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "600 767"
}
"3"
{
"name" "Verdana"
"tall" "14"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "768 1023"
"antialias" "1"
}
"4"
{
"name" "Verdana"
"tall" "20"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "1024 1199"
"antialias" "1"
}
"5"
{
"name" "Verdana"
"tall" "24"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "1200 6000"
"antialias" "1"
}
"6"
{
"name" "Arial"
"tall" "12"
"range" "0x0000 0x00FF"
"weight" "0"
}
}
DefaultVerySmall
{
"1"
{
"name" "Verdana"
"tall" "12"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "480 599"
}
"2"
{
"name" "Verdana"
"tall" "13"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "600 767"
}
"3"
{
"name" "Verdana"
"tall" "14"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "768 1023"
"antialias" "1"
}
"4"
{
"name" "Verdana"
"tall" "20"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "1024 1199"
"antialias" "1"
}
"5"
{
"name" "Verdana"
"tall" "24"
"weight" "0"
"range" "0x0000 0x017F"
"yres" "1200 6000"
"antialias" "1"
}
"6"
{
"name" "Verdana"
"tall" "12"
"range" "0x0000 0x00FF"
"weight" "0"
}
"7"
{
"name" "Arial"
"tall" "11"
"range" "0x0000 0x00FF"
"weight" "0"
}
}
BudgetLabel
{
"1"
{
"name" "Courier New"
"tall" "14"
"weight" "400"
"outline" "1"
}
}
DebugOverlay
{
"1"
{
"name" "Courier New"
"tall" "14"
"weight" "400"
"outline" "1"
}
}
Marlett
{
"1"
{
"name" "Marlett"
"tall" "14"
"weight" "0"
"symbol" "1"
}
}
Trebuchet24
{
"1"
{
"name" "Trebuchet MS"
"tall" "24"
"weight" "900"
"range" "0x0000 0x007F"
"antialias" "1"
"additive" "1"
}
}
Trebuchet18
{
"1"
{
"name" "Trebuchet MS"
"tall" "18"
"weight" "900"
}
}
ClientTitleFont
{
"1"
{
"name" "BlackMesa"
"tall" "28"
"tall_hidef" "34"
"weight" "0"
"additive" "0"
"antialias" "1"
"custom" "1"
}
}
CreditsLogo
{
"1"
{
"name" "BlackMesa"
"tall" "48"
"weight" "0"
"antialias" "1"
"additive" "1"
"custom" "1"
}
}
"CreditsNames"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "16"
"weight" "550"
"antialias" "1"
"custom" "1"
}
}
"CreditsTitle"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "24"
"weight" "550"
"antialias" "1"
"custom" "1"
}
}
"CreditsSubTitle"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "20"
"weight" "550"
"antialias" "1"
"custom" "1"
}
}
"PickupLabel"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "16"
"weight" "550"
"antialias" "1"
"custom" "1"
}
}
"TrainOnline"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "100"
"weight" "1200"
"antialias" "1"
"custom" "1"
"blur" "3"
}
}
"TrainSpeed"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "128"
"weight" "650"
"antialias" "1"
"custom" "1"
"scanlines" "2"
"blur" "3"
}
}
"BootSeqTextVerySmall"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "12"
"weight" "1200"
"antialias" "1"
"custom" "1"
"blur" "0"
}
}
"BootSeqTextSmall"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "24"
"weight" "1200"
"antialias" "1"
"custom" "1"
"blur" "0"
}
}
"BootSeqText"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"additive" "1"
"tall" "32"
"weight" "1200"
"antialias" "1"
"custom" "1"
"blur" "0"
}
}
"CenterPrintText"
{
"1"
{
"name" "DIN 1451 Mittelschrift"
"tall" "18"
"weight" "174"
"antialias" "1"
"additive" "1"
"custom" "1"
}
}
"LargeNumber"
{
"1"
{
"name" "SV Basic Manual Bold"
"tall" "31"
"weight" "1200"
"antialias" "1"
"custom" "1"
}
}
"SmallNumber"
{
"1"
{
"name" "SV Basic Manual"
"tall" "14"
"weight" "500"
"antialias" "1"
"custom" "1"
}
}
"VerySmallNumber"
{
"1"
{
"name" "Tahoma"
"tall" "7"
"weight" "500"
"antialias" "1"
"custom" "1"
}
}
"CloseCaption_Normal"
{
"1"
{
"name" "Tahoma"
"tall" "26"
"weight" "500"
}
}
"CloseCaption_Italic"
{
"1"
{
"name" "Tahoma"
"tall" "26"
"weight" "500"
"italic" "1"
}
}
"CloseCaption_Bold"
{
"1"
{
"name" "Tahoma"
"tall" "26"
"weight" "900"
}
}
"CloseCaption_BoldItalic"
{
"1"
{
"name" "Tahoma"
"tall" "26"
"weight" "900"
"italic" "1"
}
}
"CloseCaption_Small"
{
"1"
{
"name" "Tahoma"
"tall" "16"
"tall_hidef" "24"
"weight" "900"
"range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A
}
}
Crosshairs
{
"1"
{
"name" "HalfLife2"
"tall" "40"
"weight" "0"
"antialias" "0"
"additive" "1"
"custom" "1"
"yres" "1 10000"
}
}
QuickInfo
{
"1"
{
"name" "HL2cross"
"tall" "28"
"weight" "0"
"antialias" "1"
"additive" "1"
"custom" "1"
}
}
CustomFontFiles
{
"1" "resource/HALFLIFE2.ttf"
"2" "resource/HL2crosshairs.ttf"
"3" "resource/HL2EP2.ttf"
"4" "resource/blackmesa.ttf"
"6" "resource/din1451m.ttf"
"7" "resource/SVBasicManual-Bold.ttf"
}
}
Hudtextures.txt
[code]“sprites/640_hud”
{
TextureData
{
“crosshair”
{
“file” “sprites/qi_center”
“x” “0”
“y” “0”
“width” “40”
“height” “40”
}
“crosshair_left”
{
“font” “QuickInfo”
“character” “(”
}
“crosshair_right”
{
“font” “QuickInfo”
“character” “)”
}
“crosshair_left_full”
{
“font” “QuickInfo”
“character” “[’
}
‘crosshair_right_full’
{
‘font’ ‘QuickInfo’
‘character’ ']”
}
“crosshair_left_empty”
{
“font” “QuickInfo”
“character” “{”
}
“crosshair_right_empty”
{
“font” “QuickInfo”
“character” “}”
}
“crosshair_default”
{
“file” “sprites/crosshairs”
“x” “0”
“y” “48”
“width” “24”
“height” “24”
}
“viewhair”
{
“file” “sprites/hud/v_crosshair2”
“x” “0”
“y” “0”
“width” “32”
“height” “32”
}
“gunhair”
{
“file” “sprites/hud/v_crosshair1”
“x” “0”
“y” “0”
“width” “32”
“height” “32”
}
"progress_bar"
{
"file" "sprites/hud1"
"x" "238"
"y" "0"
"width" "10"
"height" "28"
}
"plushair"
{
"font" "Crosshairs"
"character" "Q"
// “file” “sprites/crosshairs”
// “x” “0”
// “y” “24”
// “width” “24”
// “height” “24”
}
}
}
}
}
[/code]
Hudlayout.res
[code]“resource/HudLayout.res”
{
HudCredits
{
“fieldName” “HudCredits”
“visible” “1”
“enabled” “1”
“xpos” “0”
“ypos” “0”
“wide” “640”
“tall” “480”
“paintbackground” “0”
}
CHudEndCredits
{
"fieldName" "CHudEndCredits"
"visible" "1"
"enabled" "1"
"xpos" "0"
"ypos" "0"
"wide" "640"
"tall" "480"
"paintbackground" "0"
"LogoX" "128"
"LogoY" "32"
"LogoW" "256"
"LogoH" "32"
"BgX" "0"
"BgY" "0"
"BgW" "640"
"BgH" "480"
"imageborder" "1"
"imagexoffset" "128"
"imagesize" "96"
"imagespacing" "16"
"namesxoffset" "64"
"defaultspacing" "6"
"titlespace" "32"
"subtitlespace" "32"
"TitleFont" "CreditsTitle"
"SubTitleFont" "CreditsSubTitle"
"NameFont" "CreditsNames"
"QuoteFont" "BootSeqTextVerySmall"
"TitleColor" "190 223 245 255"
"SubTitleColor" "255 228 181 255"
"NameColor" "255 255 255 255"
"QuoteColor" "200 228 181 255"
}
HudChat
{
"fieldName" "HudChat"
"visible" "0"
"enabled" "1"
"xpos" "0"
"ypos" "0"
"wide" "4"
"tall" "4"
}
HUDQuickInfo
{
"fieldName" "HUDQuickInfo"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
CHudDevInfo
{
"fieldName" "CHudDevInfo"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
CHudBootSequence
{
"fieldName" "CHudBootSequence"
"enabled" "1"
"paintbackground" "0"
"xpos" "0"
"ypos" "0"
"wide" "640"
"tall" "480"
"visible" "0"
}
CHudBugNodes
{
"fieldName" "CHudBugNodes"
"enabled" "1"
"paintbackground" "0"
"xpos" "0"
"ypos" "0"
"wide" "640"
"tall" "480"
"visible" "1"
}
CHudWeaponSelection
{
"fieldName" "CHudWeaponSelection"
"enabled" "1"
"paintbackground" "0"
"xpos" "15"
"ypos" "15"
"wide" "640"
"tall" "480"
"visible" "1"
"xgap" "2"
"ygap" "1"
}
CHudWeaponPanel
{
"enabled" "1"
"font" "VerySmallNumber"
"textAlignment" "east"
"paintbackground" "1"
"visible" "1"
"brighttext" "1"
"bucket_box" "10"
"selection_w" "86"
"selection_h" "22"
}
CHudAir
{
"fieldName" "CHudAir"
"enabled" "1"
"xpos" "10"
"ypos" "r130"
"wide" "60"
"tall" "60"
"visible" "1"
"paintbackground" "0"
"textAlignment" "west"
}
CHudCrosshair
{
"fieldName" "CHudCrosshair"
"textAlignment" "center"
"paintbackground" "0"
"brighttext" "1"
"centerwrap" "1"
}
CHudHealthDot
{
"enabled" "1"
"scaleImage" "1"
"drawColor" "FgColor"
"xpos" "15"
"ypos" "r41"
"wide" "10"
"tall" "10"
"visible" "1"
"paintbackground" "1"
}
CHudPrimaryAmmoIcon
{
"enabled" "1"
"scaleImage" "1"
"drawColor" "FgColor"
"xpos" "r43"
"ypos" "r36"
"xoffset_noclip" "-40"
"yoffset_noclip" "0"
"wide" "15"
"tall" "15"
"visible" "1"
"paintbackground" "1"
"shiftime" "0.1"
}
CHudSecondaryAmmoIcon
{
"enabled" "1"
"scaleImage" "1"
"drawColor" "FgColor"
"xpos" "r20"
"ypos" "r36"
"xoffset_noclip" "0"
"yoffset_noclip" "0"
"wide" "15"
"tall" "15"
"visible" "1"
"paintbackground" "1"
"shiftime" "0.1"
}
CHudHealth
{
"enabled" "1"
"font" "LargeNumber"
"xpos" "13"
"ypos" "r42"
"wide" "74"
"tall" "26"
"visible" "1"
"paintbackground" "0"
"textAlignment" "east"
}
CHudHEV
{
"enabled" "1"
"font" "LargeNumber"
"xpos" "88"
"ypos" "r44"
"wide" "74"
"tall" "30"
"visible" "1"
"paintbackground" "0"
"textAlignment" "east"
}
CHudAmmoDot
{
"enabled" "1"
"scaleImage" "1"
"drawColor" "FgColor"
"xpos" "r128"
"ypos" "r40"
"wide" "10"
"tall" "10"
"visible" "1"
"paintbackground" "1"
}
CHudClip
{
"enabled" "1"
"font" "LargeNumber"
"textAlignment" "east"
"xpos" "r147"
"ypos" "r44"
"wide" "74"
"tall" "30"
"visible" "1"
"paintbackground" "0"
"textAlignment" "east"
}
CHudVerticalAmmoSeparator
{
"enabled" "1"
"scaleImage" "1"
"drawColor" "BrightFg"
"xpos" "r70"
"ypos" "r41"
"wide" "5"
"tall" "20"
"visible" "1"
"paintbackground" "1"
}
CHudPrimaryAmmo
{
"enabled" "1"
"font" "SmallNumber"
"xpos" "r101"
"ypos" "r43"
"wide" "60"
"tall" "21"
"visible" "1"
"paintbackground" "0"
"textAlignment" "east"
}
CHudSecondaryAmmo
{
"enabled" "1"
"font" "SmallNumber"
"xpos" "r63"
"ypos" "r43"
"wide" "42"
"tall" "21"
"visible" "1"
"paintbackground" "0"
"textAlignment" "east"
}
CHudItemPickup
{
"enabled" "1"
"paintbackground" "0"
"xpos" "r212"
"ypos" "r72"
"wide" "200"
"tall" "24"
"visible" "1"
"shifttime" "0.25"
"reverse" "1"
"verticalshift" "0"
"fadetime" "0.5"
"fadedelay" "1.5"
"fadeonlyvisible" "0"
"fadeonlytop" "0"
}
CHudIntroCredits
{
"enabled" "1"
"paintbackground" "0"
"xpos" "20"
"ypos" "r50"
"wide" "300"
"tall" "35"
"visible" "1"
"delaystart" "28"
"shifttime" "2"
"verticalshift" "1"
"fadetime" "6.0"
"fadedelay" "3.5"
"fadeonlyvisible" "1"
"fadeonlytop" "1"
}
CHudIntroCreditsLabel
{
"enabled" "1"
"font" "CreditsNames"
"textAlignment" "west"
"paintbackground" "0"
"wide" "300"
"tall" "35"
"visible" "1"
"brighttext" "1"
}
CHudWeaponPickup
{
"enabled" "1"
"paintbackground" "0"
"xpos" "r83"
"ypos" "116"
"wide" "75"
"tall" "244"
"visible" "1"
"shifttime" "0"
"verticalshift" "1"
"fadetime" "0.5"
"fadedelay" "3.0"
"fadeonlyvisible" "1"
"fadeonlytop" "0"
}
CHudWeaponPickupLabel
{
"enabled" "1"
"font" "PickupLabel"
"textAlignment" "east"
"paintbackground" "0"
"wide" "150"
"tall" "48"
"visible" "1"
"brighttext" "1"
}
CHudDamageDirection
{
"enabled" "1"
"paintbackground" "0"
"xpos" "0"
"ypos" "0"
"wide" "640"
"tall" "480"
"visible" "1"
}
CHudDamageType
{
"enabled" "1"
"paintbackground" "0"
"xpos" "12"
"ypos" "r72"
"wide" "200"
"tall" "20"
"visible" "1"
"shifttime" "0.25"
"verticalshift" "0"
"fadetime" "1.5"
"fadedelay" "1.5"
"fadeonlyvisible" "0"
"fadeonlytop" "0"
}
HudGeiger
{
"fieldName" "HudGeiger"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
HudMessage
{
"fieldName" "HudMessage"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
HudHintDisplay
{
"fieldName" "HudHintDisplay"
"visible" "0"
"enabled" "1"
"xpos" "r120"
"ypos" "r340"
"wide" "100"
"tall" "200"
"text_xpos" "8"
"text_ypos" "8"
"text_xgap" "8"
"text_ygap" "8"
"TextColor" "255 170 0 220"
"PaintBackgroundType" "0"
}
HudHintKeyDisplay
{
"fieldName" "HudHintKeyDisplay"
"visible" "0"
"enabled" "1"
"xpos" "r120"
"ypos" "r340"
"wide" "100"
"tall" "200"
"text_xpos" "8"
"text_ypos" "8"
"text_xgap" "8"
"text_ygap" "8"
"TextColor" "255 170 0 220"
"PaintBackgroundType" "0"
}
HudAnimationInfo
{
"fieldName" "HudAnimationInfo"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
HudPredictionDump
{
"fieldName" "HudPredictionDump"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
HudMessage
{
"fieldName" "HudMessage"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
AchievementNotificationPanel
{
"fieldName" "AchievementNotificationPanel"
"visible" "1"
"enabled" "1"
"xpos" "0"
"ypos" "10"
"wide" "f60"
"tall" "100"
"paintbackground" "0"
}
HudCommentary
{
"fieldName" "HudCommentary"
"xpos" "c-190"
"ypos" "350"
"wide" "380"
"tall" "40"
"visible" "1"
"enabled" "1"
"PaintBackgroundType" "2"
"bar_xpos" "50"
"bar_ypos" "20"
"bar_height" "8"
"bar_width" "320"
"speaker_xpos" "50"
"speaker_ypos" "8"
"count_xpos_from_right" "10" // Counts from the right side
"count_ypos" "8"
"icon_texture" "vgui/hud/icon_commentary"
"icon_xpos" "0"
"icon_ypos" "0"
"icon_width" "40"
"icon_height" "40"
}
HudMenu
{
"fieldName" "HudMenu"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
HudCloseCaption
{
"fieldName" "HudCloseCaption"
"visible" "0"
"enabled" "1"
"xpos" "c-250"
"ypos" "276"
"wide" "500"
"tall" "136"
"BgAlpha" "128"
"GrowTime" "0.25"
"ItemHiddenTime" "0.2" // Nearly same as grow time so that the item doesn't start to show until growth is finished
"ItemFadeInTime" "0.15" // Once ItemHiddenTime is finished, takes this much longer to fade in
"ItemFadeOutTime" "0.3"
"topoffset" "0"
}
HUDAutoAim
{
"fieldName" "HUDAutoAim"
"visible" "1"
"enabled" "1"
"wide" "640"
"tall" "480"
}
HudVehicle
{
"fieldName" "HudVehicle"
"visible" "0"
"enabled" "0"
"wide" "640"
"tall" "480"
}
HudTrain
{
"fieldName" "HudTrain"
"visible" "0"
"enabled" "0"
"wide" "640"
"tall" "480"
}
HudHistoryResource
{
"fieldName" "HudHistoryResource"
"visible" "0"
"enabled" "0"
"wide" "640"
"tall" "480"
}
}
HudCrosshair
{
“fieldName” “HudCrosshair”
“visible” “1”
“enabled” “1”
“wide” “640”
“tall” “480”
}
} [/code]
weapon_mp5.txt
[code]WeaponData
{
printname “Mp5”
bucket “2”
bucket_position “0”
clip_size “30”
item_flags “0”
playermodel “models/weapons/w_mp5.mdl”
primary_ammo “9mm”
secondary_ammo “grenade_mp5”
viewmodel “models/weapons/v_mp5.mdl”
weight “3”
anim_prefix “mp5”
fov “54”
SoundData
{
double_shot "weapon_mp5.Double"
reload_npc "weapon_mp5.Reload_NPC"
empty "weapon_mp5.Empty"
single_shot "weapon_mp5.Single"
single_shot_npc "weapon_mp5.Single_NPC"
}
}
“crosshair”
{
“font” “Crosshairs”
“character” “Q”
}
“autoaim”
{
“file” “sprites/crosshairs”
“x” “0”
“y” “48”
“width” “24”
“height” “24”
}
}[/code]
DON’T USE THIS CODE IT HAS AN ERROR BUT IT DOES DISPLAY A FONT BASED CROSSHAIR AND ONLY WORKS ON THE MP5
THIS
need somone who knows coding it could be something really simple
I’d like to apologize for not being able to complete PART 2 of the Mini-Guide - there are too many things I’ve got to attend to in Real-Life, so I don’t find enough time to work on it.
Not to mention the fact that things didn’t quite work out the way how I wanted them to, reason being the lack of the possibility to change the reticle’s color or size, without digging too deep in the coding and scripting aspect, for instance.
Sorry, but I hope you’ll understand,
- Jenova