Left 4 Dead 2

Left 4 Dead 2

Urik Crosshair Support (for non-urik huds, global)
22 Comments
aldsTM 12 Jan, 2024 @ 3:42am 
Hello again Urik! Just wanted to drop by to let you know that I've made an improvement on my HUD from last time, and of course, I've given you credit for the custom crosshair support I integrated into it.

The new and improved HUD is here on the Steam Workshop if you wanna take a look.

Thank you again for your contributions!
Urik  [author] 28 Sep, 2022 @ 8:03am 
@aldsTM Looks cool, thanks and you're welcome :cryptowink:
aldsTM 28 Sep, 2022 @ 7:27am 
Hello Urik! I don't know if you were the first one to figure out hudlayout.res and how to add elements to it such that they allow support for other UI elements like a custom crosshair, but as a newbie modder I wanted to thank you for the knowledge. I've used your idea to add Urik/SCHISM crosshair support to another existing HUD mod , and I wanted to give you credit for the idea.

Because of you, the mod that I've made contains a very small dot crosshair, but still allows support for an additional Urik/SCHISM crosshair, like SCHISM's Tri-Angled crosshair (therefore making it so that the Tri-Angled crosshair has a dot in the middle). It was an interesting discovery, so thank you for that.
Anderson 15 Jul, 2021 @ 3:45am 
Игра, временами, вылетает именно с модом. После отключении вылеты прекращаются.
Сырой Понос 16 Mar, 2019 @ 1:34pm 
гавно ебанное ссука!
Блять, я просто хочу нормальный прицел, сукаа...
Antares93 18 Oct, 2017 @ 5:30am 
Will this conflict with poM's No HUD mod?
Urik  [author] 24 Oct, 2016 @ 5:14am 
There is file called hudlayout.res and it's like the main gui file. It defines areas and dimensions for most other elements (self panel, teammate panels, scoreboards, timer panels, etc ). And while the majority of these other elements have their own .res files so that they can be edited (to some degree) without touching hudlayout, weapon panel can be only modified in hudlayout.res since it doesn't have its own file.
Being a new custom element (image panel), the only way custom crosshair can be added is into the hudlayout.res (because it covers entire screen space and thus you can put xhair in the center). So that's why we have so many conflicts.
For example, "vertical" teampanels alignment usually requires modifying the hudlayout, because otherwise there just isn't enough space vertically (because hudlayout defines the area for teamdisplayhud.res) Which would again conflict if there's also weapon panel mod etc.
The drawback of the "global" method is that it shows always including ~
Urik  [author] 24 Oct, 2016 @ 5:14am 
~ spectator screen and infected gameplay. The other way (survivor-only) which I used in my huds modifies additional files so it isn't possible to use with other
huds without re-editing those huds. You may have noticed my crosshair uses some weird material .vmt it's because it's the only files in default l4d2 which is a) unused (it's some hl2/cs leftover junk) b) is transparent/empty , so that you don't get pink
checkerboard without crosshair vpk. That way I could have crosshair supported in the my hud without too much complications.
I don't know about Neun weapon panel, it must've been written in description about differences.
There's a tool called BeyondCompare Pro (it's commercial, but there's *****ed versions on torrent trackers), I use it to compare files including text files like .res , makes it easier to see differences.
If you use some custom hud (not my), I could take some time to implement the crosshair support (survivor version) into that mod if you really need.
KoMiKoZa 24 Oct, 2016 @ 4:40am 
May I ask what's exactly special about NeunGUI weapon panel? I'm a NeunGUI user myself, but I don't use the weapon panel addon.

Just recenlty I've made a custom crosshair mod, using Urik's method to avoid conflicts, because the original custom crosshair-change method messes up the default weapon panel (exactly because of hudlayout.res).

You can see yourself how it looks from the screenshots here .
Eery Jan 22 Oct, 2016 @ 3:00pm 
Ahh okay.
Urik  [author] 22 Oct, 2016 @ 2:32pm 
@AxiomNachtFox™ unfortunately not, it's likely hudlayout.res and almost all hud mods rely on this conflicting file. It could be done if Zeon adopted the same crosshair scheme I came up for my hud mods, I can't however enforce rules on everyone :)
Eery Jan 22 Oct, 2016 @ 1:55pm 
This conflicts with NuenGUI Weapon Panel, anyway to fix this?
ÄlskarDuKaniner 23 Jan, 2016 @ 3:27am 
Its not working, i'm using improved stock hud but it wont work.
hif 16 Nov, 2015 @ 12:48am 
Thanks
Urik  [author] 16 Nov, 2015 @ 12:31am 
@NI HAO LI LAO nope
hif 15 Nov, 2015 @ 11:53pm 
If i used simple hud would i need to install this?
Urik  [author] 8 Nov, 2015 @ 6:09am 
The original one can be disable with cl_crosshair_brightness 0 , I can't, however, remember if it doesn't affect the infected xhair too. The difference between this crosshair support and the other one is with this one, the custom crosshair is attached to global hudlayout.res resource file, so as result, it draws always, that is, always. Regardless if you're a survivor, infected or spectator. The other version of crosshair support in addition to hudlayout.res uses teamdisplayhud.res file so the crosshair only appears when you're playing on survivor team. So difference between them is in technical implementation and as a result less/more chance of conflict with other hud mods. But afterall, a lot of time conflicts are inevitable as everyone's gui/hud mod are different in terms of amount of modified configuration (.res) and texture files, and it's not possible to foresee and avoid it all.
智慧树上智慧果 7 Nov, 2015 @ 9:49pm 
what's the difference between this MOD and “Crosshair support (for default hud, survivors only)”?what'smore,How to remove the original crosshair,the original crosshair coexists with the mod
StraaZi 19 Jul, 2014 @ 4:25am 
okok.. would you please make one with a red dot and a full red circle around it would be wonderful if you could do it for us
Urik  [author] 19 Jul, 2014 @ 4:14am 
@StraaZi it's just the enabler (support) vpk, crosshairs are in that collection above (" crosshairs ")
StraaZi 18 Jul, 2014 @ 11:37pm 
hmm haw to use it =/ u press a key in game ???