crosshair . -1 reply

Please wait...

quickprime

Slightly cooler than a n00b

50 XP

5th April 2003

0 Uploads

30 Posts

0 Threads

#1 14 years ago

is there a mod or is there a way to make your crosshair to be a . :naughty: instead of a x :fistpunch: ?




Destrucktion_XL

I like make go boom.

50 XP

19th April 2004

0 Uploads

205 Posts

0 Threads

#2 14 years ago

I found in the game.rfa there is a file called game/init/Menu.con. Using winRFA in the mod dev toolkit I just looked at the top of the file content in the lower window when you select it and edited the first two lines. Game.CrossHairRadius 5

Game.CrossHairSize 5

(Unpacking the game.rfa seems to screw it up when you repack it, and blows up the file size to a meg from a 100k. Serious compression...) I changed them to 1 like so.. Game.CrossHairRadius 1 Game.CrossHairSize 1 save changes with winRFA and run my mod.. :mad: It just shrinks the center of the crosshair but not the x-hair lines, I didnt try a negative value, but that might work.:uhm: Or at least change it to four dots instead of a cross hair. It seems the default weapon crosshair is hardcoded. After all, it is dynamic... but some weapons like the knife and grenade have a crosshair that seems to be a graphic. I searched through almost all the textures and found one that resembles this graphic called hk.dds found in the menu.rfa :eek: menu/texture/hk.dds I changed it to a dot and set a gun to have the same crosshair type as the knife by changing the guns object.con located in Objects\HandWeapons\gun. from ObjectTemplate.crossHairType CHTCrossHair to ObjectTemplate.crossHairType CHTIcon This changed the crosshair to the same as the knife, but changing the hk.dds file did not affect the knife crosshair... :confused: Desperatly I tried changing ObjectTemplate.crossHairType CHTIcon to ObjectTemplate.crossHairType CHTDot, and that too did no good. ALso ,I think CHT stands for Cross Hair Template... SO it seems to me that there is a graphic floating somewhere in one of the .rfa files that eluded me... Im sure a BF42 modder could tell you whats up. Anyone else???




Destrucktion_XL

I like make go boom.

50 XP

19th April 2004

0 Uploads

205 Posts

0 Threads

#3 14 years ago

It turns out that the hk.dds modifies is the crosshair graphic for inside of the UH Assault! When I changed it into a dot the Heli crosshair is now a dot and works GREAT!!! Im now looking into wether or not I can use the heli crosshair for other weapons. Im sure all I have to do is replace the ObjectTemplate.crossHairType CHT tag with the heli weapon ObjectTemplate.crossHairType CHT tag and it should work. Ill let you know If I get it...




Destrucktion_XL

I like make go boom.

50 XP

19th April 2004

0 Uploads

205 Posts

0 Threads

#4 14 years ago

WOW... :D It sure works... the funny thing is that I must have not been packing my mod right, or I was packing the wrong copy of it! It was actually working the whole time ! On all the guns I had set to ObjectTemplate.crossHairType CHTIcon. LOL :lol: All you have to do is change the hk.dds image with photoshop into a dot ( make sure you change the alpha channel in the channels panel also) this image is located in menu/texture/hk.dds Then replace the ObjectTemplate.crossHairType CHTCrosshair tag (which is the dynamic X-hair) with ObjectTemplate.crossHairType CHTIcon in the object.con of the weapon you want to have dot crosshairs. The weapon object.con's are located in the Objects\HandWeapons\ directory. COOL! I bet you can make a whole bunch of different xhairs with that. Unfortunately the ObjectTemplate.crossHairType CHTIcon is linked to only one graphic and I don't know how they are linked. I would assume though that there is a code maybe in the game.rfa that defines the relationship between the object code and which graphics that specific code is adding. You could probly add ObjectTemplate.crossHairType CHTIcon2 and ObjectTemplate.crossHairType CHTIcon3 for new xhairs and relate them to hk2.dds and hk3.dds. THis means I can have a custom x-hair for all my futuristic weapons Im gonna make! First the relationship between ObjectTemplate.crossHairType CHTIcon and hk.dds needs to be found be4 that can happn. Happy dot making! :D




Destrucktion_XL

I like make go boom.

50 XP

19th April 2004

0 Uploads

205 Posts

0 Threads

#5 14 years ago

One other thing, if you want the guns to have dots and a crosshair in the heli, just switch the heli ObjectTemplate.crossHairType CHTIcon to ObjectTemplate.crossHairType CHTCrossHair and you will have the dynamic crosshair for the heli. A quick workaround until the code for the relationship between ObjectTemplate.crossHairType CHTIcon and the graphic it loads. Let me know if that helps. THanx!