Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Research/WIP] Custom Light Patterns through carcols.ymt

Featured Replies

  • Author
3 hours ago, PNWParksFan said:

I'm not intimately familiar with how extras and sirens relate... but as far as I know, any siren can be put inside an extra to make it possible to toggle off, right? 

Given that, it should be possible to make a proper traffic advisor! The following flash pattern sequences would give right-to-left, warning/in-out, and left-to-right: 


[light1][light2][light3]

left-to-right

light 1: 0111  
light 2: 0011  
light 3: 0001  

[  |  |  ]
[xx|  |  ]
[xx|xx|  ]
[xx|xx|xx]




light 1: 0001  
light 2: 0011  
light 3: 0111  

[  |  |  ]
[  |  |xx]
[  |xx|xx]
[xx|xx|xx]

center

light 1: 1100  
light 2: 0011  
light 3: 1100  

[xx|  |xx]
[xx|  |xx]
[  |xx|  ]
[  |xx|  ]

Now, as we can see, there are four different variations here: 0111, 0011, 0001, and 1100. That means at most a fully functional traffic advisor would only require 4 sirens. By putting each section of lights into an extra, one could toggle the traffic advisor mode by enabling/disabling extras. Or do all sirens of the same siren number have to be in the same extra? In that case it would require more sirens I suppose. The middle module is always 0011, so that could be a part of the vehicle and not inside of any extra. 

Unfortunately I'm traveling this week so I don't have access to my PC to test this out, but could somebody experiment with this and report back? @Captain14 maybe you can include this in your new Tahoe. I could put together a little script to toggle the traffic advisor mode by switching the appropriate extras. 

EDIT: Another theoretical pattern set for the left and right, in which the bar would fill up and empty gradually, vs. filling gradually and then turning off: 


light 1: 0111 1000
light 2: 0011 1100
light 3: 0001 1110

[  |  |  ]
[xx|  |  ]
[xx|xx|  ]
[xx|xx|xx]
[xx|xx|xx]
[  |xx|xx]
[  |  |xx]
[  |  |  ]

right-to-left-to-right

light 1: 0001 1110
light 2: 0011 1100
light 3: 0111 1000

[  |  |  ]
[  |  |xx]
[  |xx|xx]
[xx|xx|xx]
[xx|xx|xx]
[xx|xx|  ]
[xx|  |  ]
[  |  |  ]

 

Yeah it's possible. Both the Tahoe and Charger have a basic traffic advisor as an extra, but I can certainly update it to include other patterns. Currently I just have mine set up to use only two sirens.

It's best for the sake of efficiency if you do a combination of lights with hidden coronas and lights with coronas. The Tahoe I'm making uses just 6 sirens total for the lightbar, and that is including the traffic advisor and the flood mode takedown light. Cruise mode lights can also be done using just an extra and no sirens at all.

Edited by Captain14

  • Replies 596
  • Views 185.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • We've been busy working on patterns per vehicle (no longer limited to per model) as well as giving you the ability to change them at runtime. Soon in RAGE Plugin Hook. Some background info: http://blo

  • testing messages board using 3 siren nodes:  

  • Deactivated Member
    Deactivated Member

    I've made a carcols a while back that just seems to work really well on pretty much any car you throw it on. Here's a demo of it on my Kansas cars, no edits were done to the cars.  If a

Posted Images

5 hours ago, Masterschwag said:

 

 

I tested your pattern and it translates to this below

light 1 - 2021161080 - 01111000011110000111100001111000
light 2 - 1010580540 - 00111100001111000011110000111100
light 3 - 505290270 - 00011110000111100001111000011110

light 4 - 50529027 - 00011110000111100001111000011110
light 5 - 1010580540 - 00111100001111000011110000111100
light 6 - 2021161080 - 01111000011110000111100001111000

And it looks like this - 

Untitled-2.gif

 

 

that could be really useful for traffic advisors :)

signature.png

Ok, I feel I've tried everything, but I just can't figure out if it is possible to change where the lighting will fall, without the lights themselves moving. Am I missing something, or is it not doable at the moment?

Edited by Majorai

*Current WIP Pack*

Vauxhall Insignia (Unmarked)|BMW 5-Series Touring (Marked & Unmarked)|BMW 5-Series Saloon (Unmarked)

 

 

Has anyone been able to add more than sirensettings 15? I've managed 15 but can't seem to get a 16 working?

Sorry, figured out the error of my ways.

However if anyone has some affective strobe like patterns they would be willing to share that would be awesome. 

 

Cheers

 

Edited by harrison90

I am always open for suggestions and if enough resource images can be found, you can very well see it in your game. 

I am always accepting donations of any size. Thanks everyone for your support and suggestions.

FIGHT FOR OPENIV, VIVA LA RESISTAMCE!

mybannersmall.png

  • Management Team
  • Popular Post

We've been busy working on patterns per vehicle (no longer limited to per model) as well as giving you the ability to change them at runtime. Soon in RAGE Plugin Hook. Some background info: http://blog.lms-dev.com/reverse-engineering/v-dynamically-adding-carcols/

emergency_lights_1.jpg

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

5 minutes ago, LMS said:

We've been busy working on patterns per vehicle (no longer limited to per model) as well as giving you the ability to change them at runtime. Soon in RAGE Plugin Hook.

emergency_lights_1.jpg

Plz Scripthook.

signature.png

22 minutes ago, LMS said:

We've been busy working on patterns per vehicle (no longer limited to per model) as well as giving you the ability to change them at runtime. Soon in RAGE Plugin Hook.

Awesome!

I've been having too much fun editing carcols :woot:.

 

*Current WIP Pack*

Vauxhall Insignia (Unmarked)|BMW 5-Series Touring (Marked & Unmarked)|BMW 5-Series Saloon (Unmarked)

 

 

2 hours ago, LMS said:

We've been busy working on patterns per vehicle (no longer limited to per model) as well as giving you the ability to change them at runtime. Soon in RAGE Plugin Hook. Some background info: http://blog.lms-dev.com/reverse-engineering/v-dynamically-adding-carcols/

emergency_lights_1.jpg

nice work, this has oleg from zmod told me:

Re: exploring siren lights carcols.ymt

Sent: Wed Aug 17, 2016 11:44 am
by Oleg

Hi.

siren21 should be Ok (no space before "21"). However, siren_glass21 will not work.

I don't have a code that generates part ID given its name, so you can code a game script to deal with part named "siren 21 or anything", and the game will deal with a part by its hash/ID value (game will compute it at script compilation time). However, I can't compute this hash/ID as I don't know how the game does this. The filter/exporter collects name <-> hash pairs during loading of files, so it can use name <-> hash pairs later on export. It can't generate proper IDs for parts that you wish to have some specific task in game.

I suspect guys at OpenIV probably know the hash code, as they can dig in application's assembly, and this name<->hash was first found by them in Max Payne 3 probably. But I can't be quite sure on this, and not sure how this could be solved to the moment.
  •  

exploring siren lights carcols.ymt

Sent: Tue Aug 16, 2016 5:31 am
by f5544

Hi Oleg,

I want to test for adding more police lights. I want to add for example siren 21. in carcols.ymt i made siren 21.
But zmodeler is saying "Using random ID: it might not work correctly in game script"
do you know where the game scripts are. so that i can add siren 21 to the car and it enables siren 21.

Regards,
Frank
15 minutes ago, liamxxs said:

How did you manage the get lights to reflect that bright? No natter what i try, nothing works for me, 

light falloff value or something. one of the posts on the first page mentions it

If you don't read my readme files don't inbox me asking for help

7 minutes ago, liamxxs said:

Iv done that, it works with the American cars just not the British ones 

Probably something to do with the model using only the blue sirens. If it's your own model I suggest using both red and blue sirens, then changing the red colour to blue in the carcols

If you don't read my readme files don't inbox me asking for help

2 minutes ago, Macgregor said:

Probably something to do with the model using only the blue sirens. If it's your own model I suggest using both red and blue sirens, then changing the red colour to blue in the carcols

Ahhh, will give it a try, thanks

On 8/18/2016 at 10:44 AM, harrison90 said:

Has anyone been able to add more than sirensettings 15? I've managed 15 but can't seem to get a 16 working?

Sorry, figured out the error of my ways.

However if anyone has some affective strobe like patterns they would be willing to share that would be awesome. 

 

Cheers

 

I've got a couple, but unfortunately they pretty much have to be customized per vehicle since the lighting setups won't be the same. I'll post them here though...

http://pastebin.com/kp4Q8YPt

 

The OSHP one is a tiny bit buggy (it's not symmetrical on the edge of the lightbar) because I pulled a stupid, but I've been pretty happy with them. I'll probably refine them later and might put them up for general download.

 

My favorites are the one for BxBugs' charger and the one for the Taurus (IIRC it's F5544's). Some of them don't look great because the model creators did strange stuff with the sirens (because of the default light setups probably)

35 minutes ago, GravelRoadCop said:

Anybody willing to share their custom flash pattern IDs that I can use for my carcols ? I am looking for something like 4 flashes, etc.

I'd be happy to create one for you if you let me know what you're looking for and the model. Since almost all the modelers have different setups, creating generic ones is a real pain

Edited by sloosecannon

24 minutes ago, sloosecannon said:

I've got a couple, but unfortunately they pretty much have to be customized per vehicle since the lighting setups won't be the same. I'll post them here though...

http://pastebin.com/kp4Q8YPt

 

I'd be happy to create one for you if you let me know what you're looking for and the model. Since almost all the modelers have different setups, creating generic ones is a real pain

Well, just the sequencer IDs will be enough, as I can apply it myself through carcols. I just need some pre-made flash patterns sequences. I'm more interesting in having a 4 flash pattern that alternates.

SmsqmYF.png

 

 

6 minutes ago, GravelRoadCop said:

Well, just the sequencer IDs will be enough, as I can apply it myself through carcols. I just need some pre-made flash patterns sequences. I'm more interesting in having a 4 flash pattern that alternates.

That works too.

 

So one side would be 2852170240 and the other would be 11141290. The first one is on first, and starts on.

Edited by sloosecannon

20 minutes ago, sloosecannon said:

That works too.

 

So one side would be 2852170240 and the other would be 11141290. The first one is on first, and starts on.

Thanks ! This is exactly what I was looking for !

SmsqmYF.png

 

 

On 8/17/2016 at 6:23 PM, Aquamenti said:

Currently, I don't think models can use more than one siren of the same number, and they sure as hell can't switch sirensettings mid-game.

 

On 8/17/2016 at 7:32 PM, PNWParksFan said:

Never say never. You can do a lot when you directly modify the memory addresses... it may indeed be possible to switch sirensettings mid-game someday. 

 

9 hours ago, LMS said:

We've been busy working on patterns per vehicle (no longer limited to per model) as well as giving you the ability to change them at runtime. Soon in RAGE Plugin Hook. Some background info: http://blog.lms-dev.com/reverse-engineering/v-dynamically-adding-carcols/

WHO CALLED IT!

Seriously though, very excited for this development, and looking forward to seeing where it goes from here. 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

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...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.