[Code] Brake Lights

Making or wanting help making your own asset? Check in here
Post Reply
Wilkinson
Posts: 1916
Joined: 2008-08-18 21:55

[Code] Brake Lights

Post by Wilkinson »

The Video is a Bit laggy, but the point gets across





The Brakes will be activated once a Player enters the vehicle. As the engine revs the Lights obiviously turn off.

As the player comes to a complete stop, the brakes will turn on.

Pretty Self-Explanatory. Coding was kinda funky and alot of trial and error :P but I got the puppy.


Headlights are also a possibility but for show only. Dynamic Lighting will not allow Headlights to function right.
Unless I missed something ;)
Image
Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Code: Brake Lights

Post by Rhino »

cool :)
Wilkinson wrote:Headlights are also a possibility but for show only. Dynamic Lighting will not allow Headlights to function right.
Unless I missed something ;)
is possible but VERY buggy and glitch etc. The Battle Racer mod did it ages ago :)
Image
Wilkinson
Posts: 1916
Joined: 2008-08-18 21:55

Re: Code: Brake Lights

Post by Wilkinson »

[R-DEV]Rhino wrote:cool :)



is possible but VERY buggy and glitch etc. The Battle Racer mod did it ages ago :)
Yeah I tried looking into talking with one of their DEVs but I couldn't remember their Name. thanks :P
Image
Image
HangMan_
Posts: 1753
Joined: 2009-06-07 00:58

Re: [Code] Brake Lights

Post by HangMan_ »

That is cool :D Good effort on this. How does it run ingame?
Image

PR Community Faction Team - "Getting Sh*t Done..."
Wilkinson
Posts: 1916
Joined: 2008-08-18 21:55

Re: [Code] Brake Lights

Post by Wilkinson »

I'll try and test it tonight. Need to get a 2nd Player
Image
Image
Gosu-Rizzle
Posts: 610
Joined: 2009-06-06 13:23

Re: [Code] Brake Lights

Post by Gosu-Rizzle »

Ahh yes, battleracer, the good old days :p Anyways, looks cool and good luck
AfterDune
Retired PR Developer
Posts: 17094
Joined: 2007-02-08 07:19

Re: [Code] Brake Lights

Post by AfterDune »

EoD has dynamic headlights on some vehicles that, as far as I know, work good! It looks pretty cool as well :D . Could be interesting for an evening-map ;) .
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [Code] Brake Lights

Post by Rudd »

I really like the brake lights, its always annoying ingame since response times to convoy vehicles having to halt for whatever reason, are quite low because of lack of visual ques amongst other reasons.

Really nice.
Could be interesting for an evening-map .
I was actually thinking the same thing. PRSP has shown the way imo as having multiple folders with only server.zips would allow alot more modding of the current maps. Al basrah evening, Fools road Day 2, Muttrah MEC retaliation, etc etc .LOTS of variation, not so much filesize.
Image
Celestial1
Posts: 1124
Joined: 2007-08-07 19:14

Re: [Code] Brake Lights

Post by Celestial1 »

Can't make it so that when W is not being sent, that the brake lights shine?

Complete stops only will oft make it only for show, because they would have to stop hard, which at that point could very easily cause everyone behind to bunch up.
Wilkinson
Posts: 1916
Joined: 2008-08-18 21:55

Re: [Code] Brake Lights

Post by Wilkinson »

Celestial1 wrote:Can't make it so that when W is not being sent, that the brake lights shine?

Complete stops only will oft make it only for show, because they would have to stop hard, which at that point could very easily cause everyone behind to bunch up.
The light works as an effect bundle, working off of very limited code. I'm looking more into it though. Seeing how I can improve Vehicle Features. Such as this.
Image
Image
PLODDITHANLEY
Posts: 3608
Joined: 2009-05-02 19:44

Re: [Code] Brake Lights

Post by PLODDITHANLEY »

Be lovely to have reversing lights, it might stop accidental TKs from APC's?

Pressing S when stationary = white rear lights?
Solid Knight
Posts: 2257
Joined: 2008-09-04 00:46

Re: [Code] Brake Lights

Post by Solid Knight »

I doubt it would. Usually they get killed because they either are not looking at all or are too close to get out of the way.
Post Reply

Return to “PR:BF2 Community Modding”