PDA

View Full Version : LaserTarget_vehicle correpondence


HakunaMatata
12-13-2005, 01:00 PM
Hi again ;)

Does anyone knew what the LaserTarget_vehicle correpondence is.
I cant find any HeatTarget_vehicle. :confused:

I would like to knew what it is that triggers the heatwarning. Adding a HeatObject is not enough. There has to be at least one more parameter.

wolfi
12-14-2005, 08:38 AM
Add this lines to your vehicle's tweakfile:

rem ---BeginComp:WarningHud ---
ObjectTemplate.createComponent WarningHud
ObjectTemplate.WarningHud.firstWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.secondWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserlockic on.tga
rem ---EndComp ---

This should help

HakunaMatata
12-14-2005, 09:25 AM
Hi Wolfi

Thanks for responding. I understand when I read your awnser that my question was badly formulated.

In vehicles there is this line: LaserTarget_vehicle and those lines you posted:
rem ---BeginComp:WarningHud ---
ObjectTemplate.createComponent WarningHud
ObjectTemplate.WarningHud.firstWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.secondWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserlockic on.tga
rem ---EndComp ---

If you remove one of these you get no warning.

My question is how does it work for airvehicles?
Why is there no HeatTarget_vehicle? Just adding an HeatObject and
rem ---BeginComp:WarningHud ---
ObjectTemplate.createComponent WarningHud
ObjectTemplate.WarningHud.warningType 2
ObjectTemplate.WarningHud.firstWarningSound HUD_Heatseeker_Track_Warning
ObjectTemplate.WarningHud.secondWarningSound HUD_Heatseeker_Lock_Warning
ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserLockIc on.tga
rem ---EndComp ---
to a land vehicle is obviously not the way to do it. :confused:

BTW Im working with the altas files and maybe Ill can reveal the connection between the "large_laserlockicon.TGA", MemeAtlas.tai, MemeAtlas.tac and MemeAtlas_020.dds. :) There has to be cordinates in the tga file that has to match those in the taifile. :hmm:

wolfi
12-14-2005, 09:40 AM
To make ground vehicles visible in the bomb sight of a jet just add
ObjectTemplate.addTemplate LaserTarget_Vehicle

To enable the warning sound for ground vehicles (SRAW, Eryx, ..) add
rem ---BeginComp:WarningHud ---
ObjectTemplate.createComponent WarningHud
ObjectTemplate.WarningHud.firstWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.secondWarningSound HUD_Laser_Track_Warning
ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserlockic on.tga
rem ---EndComp ---

If you want to make ground vehicles visible and lock-able for the heatseeking missiles, add
ObjectTemplate.addTemplate HeatObject

If you want to hear the heatseeking sound in the target vehicle add
rem ---BeginComp:WarningHud ---
ObjectTemplate.createComponent WarningHud
ObjectTemplate.WarningHud.warningType 2
ObjectTemplate.WarningHud.firstWarningSound HUD_Heatseeker_Track_Warning
ObjectTemplate.WarningHud.secondWarningSound HUD_Heatseeker_Lock_Warning
ObjectTemplate.WarningHud.warningIcon Ingame\GeneralIcons\Action_Icons\large_laserLockIc on.tga
rem ---EndComp ---

If i got you wrong repeat your question, lol

idk how to work with atlas files, sorry :/

HakunaMatata
12-14-2005, 09:57 AM
Thanks m8. Ill try harder after lunch, or I will keep repeting my self and the question :D

About the atlas Im hoping to understand it and HELP you in the future. ;)

wolfi
12-14-2005, 10:29 AM
Just a little question: German? If yes, visit our forum at http://bf2-mods.de
There are some modders around there, maybe you can get german help ;)

Im sure i can learn to understand the atlas system, if i had more time for this.
I dont know how to work with the nvidia atlas tools but im the kind of modder who tends to do it the old-fashioned way by editing the tai files manually :laugh:

HakunaMatata
12-14-2005, 10:43 AM
No, Im an old swede (with a, not so old, german car tho).
My german reading skills is limited to BMW. :D

HakunaMatata
12-14-2005, 11:54 AM
Darn, I am embarrassed. My old eyes could not see the difference between:
ObjectTemplate.createComponent WarningHud
and:
ObjectTemplate.createComponent WarningHud
ObjectTemplate.WarningHud.warningType 2

:rofl: (at my self)

thx for your exceptional patience. :salute:

wolfi
12-14-2005, 11:58 AM
No, Im an old swede (with a, not so old, german car tho).
My german reading skills is limited to BMW. :D
Sorry about that :p And haha, go buy some glasses :D

HakunaMatata
12-14-2005, 12:45 PM
I have glasses -> 8D

imported_annerajb
12-14-2005, 04:50 PM
ps you are not going to get far manually editing tai you may use rexman tool its makes easier for adding a picture to and atlas.

HakunaMatata
12-14-2005, 06:33 PM
Isn't the tai file just the (missing) link between the tga-image and the atlas file? Ill look into rexmans tool.

BTW wolfi, do you knew if its possible to have both warningtypes in one vehicle? ;)

imported_CheetahShrk
12-14-2005, 08:56 PM
Isn't the tai file just the (missing) link between the tga-image and the atlas file? Ill look into rexmans tool.

BTW wolfi, do you knew if its possible to have both warningtypes in one vehicle? ;)
Thats what tac files and atlaslist.con is for, make a new tac file, add the name of the tac file to the atlaslist.con, in the tac file put the data needed for your new images, then run dice_textureatlastools.exe.

HakunaMatata
12-16-2005, 08:48 AM
I found this: http://bfeditor.gotfrag.com/forums/viewtopic.php?t=1804.
And its explains most of it.

thx :)

wolfi
12-16-2005, 10:49 AM
BTW wolfi, do you knew if its possible to have both warningtypes in one vehicle? ;)
idk, in the bf2 demo i tried to make the predator heat-seeking and the tanks heat targets.
didnt work, who knows why.. :(

thanks for the link, maybe i can need it later

HakunaMatata
12-17-2005, 07:29 PM
To make a vehicle both a laser- and heattarget is i easy. Keep the lasertarget_vehicle in the hull and put the heatobject in the turret. This works fine for me. I would be this x-mas happiest if I just could get warnings for both threats, not just a laserwarning. :)

Too make the predator heatseaking. "Steal" code from the igla/stinger.

My wishlist:
double warnings, laser and heat.
no laserwarning (in target) while just aming with the TOW.
laserwarning (in target) when aimed at with SIMRAD.
threatangle, directon of threat.