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

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

sardarji

<3 You are Awesome <3 Your work is Awesome <3
You made San andreas a lot better and far more enjoyable. Appreciate all your work. Thanks a million:)


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

nice! :like:

also clever idea to use advisor there :D
this also made me thinking to bring option for which advisor functions to be enabled per vehicle (not sure how to do it yet)

Marccc

(How) Can we change the size of the Icon on the left side of your screen?
What is: onScreenStatus.alpha = 200    // 0-255
What is: mainEL.alpha = 155
And about the advisor, we need a key for ON/OFF and a key for changing mode because its stupid to go through all the modes to get it off, maybe use L-key ?




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

1.: it's not possible yet, only moving it possible (but you can disable it, or change it to text with onScreenStatus.mode)

2.: it changes the icon transparency (0 = invisible, 255 = no transparency)

3.: it changes the main emergency lights (which is at the top of the copcar by default, controlled by G key) light corona transparency

4.: next update will work like that


edit: finally, blocked default siren lights without any bug!!! :D (well only for the four police cars, other vehicle pointers need to be found out)

edit2: also for ambulance and firetruck:P

nyolc8

What's done and tested for the next version:

- NEW: L key to change advisor mode, K key just to turn on/off

- NEW: default mode for advisor light can be configured in .ini (which will be the first when you start the game)

- NEW: blocked default siren lights (not for all emergency cars yet), so H key only enables sound (can be configured in .ini, to leave default siren lights enabled if you want)

- NEW: if you have two same vehicles, then you won't need to use many config lines for both, you can just tell the script to use another model config. Example for model 597:
[597]
copy.model.cfg = 596


- removed some left-in ini value reading which was used only with old blinkling method (alpha.60 and things like that), also removed these from default ini

What's planned:
- small mode option for icon

- configure allowed advisor modes by vehicle - not yet, it would be f*cking hard to make it

- somehow show the selected advisor mode in icon mode even when advisor light not enabled

- seperate ini files for settings and for vehicle configs to make easier for you to keep your vehicle settings when I add a new option to settings ini

nyolc8

0.9.5:
- L key to change advisor mode, K key just to turn on/off
- default mode for advisor light can be configured in emergency.ini (which will be the first when you start the game)
- blocked default siren lights, so H key only enables sound (can be configured in emergency.ini, to leave default siren lights enabled if you want)
- if you have two same vehicles, then you won't need to use many config lines for both, you can just tell the script to use another model config. (Example to use copcarla config: copy.model.cfg = 596)
- removed some left-in ini value reading which was used only with old blinkling method (alpha.60 and things like that), also removed these from default vehicles.ini
- small mode (half size) option for icon
- new icon for random advsior (shuffle icon)
- seperate ini files for settings (emergency.ini) and for vehicle configs (vehicles.ini)

DOWNLOAD 0.9.5

Marccc

When i enter the police car and press G i get number 1 on my screen, it goes away after some seconds and when i enter any other car and press G i get alot of numbers see the screenshots.




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

Sh*t, I forgot that inside xd I just used that to see a returning value to see if it works xd I'll update in a minute

edit: here it is: http://speedy.sh/TvNDG/Emergency-by-nyolc8.zip

edit2: updated all links to the fixed one

BeastyBill88

I have been playing around with it in the SAMP Debug and I have to say its surprising easy to config the lights on the vehicles when you get used to it and it makes the EL look so much better. I was wondering is it possible to add more lights other then the ones you have provided Nyolc8? As some of the vehicles I am using have 4 lights on the front and 2-4 on the rear. That would be awesome if you can :D

nyolc8

I'll look into that, I want more strobe lights too. But I don't know how it will work (performance wise) if it checks for custom lights in each frame... ::)

I think I'll just add two more strobe lights with two more keys for them.

Marccc

Some new video's of this mod.


Giving some support to a convoy.
[xfire]http://social.xfire.com/videos/63304f[/xfire]
[xfire]http://social.xfire.com/videos/633050[/xfire]


CVTM waiting for some staff help because he was stucked into the bridge.
[xfire]http://social.xfire.com/videos/633051[/xfire]

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

Loving the videos Marccc!

Nyolc8 - would it not be possible to put in the script so that when the strobe key is pressed all secondary lights are turned on? Then just add more to the ini file if and when needed? Otherwise there will be alot of buttons to press lol.

nyolc8

Nice vids there  :like:

@BeastyBill88: I already made two additional strobe lights, they working, tested them in game. Just need to figure out how to show them on the onscreen status icon. (to know which ones are enabled) I'll make a key for all strobe lights, and seperate keys for the three strobe lights. So if you want to enable all 3 strobe, then you just press J, if you want them switch seperately, then U,I,O :) Of course these keys will be able to modify too.