SOLVED Headlight upgrade

Discussion in 'Car Modding' started by Tommy78, Oct 28, 2019.

  1. Tommy78

    Tommy78 Registered

    Joined:
    Apr 3, 2012
    Messages:
    630
    Likes Received:
    725
    Anyone know or find out how it possible an upgrade on the headlight? Not the mesh (hlglo_ps and hlglo_ds) just the projector. So if i want to use more intensity or colour or different range through upgrades.ini

    Thanks.
     
  2. StrawmanAndy

    StrawmanAndy Registered

    Joined:
    Jul 5, 2014
    Messages:
    278
    Likes Received:
    308
    Probably have to do multiple gmt of the headlight for each colour, change the material names (so they don't conflict in game) and then have the upgrade load each headlight gmt for that select colour. Intensity I'm not sure about.
     
  3. Tommy78

    Tommy78 Registered

    Joined:
    Apr 3, 2012
    Messages:
    630
    Likes Received:
    725
    Not the mesh or as you wrote the gmt files. Those are ok. Just a projector.
     
  4. FuNK!

    FuNK! Registered

    Joined:
    May 26, 2013
    Messages:
    626
    Likes Received:
    491
    I would have expected that you can simply use the same syntax for the projectors as with any other object you want to replace. You would probably just make sure that the "<STOPUPGRADES>" tag is not placed before the light instances in the GEN. o_O
     
  5. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,780
    Likes Received:
    2,242
    Have you tried some like:
    Light=HeadlightL
    {
    <HEADLIGHTL>
    }

    In the gen, then this in the upgrades:
    GEN=<HEADLIGHTL>=Type=Spot Pos=(0.72, 0.30, -1.90) Dir=(0.07,-0.05,-0.89) Range=(0.0, 240.0) Active=False Attenuate=(0.16, 0.0095, 0.00002) Hotspots=(10, 65) Falloff=(2.6) Intensity=(2.5) Color=(255, 247, 238)
     
    FuNK!, Brent and Corti like this.
  6. Tommy78

    Tommy78 Registered

    Joined:
    Apr 3, 2012
    Messages:
    630
    Likes Received:
    725
    I check this out, thanks. I did try almost the same, but not exactly.
     
  7. Tommy78

    Tommy78 Registered

    Joined:
    Apr 3, 2012
    Messages:
    630
    Likes Received:
    725
    Thanks @Coutie !! That was the solution! It works now.
     
    Corti likes this.
  8. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,780
    Likes Received:
    2,242
    Ah cool, it was just a guess on my part.
     
    Corti likes this.
  9. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,480
    Likes Received:
    4,395
    Wouldn't it be something if cars could be modular? you-know, drag and drop from a menu of headlights, add a projected beam, choose a color, click and done.
     

Share This Page