Modifying the default crosshair?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
LusciousLeafeon
Posts: 1
Joined: Fri Jan 31, 2020 4:02 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Modifying the default crosshair?

Post by LusciousLeafeon »

I'm new to bf2 modding, and I'm wondering if there's an easy way to replace the default crosshair with a custom one? i want to remove the default crosshair/reticule with the cooldown bar and have a static crosshair
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Modifying the default crosshair?

Post by Teancum »

http://gametoast.com/viewtopic.php?f=27&t=13806 -- under the HUD / Shell section. I should warn you that it involves compiling main game files.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Modifying the default crosshair?

Post by AnthonyBF2 »

The stock crosshair is a 3D model that gets referenced by the HUD file. You'll need to code a new HUD and prepare new 3D model to be called by the new HUD.

If I recall correctly, HUD file and the stuff it references all go inside ingame.lvl so ingame.lvl is the file you need to produce a new version of.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Modifying the default crosshair?

Post by Anakin »

God, no!!

Everything was correct until it came to the game integration.
So you have three ways to bring your crosshair ingame, once you designed the 3d model.
1) The easy, the fast way, that leads directly to the dark side: Well you recompile the stock file and replace it
2) The alliance way: You say your mod is only compatible with remaster 1.3. In that case you just munge your msh + a modified version of the stock HUD file, so that your msh is used and the headbar is removed, into a lvl file and replace the remaster's hud file.
3) The hard way: You go with the HUD tutorial, write a wrapper script to detect ingame calls and use the kill bmp, kill msh and kill tga variant to remove the things you don't like and then you load your custom hud in addition to the stock one. It may be hard to remove everything because the headbar uses white tga as far as i remember and it's used by everything. So you'd need to make a new white tga and add all things that use it to your custom hud file, but with a not killed version of white tga.
Post Reply