Jump to content

How does ELS work?


Recommended Posts

How does ELS work? What makes a car ELS-compatible?

Are Extra_1-9 different LED colors? How are they assigned during the modelling.

I'm just trying to get an understanding so I can try to code one for SA.

GTA already has a ELS version called ELM ( emergency Lights mod) Not made by the same people but mostly the same thing....

Edited by Darkangel

[u]​Click that spoiler you will not be disappointed!![/u]

 

[spoiler]http://www.choose.yudia.net/rickroll.swf

You've been Rick Rolled[/spoiler]

 

Link to comment
Share on other sites

I know. I plan on making a new one so there can be more patterns.

Don't know if this is right or not but this is what I heard. ELS works by loading textures on to the car every mil second ( hint why it can't get damage as its basically reloads a different car) I think your better off finding out how ELM works because GTA 4 and GTA SA are 2 different ball parks when it comes to coding....

Edited by Darkangel

[u]​Click that spoiler you will not be disappointed!![/u]

 

[spoiler]http://www.choose.yudia.net/rickroll.swf

You've been Rick Rolled[/spoiler]

 

Link to comment
Share on other sites

As far as i have understood it, it`s basicly the same as Darkangel says. Thats also the reason why the doors act so weirdly when you enter/exit a car when the lights are on. But if you understand codin maybe you can study the ELS files and see if you can figure it out that way...

Edited by St.Kizza
Link to comment
Share on other sites

ELS and ELM work very differently. ELS uses the vehicle extras system (the same system that lets you customize your car; e.g. a Turismo can have a roof or be roofless). In this case, the extras are given "emissive" textures, which mean that they look like they've lit up (the emissive textures are also how ads on taxis look illuminated). Extras 1 through 4 are controlled by the primary lights, 5 through 7 by the secondaries, and 8 and 9 are the takedowns. When the primaries are on, extras 1 through 4 are turned on and off rapidly (if you did this with a non-ELS vehicle, like a turismo, you would see the roof flashing on and off). The extras themselves are a "dummy" model, existing solely to allow the emissive texture to be displayed. To be more precise, they are a set of dummy models. Extra 1 may contain a light on the front of the lightbar, one on the back, one on the pushbar, and one in a headlight enclosure. They can be different colors; the only reason it matters that they are all "extra 1" is because it means that they must all be on or all be off (you can't have the front on and not the back, for example). A pattern is just a set of instructions, saying "turn 1 on, 2 on, both 1 and 2 off, 3 on, ...".

ELM doesn't use the extras system at all (and in fact, I doubt it works exactly the same in both games anyway). ELM uses the headlight system. I don't know enough about that system to tell you about how to use it, but you shouldn't look to ELS (unless you're converting back from IV to SA, in which case you should know what the different extras mean).

Link to comment
Share on other sites

  • 2 weeks later...

The letter is the basic type of pattern, as follows (.=off, X=on):


A-xx:

XX..

..XX



B-xx:

X..X

.XX.



C-xx:

X.X.

.X.X



D-xx:

XX..

..XX

XXXX



E-xx is directional. E-xxL is left, E-xxR is right, E-xxC is bidirectional. X-xx is assorted patterns.



Within each group of patterns, the number denotes the specific flash pattern. For example:



A-01:

XX..

....

XX..

....

..XX

....

..XX

....



A-02:

XX..

.X..

XX..

....

..XX

..X.

..XX

....

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...