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

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

nyolc8

Quote from: Marccc on March 02, 2015, 21:10
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.
I'm not doing like that, the script handles one side as seperate element, so I can't control a specific corona at one side. But as I saw on videos, there is no light which can control a LED seperately, they work as I did it.

edit: well checked again, and I still not sure if they work like what you described, but if you show me a video where is work like that, I'll look into how to make it.

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

That's a long light bar like advisor, not a small light block. But anyway, I'll try to make it.

I can make it to be able to set a strobe light in .ini to have modes what I described, or what you described. (done :d)

nyolc8

Adding a bigger but almost invisible corona to lights = more dramatic illuminated effect at light coronas (only for strobe lights, also it can be disabled from vehicles.ini for each strobe light set), also changed the timings for the double-blink strobe mode, I think this faster blink looks better:



I just realized it works on mainEL too, now that's dramatic...:D You'll see on next video. (now working on multi-modes for lights)

Ethan

can you take a video of the actual gameplay  via xfire/fraps/bandicam rather than recording the tv screen or no?

nyolc8

I can, but it takes more time (because it need to be converted) than recording with phone. I think this do the job for showing off little improvements while I work on it. But I'll make a proper screen recording with fraps when I finished everything before I release the new version.

***
Btw, key controls (and random mode) for mainEL, strobe1-2-3 are done, need to do the different timers (timers actually blinks the lights in specified milliseconds), then need to do the new onscreen status thing. And 1.0 coming.

edit: modes + random mode done for strobe 3 set, just need to copypaste to mainEL, strobe1, and strobe2. Then the onscreen status thing...

AzureSpeed

btw nyolc when i installed it and ingame i tried to press c to crouch (on foot) i just got two warning codes do you maybe know why?

nyolc8

I noticed this bug too, just narrowed down the problem to the key_press register section. I'll find the cause of it.
It's in the H key register section (to show up the speaker when you turn on sound siren), have no idea why that bugs crouch...

edit: okay got the problem,
onfoot state, key ID18 = crouch
incar state, key ID18 = horn/siren

I'll fix it

edit2: fixed :)

nyolc8

script size is 3 times bigger than previous version... ::) :D

all lights set to random mode:


alternate mode enabled in .ini for strobe 2:

BeastyBill88

I noticed the crouch bug aswell, I thought it was just SAMP lol. Glad you fixed i though. The new light patterns/features look amazing! I can't wait to use them.

If you & someone else has the mod on the sever the other person will be able to see your lights aswell? Or will it only be on their vehicle (if that makes any sense).

nyolc8

Only on your vehicle, I have no idea how to make it work like imvehft.

BeastyBill88


nyolc8

The section marked with green is done:


The left side will work similar as before, but the advisor lights status will be shown there realtime (under the car).

nyolc8

on screen status fully done (or atleast it works, I'll make some code-optimalization):



just noticed that spotlight gets bugged for some reason if you get out of the vehicle (it worked before), so I'll look into that.

Wizzer

OMG!! This is amazing! I just fell in love with it :3
Not sure if it has been asked before but will the lights be visible if other players are driving with sirens? Would be awesome getting changed by cops like that :like:
[hide=Steam]
[hide=stats]
Quote from: a ban appealWhat actually was happening:
lv was fleeing police and suddenly porqe not sack me and went back inside and did not let me
Quote from: Sorin on May 14, 2015, 19:23
Quote from: Emily on May 14, 2015, 19:04
Quote from: asjhfbisyadfb69 on May 14, 2015, 16:50
So many people from romania lol
no wonder everyone asks for help
:ukiddn:
Quote from: asjhfbisyadfb69 on May 15, 2015, 12:37
The other day I got rammed so hard against the wall my vehicle jumped in the hair and went from perfect to broken wtf.

Quote from: Guest on June 02, 2015, 20:36
Good afternoon some time ago stopped playing Samp personal problems recently reopened it and I appeared Banding not know why I really seems unfair that I Page Broken Dishes Another's hope I solve the problem Regards
Quote from: StrangerWizzer has 6 letters, 6 is our first number, there are 2 z, 2 is our second number, 6-2=4. 4 is our third number, your rest of your name letters are not doubled, 1 is our forth number, 4-1=3. A triangle was 3 thingy things. iluminati is triangle, Wizzer = iluminati comfirmed.
Joci [06 Jun 20:12]:   We need an admin hacker online -.-