[Update 1.0 - 2015.03.13] Emergency Lights CLEO script by nyolc8

Started by nyolc8, February 08, 2015, 13:59

nyolc8

If you tell me how to indicate current mode for all three strobe lights in the status icon, then yes :D

Btw I think I'll make all lights to have this corona setting, and also making it to be able to set 1, 2, or 3 coronas. So main and advisor too. This would eleminate the need for two X coordinate in mainEL config. And also we can get nicer, more rectangle-lookalike lights by setting two smaller corona near to eachother.

nyolc8

finished multi-corona option for all lights, changed mainEL for this(removed pos2.X line, also removed shadow Y line - using corona Y coordinate for light shadow), all lights can have 1-3 coronas at all places.

advisor light with corona number option set to 2:

nyolc8


Marccc


LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated by ASP.NET Core on Linux using the Convoy Trucking API. Updates every 5 minutes. See the original SVG image.

~!!!~ Watch my Police cars collection in the link below ~!!!~

[hide=link]http://imgur.com/a/gaJTT[/hide]

BeastyBill88

Looks great! Are we able to do the 1-3 lights for the main EL? Or is it just for the strobes?

nyolc8

mainEL too (there was already 2 coronas on each side - pos1.X and pos2.X, I removed pos2.X and replaced that with this new function), so you can set it to 1, 2, or 3 corona for each side.

BeastyBill88

Was there? Lol I didn't actually notice that, I thought pos1 & pos2 where for the left and right coronas. Looking forward to seeing what Marccc and others can come up with in regards to lighting vehicles :D

nyolc8

pos1 and pos2 was the two coronas for one side only, the script mirrored those coordinates for the other side :D

nyolc8


Marccc


LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated by ASP.NET Core on Linux using the Convoy Trucking API. Updates every 5 minutes. See the original SVG image.

~!!!~ Watch my Police cars collection in the link below ~!!!~

[hide=link]http://imgur.com/a/gaJTT[/hide]

nyolc8

I have no idea how to make mode changer key for all (main, strobe1,strobe2,strobe3,advisor)... Any idea? :D
I don't want to make another 4 new key... it would be too complicated.

Marccc

Quote from: nyolc8 on March 02, 2015, 17:24
I have no idea how to make mode changer key for all (main, strobe1,strobe2,strobe3,advisor)... Any idea? :D
I don't want to make another 4 new key... it would be too complicated.


I played in GTA 4 with ELS mod and there we had keys for on/off and keys for change mode. I have no idea what we can use else...


Quote from ELS V7

[ CONTROLS ]
Toggle_LSTG = 74      // J by default
Toggle_SECL = 75      // K by default
Toggle_WRNL = 76      // L by default
Toggle_SRN = 72      // H by default
Toggle_InfoPanel = 77      // M by default **
Toggle_Takedowns = 221   // ] by default
Toggle_Cruise = 219      // [ by default
Chng_Pat_PRML = 85     // U by default *
Chng_Pat_SECL = 73      // I by default *
Chng_Pat_WRNL = 79      // O by default *


:-\

LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated by ASP.NET Core on Linux using the Convoy Trucking API. Updates every 5 minutes. See the original SVG image.

~!!!~ Watch my Police cars collection in the link below ~!!!~

[hide=link]http://imgur.com/a/gaJTT[/hide]

BeastyBill88

Wouldn't it be easier to have all the lights set up like the advisor?

1 key to turn it on/off and another one to change the pattern.

That way you are reducing the number of buttons to what 5 at least.

You would have it like this:

G - Turn on/off main EL's
U - Turn on/off strobes
I - Change number of active strobes (1-3)
K - Turn on/off Advisor
L - Change advisor pattern
O - Turn on/off spotlight

Just my idea for the button setup.

nyolc8

I'm thinking that maybe I'll make the L key a universal mode-changer key. So while you holding it down, you press the key for the light to change it's mode.

So for example if you press K while holding L down then you change advisor mode. If you press G while holding L down, then you change the mainEL light mode, etc....

@BeastyBill88: you missed the point. I want to be able to change all three strobe lights mode seperately. You just said a button to set what strobe light to be on which is already can turned on/off seperately.

***
some progress/change:
-bug-fixed: mainEL light now comes from the corona position instead from shadow position
-removed some recurring code (made them into scm_function)

also, I'm planning 5 modes for all lights (strobe1,2,3, and main light):
1: side-to-side blinking
2: both side (all light) blinking 2 times together
3: left two times blink, right two times blink
4: left 4-5 times blink, right 4-5 times blink
5: all lights on without blinking

Marccc

Quote from: nyolc8 on March 02, 2015, 20:33
I'm thinking that maybe I'll make the L key a universal mode-changer key. So while you holding it down, you press the key for the light to change it's mode.

So for example if you press K while holding L down then you change advisor mode. If you press G while holding L down, then you change the mainEL light mode, etc....


also, I'm planning 5 modes for all lights (strobe1,2,3, and main light):
1: side-to-side blinking
2: both side (all light) blinking 2 times together
3: left two times blink, right two times blink
4: left 4-5 times blink, right 4-5 times blink
5: all lights on without blinking


I like the idea, how many coronas have the main light? Because i know some extra modes for it:
[X][X]   [X][X]
[X][X]   [X][X]
[X][X]  [X][X]


[X][X][X]   [X][X][X]
[X][X][X]   [X][X][X]
[X][X][X]   [X][X][X]



[X][X][X]   [X][X][X]
[X][X][X]   [X][X][X]
[X][X][X]   [X][X][X]



Maybe this last 2 modes with 3 coronas can also be used for the 3x strobe.

LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
LAST MISSION
Generated by ASP.NET Core on Linux using the Convoy Trucking API. Updates every 5 minutes. See the original SVG image.

~!!!~ Watch my Police cars collection in the link below ~!!!~

[hide=link]http://imgur.com/a/gaJTT[/hide]