Announcement

Collapse
No announcement yet.

Vec Weapon Crosshairs

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

    Vec Weapon Crosshairs

    I have a custom weapon for one of my vecs, it uses a custom crosshair to display if it is locked on, gaining a lock, or not locked on at all. The problem is, after a re-install of UT2004 for cleanup purposes, the weapon now also displays a small, white crosshair, along with my custom one. I'm sure I had somehow eliminated it through some settings, but don't remember how, also, I'd like to eliminate it altogether. Any Ideas? Thanks

    #2
    Did you keep your old UT2004.ini (or User.ini, I forget which)? The ini stores all crosshair settings, even for vehicles.

    By the way, I suggest UT2004Mi (Mod installer) for keeping your install clean.

    Comment


      #3
      No, I didn't keep my INI, ,, hindsight 20/20. .
      I'll check out MI, sounds useful.
      Is there a way to remove the vehicle crosshair for this weapon so only my custom one is shown? Here is the code I use to change the crosshair texture:
      Code:
      Function CursorChange(Int CC)
      {
           If (CC == 0)
           {
           WeapBase.CrosshairTexture=Texture'AirDefTex.CHairsB';
           WeapBase.CrossHairColor.b=0;
           WeapBase.CrossHairColor.G=255;
           WeapBase.CrossHairColor.R=0;
           }
           Else If (CC == 1)
           {
           WeapBase.CrosshairTexture=Texture'AirDefTex.CHairsB';
           WeapBase.CrossHairColor.B=0;
           WeapBase.CrossHairColor.G=255;
           WeapBase.CrossHairColor.R=255;
      
           }
           Else If (CC == 2)
           {
           WeapBase.CrosshairTexture=Texture'AirDefTex.CHairs';
           WeapBase.CrossHairColor.b=0;
           WeapBase.CrossHairColor.G=0;
           WeapBase.CrossHairColor.R=255;
           }
      Thanks. .

      Comment


        #4
        this might help some

        // Events called on driver entering/leaving vehicle

        simulated function ClientKDriverEnter(PlayerController pc)
        {
        pc.myHUD.bCrosshairShow = false;
        ...
        }
        pulled from KVehicle

        Comment


          #5
          But my vec is an onslaught vec, kvehicle isn't in it heiarchy. Pawn > Vehicle > SVehicle > Onsvehicle > OnsChoppercraft > My Vec. . .

          Comment


            #6
            ClientKDriverEnter is also in (ONS)Vehicle.

            I'd like to hear if this gets rid of either that "TankBarrelAligned" thingy or the "|--|"-crosshair. I can't seem to get rid of the latter.

            Comment

            Working...
            X