[Release] Car Crash Detection

Disables the engine for a few seconds after a pretty heavy car crash and makes it stop working at all when the engine is too damaged.

Download

Install it like any other resource. Have fun!

(Made by @Mr.Scammer)

7 Likes

any chance we can get a source? wanted to see how it all works.

Don’t have the source code on hand, but it pretty much just constantly fetches and saves the current car engine health state, and compares the previous health state with the current one to check for sudden drops. (Btw yes this is from me, don’t remember why I posted it from another account)

2 Likes

The mod is really good, but this takes a long time until a car is broken.
Is there the possibility that the car can not drive after two accidents?
Because in real life is the same.

2 Likes

Great script really works well on my server :slight_smile:

@Mr.Scammer - what @BeMeTV mentioned - is that posible ?? - thanks

@Thor Definitely if one sets that, the car for example at the first accident breaks

This is a really nice script, but like others have said it takes a lot of crashing before the car actually dies. If you could make it happen sooner, that’d be great!

2 Likes

In case anyone still wants the source, here it is (along with some more old abandoned scripts of mine).

2 Likes

You sir are a legend. Im so enthrilled by your open source mind, that i quite think ill make my source availbe too when my stuff is done.

Where can I adjust in the file how much damage the car gets in an accident?

To add bloat:

  • Make the thresholds configurable through a config file
  • Use some kind of timer instead of a fixed time loop (and make that timeout configurable too)
2 Likes

How do i install them? Do i compile them into a .DLL File? if so, how do i do that

create new folder in resource an name this “carcrash” put the dll in the folder and create a __resource.lua and than “client_script ‘carcrash.net.dll’” and and this to your resource start file from server and than restart your server

No what i mean is that, how do i change the damage the car gets through the .dll

Hay guys has this stopped working for anyone else.

Yes, it has not worked for me in a long time. But we do have the source code, we will have to wait for someone to make an update or make one ourselves Source: Here

just tried this but as stated above it doesn’t work, anyone got a working version their willing to share? if not how can we edit the health of cars?

I edited the src to this to add the electric cars to the dmg list as it would only work with cars with engines it worked well on my windows test server but soon as I moved to a ubuntu server it stopped working am still trying to work out why…

1 Like

I’m going to try and work on this tonight. I’ve seen several servers using this, and it’s working. Which means they aren’t sharing. Rest assured if I get it working I will share it. :smiley:

5 Likes