[GTA:SA] Improved Vehicle Lights +ELM!

Started by R3public[PL], December 14, 2014, 13:01

Hobo

This is amazing. Holy shit. I can't wait for the release. How well do you think this will work on modded cop cars?


[tr]
[td]

[/td]
[td][/td]
[td]

[shadow=black,left]My PC Specs:
-AMD Ryzen 7 2700X
-EVGA RTX 3080
-ASUS Prime X470-Pro Motherboard
-CORSAIR Vengeance RGB PRO 32GB RAM
-ADATA SX8200 NVME SSD 960GB
-Seagate IronWolf Pro 8TB HDD
-Western Digital Blue 2TB HDD
-ADATA Ultimate SU800 2TB SDD x2
-ADATA Ultimate SU800 1TB SSD x2
-Corsair HX750 Professional PSU
-NZXT H440 white/black case
[/shadow]
[/td]
[/tr]
[/table]

nyolc8

#61
It will work on any car (even on non-police) because there will be an ini file where you can specify the light positions and everything. For every car you want.

edit: script rewritten to get working from ini file (getting coordinates, sizes, alphas from ini file for vehicles you want) done. So for example, towtruck will have working emergency lights with this :P Or any car you configure in the ini file. Also available emergency light features can be enabled/disabled for each vehicle. So for example if you want towtruck or lv police car with only main emergency lights, then you can configure it and disable the amber light and strobe light features for that one vehicle.

GeneralLee

Really great work :O


Aren't "Amber strobe light : Left/Right Mode2" vice versa?

________________________________________________________
Not being sarcastic to someone is hard.
Like holding in a fart that would be nasty and funny at the same time.

Marccc

Can we also change the colors in the ini file?, because towtruck have no blue light.

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]

Twido

Is it possible to set our own buttons? I don't wanna use anything near ZQSD or WASD. Yes I have AZERTY and because of that ImVehLights isn't correctly working unless I can change the buttons and I haven't figured that out yet. I will probably set them on NUMPAD keys


[hide= Just a rule]
Quote from: Mick88
Your friends do not have the authority to allow you to break server rules. ๖ۣۜTωi∂✿
[/hide]


GeneralLee

I bet that you could edit the buttons.

________________________________________________________
Not being sarcastic to someone is hard.
Like holding in a fart that would be nasty and funny at the same time.

nyolc8

Quote from: GeneralLee on December 28, 2014, 23:16
Really great work :O


Aren't "Amber strobe light : Left/Right Mode2" vice versa?
already fixed when I showed the video... :P

Quote from: Marccc on December 29, 2014, 09:38
Can we also change the colors in the ini file?, because towtruck have no blue light.
Yes :)

Quote from: Twido on December 29, 2014, 09:42
Is it possible to set our own buttons? I don't wanna use anything near ZQSD or WASD. Yes I have AZERTY and because of that ImVehLights isn't correctly working unless I can change the buttons and I haven't figured that out yet. I will probably set them on NUMPAD keys
Yes :)

nyolc8

towtruck config example just to understand how it will be:

emergency.ini file with some description:
[hide=ini file lines]
[CFG]
onScreenIcons = 1
<-- I'll try to make icons instead of text on screen, and it will be able to enable or disable them. So this is not yet works.

[KEYS]
mainLights = 71 <-- key for main/roof emergency lights (G)
strobeLights = 74 <-- key for strobe lights (J)
advisorLights = 75 <-- key for advisor lights (K)

// CARS CFG
[596] //copcarla
<-- vehicle id (596 = copcarla)
mainLights = 1 <-- enable main emergency lights (roof lights) feature
strobeLights = 1 <-- enable strobe lights feature
advisorLights = 1 <-- enable advisor lights feature

...many more lines for copcarla lights here...

[525] //towtruck <-- the vehicle id (525 = towtruck)
mainLights = 1 <-- enable main emergency lights (roof lights) feature
strobeLights = 0 <-- disable strobe lights feature
advisorLights = 0 <-- disable advisor lights feature

mainEL.pos1.X = 0.3 <-- main/roof emergency light on left/right side, corona #1 position on X axis (getting mirrored automatically to other side so you need to define only left or right side)
mainEL.pos2.X = 0.8 <-- main/roof emergency light on left/right side, corona #2 position on X axis (getting mirrored automatically to other side so you need to define only left or right side)
mainEL.pos.Y = -0.35 <-- main/roof emergency lights position on Y axis
mainEL.pos.Z = 1.55 <-- main/roof emergency lights position on Z axis
mainEL.rgb1.R = 255 <-- main/roof emergency light side 1 rgb color Red value
mainEL.rgb1.G = 166 <-- main/roof emergency light side 1 rgb color Green value
mainEL.rgb1.B = 0 <-- main/roof emergency light side 1 rgb color Blue value
mainEL.rgb2.R = 255 <-- main/roof emergency light side 2 rgb color Red value
mainEL.rgb2.G = 166 <-- main/roof emergency light side 2 rgb color Green value
mainEL.rgb2.B = 0 <-- main/roof emergency light side 2 rgb color Blue value
mainEL.alpha = 155 <-- main/roof emergency lights corona alpha
mainEL.size = 1.0 <-- main/roof emergency lights corona size
mainEL.shadow.pos.X = 1.5 <-- main/roof emergency light on left/right side, shadow position on X axis (getting mirrored automatically to other side so you need to define only left or right side)
mainEL.shadow.pos.Y = -0.35 <-- main/roof emergency light shadow position on Y axis
mainEL.shadow.pos.Z = 0.9 <-- main/roof emergency light shadow position on Z axis
mainEL.shadow.size = 3.0 <-- main/roof emergency light shadow size
mainEL.shadow.rgb1.R = 105 <-- main/roof emergency light side 1 shadow rgb color Red value
mainEL.shadow.rgb1.G = 76 <-- main/roof emergency light side 1 shadow rgb color Green value
mainEL.shadow.rgb1.B = 0 <-- main/roof emergency light side 1 shadow rgb color Blue value
mainEL.shadow.rgb2.R = 105 <-- main/roof emergency light side 2 shadow rgb color Red value
mainEL.shadow.rgb2.G = 76 <-- main/roof emergency light side 2 shadow rgb color Green value
mainEL.shadow.rgb2.B = 0 <-- main/roof emergency light side 2 shadow rgb color Blue value
[/hide]
This config enables only the roof emergency lights for towtruck. For vehicle which have strobe lights and/or advisor too, those need more lines to configure the other light positions and colors and sizes too.

here how this config looks like in game:


Hobo



[tr]
[td]

[/td]
[td][/td]
[td]

[shadow=black,left]My PC Specs:
-AMD Ryzen 7 2700X
-EVGA RTX 3080
-ASUS Prime X470-Pro Motherboard
-CORSAIR Vengeance RGB PRO 32GB RAM
-ADATA SX8200 NVME SSD 960GB
-Seagate IronWolf Pro 8TB HDD
-Western Digital Blue 2TB HDD
-ADATA Ultimate SU800 2TB SDD x2
-ADATA Ultimate SU800 1TB SSD x2
-Corsair HX750 Professional PSU
-NZXT H440 white/black case
[/shadow]
[/td]
[/tr]
[/table]

AzureSpeed

how long till its realeased? btw will you make a readme wit instructions on how to install this mod w/o samp crashing?

nyolc8

Quote from: BlackFire on December 30, 2014, 07:16
how long till its realeased? btw will you make a readme wit instructions on how to install this mod w/o samp crashing?
Don't know. Yeah I'll write a readme.

***

New onscreen-state system:



It's movable on the screen via ini file, you can set the transparency of it, and also you will be able to switch back to text-status (like on older videos)

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]

SpazzBucket.

is this only going to be for your mods or will it be compatible with all elm vehicles?
"The more you fail, the more you know.
When you lose you then try to gain.
The best lessons are learnt through pain"
Quote from: HoboHobo [30 Jan 20:40]:   "Since I don't do that whole guy thing" .... Ok guys, pack up the lemonade stand, she's not interested.
[hide=Alyssa White-Glutz hottest woman in metal]http://[/hide]
[hide=Lzzy Hale][/hide]
[hide=Renee Phoenix][/hide]
[hide=Good one Stteve]
Quote from: SpazzbucketI suddenly feel very smart
Quote from: StteveYou're extremely smart all the time, it just explodes sometimes
Quote from: StteveSo we're volcanoes
[/hide][hide=Other true/clever quotes]
Quote from: Sjomp on May 04, 2014, 18:54
It doesn't matter how much people are online it's about how much fun you have.
Quote from: braneNext time don't use any porn site to upload pictures. Imgur or Imageshack would be fine. Its not nice to see cocks around while checking the image you came for.
Quote from: TheSandmanBan looks fair. its pathetic when people attack females just because they play an online game, wow.
Quote from: TheSandmanRap is like scissors, it always loses to rock
Quote from: HoboProvoking doesn't brake rules, but it does break them.

Remember to brake for moose so you don't break your car.
[/hide]
[hide=Konali's motto]
Quote from: Konali on January 12, 2014, 16:41I only had one rule in my head that i used in every situation: its a game, lets keep it that way.

Wizzer

Quote from: SpazzBucket. on December 30, 2014, 21:25
is this only going to be for your mods or will it be compatible with all elm vehicles?
Quote from: nyolc8 on December 27, 2014, 22:57
It will work on any car (even on non-police) because there will be an ini file where you can specify the light positions and everything. For every car you want.
[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 -.-

nyolc8

Quote from: Wizzer on December 30, 2014, 21:28
Quote from: SpazzBucket. on December 30, 2014, 21:25
is this only going to be for your mods or will it be compatible with all elm vehicles?
Quote from: nyolc8 on December 27, 2014, 22:57
It will work on any car (even on non-police) because there will be an ini file where you can specify the light positions and everything. For every car you want.
It's working on non-modified vehicles. To make a simple answer, I just did this for you by adding some new lines into the "emergency.ini" file and using stock gtasa vehicle:


(flying while holding phone -> landing fail :D)