[SOLVED] Headlight upgrade

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

  1. Tommy78

    Tommy78 Registered

    Joined:
    Apr 3, 2012
    Messages:
    544
    Likes Received:
    474
    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:
    255
    Likes Received:
    269
    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:
    544
    Likes Received:
    474
    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:
    447
    Likes Received:
    253
    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

    Joined:
    Oct 5, 2010
    Messages:
    2,286
    Likes Received:
    1,212
    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:
    544
    Likes Received:
    474
    I check this out, thanks. I did try almost the same, but not exactly.
     
  7. Tommy78

    Tommy78 Registered

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

    Coutie Moderator

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

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    2,183
    Likes Received:
    1,332
    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