Mod Help (Heat Seeking).

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

    #1

    Mod Help (Heat Seeking).

    Hi,
    Hope someone can help.
    We added these lines to the USATP_Predator.tweak file:
    ObjectTemplate.createComponent MultiFireArmTargetComp
    ObjectTemplate.target.maxDistance 375
    ObjectTemplate.target.targetSystem TSHeatSeeking
    ObjectTemplate.target.lockDelay 1
    ObjectTemplate.target.loseLockDelay 0.5
    ObjectTemplate.target.lockAngle 15


    If you add these lines to the RUTNK_T90.tweak you can lock on:
    ObjectTemplate.addTemplate HeatObject
    ObjectTemplate.setPosition 0/0.128081/0


    But we can't seem to get it to work on the Chinese Type98 tank. Any ideas?
    Thanks.
  • Why?!

    #2
    Since I seem to be the missile freak on these forums I'll take a stab at it.

    First of all I do not suggest that you use heatseeking. That will screw up the targeting computer on planes as they can only see 4 objects at a time, and if there are too many ground objects that can cause them to not be able to lock on aircraft or helicopters at all.

    Second, you should use is the lasertarget. The lasertarget is already on all ground vehicles and is what causes them to show up on a planes HUD. For the Predator targeting computer I suggest something along the lines of this. As it does not mess with airplanes and does not require a an object to be added to target vehicles.

    ObjectTemplate.createComponent MultiFireArmTargetComp
    ObjectTemplate.target.maxDistance 375
    ObjectTemplate.target.targetSystem TSLaserGuided
    ObjectTemplate.target.useCameraDirectionToTarget 1
    ObjectTemplate.target.lockDelay 1
    ObjectTemplate.target.lockAngle 2

    A few notes on the above code.

    I have no idea what "ObjectTemplate.target.useCameraDirectionToTar get 1" does. However I use the above code on a very similar Air-to-Ground missile.

    I also suggest a small lockangle. At 15, if there are too many targets within sight you might not target and hit what you were aiming at. I suggest something small, 2 should be about the size of the Predator and Eryx center dots, if not slightly larger.

    Lose lock delay could be used, but with the way that works I do not think it would really contribute to anything. You would launch the missile and the tank would go around a corner, with the missile just hitting the corner.

    If the Type98 bug still occurs, I am not sure exactly what could be wrong. It has the same lasertarget as all the tanks.

    Comment

    • Eclipse

      #3
      Hi,
      Yeah never thought about Laser, that would be a lot better and simpler.
      The angle we will definately widen as it helps to stop it being used to take out infantry.
      Thanks.

      Comment

      • Why?!

        #4
        Lock angle would have no effect on firing it unguided. If you aim the crosshairs at infantry, it will hit them. If you really are going to have a wide lock angle I suggest putting a simple HUD that shows what the launcher is locked on.

        Comment

        • excentriker.de

          #5
          Hi , i tried this little mod on the predator , but it seems to have no effect. Maybe you could send me a working .tweak file.

          Thanks

          Comment

          • Why?!

            #6
            I forgot to mention that the missile must also be altered. The code above will make the Predator lock onto vehicles, but the missile itself is still guided normally. You have to edit the missile itself to seek the laser target. Sorry I cannot give you any example code, I am not home right now.

            Comment

            • Eclipse

              #7
              That's much better, I like the distance too. You have to be fairly close to use the missile.
              One strange thing that is happening is once you are locked on the locked on tone doesn't dissappear until the target is destroyed or you re-zoom.
              I'm thinking maybe there is a command that turns the code off to the sound when you lose lock?

              Comment

              Working...