Announcement

Collapse
No announcement yet.

Crosshair/Color question/problem

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

    Crosshair/Color question/problem

    I have been coding a vehicle weapon, and have it set up so certian conditions change the crosshairs and their color. The problem is that the crosshair and their color are being saved to the user.ini file. The problem is that for some reason, they are being saved after a conditional change, so the next time I start the game, the weapon starts with the wrong crosshairs. If anyone has a soloution to this, it would be appreciated. Thanks

    #2
    Dont use a config variable.

    Comment


      #3
      The crosshair settings are inherited from the ONS base classes, where they carry the "config" modifier. What would be an easy way of disabling the "config"?

      Comment


        #4
        Maybe have a look at the Cicada code. It uses a different crosshair when alt-firing and reverts back to the normal crosshair afterwards.

        Comment


          #5
          You have full control over what you draw where and how. If you choose to draw a variable from a superclass, thats your own problem if its broken. But you can fix it. Make your own variable, make it how you need it, and draw that. Tell the other crosshair to **** off, and just draw yours.

          Comment


            #6
            That's the hard way.

            Comment

            Working...
            X