LaserTarget_vehicle correpondence

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HakunaMatata

    #1

    LaserTarget_vehicle correpondence

    Hi again

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

    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

    #2
    Re: LaserTarget_vehicle correpondence

    Add this lines to your vehicle's tweakfile:

    Code:
    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_laserlockicon.tga
    rem ---EndComp ---
    This should help

    Comment

    • HakunaMatata

      #3
      Re: LaserTarget_vehicle correpondence

      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.

      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:

      Comment

      • wolfi

        #4
        Re: LaserTarget_vehicle correpondence

        To make ground vehicles visible in the bomb sight of a jet just add
        Code:
        ObjectTemplate.addTemplate LaserTarget_Vehicle
        To enable the warning sound for ground vehicles (SRAW, Eryx, ..) add
        Code:
        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_laserlockicon.tga
        rem ---EndComp ---
        If you want to make ground vehicles visible and lock-able for the heatseeking missiles, add
        Code:
        ObjectTemplate.addTemplate HeatObject
        If you want to hear the heatseeking sound in the target vehicle add
        Code:
        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_laserLockIcon.tga
        rem ---EndComp ---
        If i got you wrong repeat your question, lol

        idk how to work with atlas files, sorry :/

        Comment

        • HakunaMatata

          #5
          Re: LaserTarget_vehicle correpondence

          Thanks m8. Ill try harder after lunch, or I will keep repeting my self and the question

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

          Comment

          • wolfi

            #6
            Re: LaserTarget_vehicle correpondence

            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:

            Comment

            • HakunaMatata

              #7
              Re: LaserTarget_vehicle correpondence

              No, Im an old swede (with a, not so old, german car tho).
              My german reading skills is limited to BMW.

              Comment

              • HakunaMatata

                #8
                Re: LaserTarget_vehicle correpondence

                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:

                Comment

                • wolfi

                  #9
                  Re: LaserTarget_vehicle correpondence

                  Originally posted by HakunaMatata
                  No, Im an old swede (with a, not so old, german car tho).
                  My german reading skills is limited to BMW.
                  Sorry about that :p And haha, go buy some glasses

                  Comment

                  • HakunaMatata

                    #10
                    Re: LaserTarget_vehicle correpondence

                    I have glasses -> 8D

                    Comment

                    • imported_annerajb

                      #11
                      Re: LaserTarget_vehicle correpondence

                      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.

                      Comment

                      • HakunaMatata

                        #12
                        Re: LaserTarget_vehicle correpondence

                        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?

                        Comment

                        • imported_CheetahShrk

                          #13
                          Re: LaserTarget_vehicle correpondence

                          Originally posted by HakunaMatata
                          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.

                          Comment

                          • HakunaMatata

                            #14
                            Re: LaserTarget_vehicle correpondence

                            I found this: http://bfeditor.gotfrag.com/forums/viewtopic.php?t=1804.
                            And its explains most of it.

                            thx :)

                            Comment

                            • wolfi

                              #15
                              Re: LaserTarget_vehicle correpondence

                              Originally posted by HakunaMatata
                              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

                              Comment

                              Working...