Rangefinder Scopes (Battlefield 2)
Hello everybody! Tell me how to fit the rangefinder into the sights of sniper rifles? It is in the scope of tanks, but how and where to find it? In the "tweak" of the tanks themselves or in the "menu" archives?_Zuko_42_
Found it like. these lines ?:
rem ------------ range to target text ---------------
hudBuilder.createPictureNode T90Hud T90RangeBox 146 451 32 16
hudBuilder.setPictureNodeTexture Ingame Vehicles Icons Hud Land T90 T90textbox.tga
hudBuilder.setNodeColor 0.925 0.424 0.267 1
hudBuilder.addNodeBlendEffect 7 2
hudBuilder.createPictureNode T90Hud T90RangeText \\\\\\\\\\\\\\\\\\ made
hudBuilder .tga
hudBuilder.setNodeColor 0.925 0.424 0.267 1
hudBuilder.addNodeBlendEffect 7 2
hudBuilder.createTextNode T90Hud T90RangeLabel 149 454 101 10
hudBuilder.setTextNodeStyle Fonts6.dif 2Font
hudBuilder.setTextNodeStringVariable TargetDistanceString
hudBuilder.setNodeColor 0.925 0.424 0.267 1
hudBuilder.addNodeBlendEffect 7 2
How do you apply them to snipers?
_Zuko_42_
The sniper herself just tried to add a line to the WeaponHud section:
ObjectTemplate.weaponHud.hasRangeFinder 1
But nothing came of it.
Strelec-zmeya
ObjectTemplate.weaponHud.hasRangeFinder 1
But nothing came of it.
This is not enough, we must also indicate where to draw meters to the target.
In BF2, for snipers, altGuiIndex with number 52 is used, the same as for other barrels when aiming through a front sight or through optics (but without a collimator sight). Therefore, to better make your snayperok altGuiIndex
Spoiler
hudBuilder.createSplitNode IngameHud SniperRifleHud
hudBuilder.setNodeLogicShowVariable the EQUAL GuiIndex 99
hudBuilder.addNodeBlendEffect July 2
hudBuilder.createPictureNode SniperRifleHud SniperRifleHitIndication 384 284 32 32
hudBuilder.setPictureNodeTexture Ingame / CrossHair / vsp_HitIndicator.tga
CrossHairColorRed CrossHairColorGreen CrossHairColorBlue hudBuilder.setNodeRGBVariables
hudBuilder.setNodeAlphaVariable HitIndicatorIconAlpha
hudBuilder.setNodeShowVariable HitIndicatorIconShow
hudBuilder.createTextNode SniperRifleHud SniperRifleRangeLabel 416 316 40 10
hudBuilder.setTextNodeStyle Fonts / vehicleHudFont_6.dif 1
hudBuilder.setTextNodeStringVariable TargetDistanceString
hudBuilder.setNodeColor 0 1 0 0.8
Save as Menu_server.zip HUD HudSetup Weapons HUDElementsSniper.con (admitted)
Add to Menu_server.zip HUD HudSetup Weapons HUDSetupWeapons.con the line
run HUDElementsSniper.con
In sniper tweaks in the WeaponHud section, replace altGuiIndex 52 with 99
Well, add to every fireman ObjectTemplate.weaponHud.hasRangeFinder 1
_Zuko_42_
Thank you very much !!! Dude you're cool! I did everything and everything works. )))
Here are just a couple of questions .. Where in the game can you find at what values ​​you can achieve the desired color?
As I understand it, the line hudBuilder.setNodeColor 0 0.8 0 1 is responsible for this. I would like to make the color blue.
And the second question is how to change the location of the indicator? Is this hudBuilder.createTextNode SniperRifleHud SniperRifleRangeLabel 416 316 40 10? It's just that on some snipers the scope covers part of the indicator.
Strelec-zmeya As
I understand it, the line hudBuilder.setNodeColor 0 0.8 0 1 is responsible for this. I would like to make the color blue.
And the second question is how to change the location of the indicator? Is this hudBuilder.createTextNode SniperRifleHud SniperRifleRangeLabel 416 316 40 10? It's just that on some snipers the scope covers part of the indicator.
Yes that's right