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

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

nyolc8

Well I think I'll leave laggy shadows + non laggy shadows aswell for now. This makes coronas brighter too. And also the status icon works.

BeastyBill88

So you managed to fix it? Good job! Looking forward to what it will look like with the new shadows and coronas etc.

nyolc8

No, not fixed, just left the laggy shadow in too, so status icon works and coronas brighter too (with only the non-laggy shadows, coronas got darker)

So basically now the coronas and shadows getting draw twice, one laggy and one nonlaggy


BeastyBill88


nyolc8


BeastyBill88

That looks really nice! :D so the shadows are in the txd file with the icon? That way we can customize it yes?

nyolc8

The shadows are just simple bmp files in the EL\shadows folder. They're not in txd. :)

But I still not fully satisfied with this, because the double shadow drawing makes a slight sharp border around the shadows... :/ I'll try to lower the alpha of them

edit: okay, lower alpha fixed this

now I want to make an option for rear shadows too, and I got the camera view Z angle now, I'll try to compare it with the car Z angle in the script somehow to get coronas visible from specific angles (example: front coronas visible only when you look the car from front)

BeastyBill88

:) even better.

So you want to have it so that (like you said) you can only see the front strobes from the front and the rear ones won't "leak" through the car, basically blocking the rear coronas from that angle and vica versa for the other lights.

nyolc8


nyolc8

I have a working code which writes on screen "front" and "rear" when I look at the car from specified angles...  :P So... I just need to implement it into my script.

(I'll try to adjust corona size based on view angle, like how the game does with the headlight coronas)

As for shadows: the "dual" shadow thing looks very strange for me... :/ I still don't know how to make that. (but I asked this on gtaforums, maybe I'll get some solution)

BeastyBill88

Well good luck, hopefully they are able to help you out.

I have been tinkering some more and have made a similar setup with the lights that Marccc showed us, I have done it by using the main EL and advisor for the beacons/lightbar and using the strobes for the front grill on the roadtrain perfect for when I'm doing heavy haulage ;) Thanks for the idea Marccc.


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

oh gawd... :))
First I have to fix the shadows (while keeping the icon working), and I want to make coronas work similar like the original headlight coronas working (getting smaller when you view it from sideways).

And after that, adding more lights will be only performance question. :)

BeastyBill88

Just a quick question... When you release the next version will we still be able to use the settings from this version? As I've configured lights to fit my vehicles :S I just don't want to have to do it all again lol.

nyolc8

it will, but a few lines getting added/changed (to specify how many strobe light a car have)

BUT coordinate values will stay the same (these are what takes time to configure)

I don't know when will I release it, because the current state of the script have broken status icon, and only text mode works (so: onScreenStatus.mode = 2 ).

I just finished the sizing script part a few minutes ago which gives two 0.0-1.0 value based on view for both rear and front. I just need to multiply the lightcorona sizes with these returned values and lightcoronas will be sized based on view angle :P
The hard part in this is to seperate rear/front lightcoronas from each other. (this might be need an extra line for all light in vehicles.ini to be able to specify lightcorona mode - front/rear)