Download the .zip file above and place the included folder into your server’s resource folder. Once the folder is in go to the root directory of your server where FXServer.exe is located, open your server config file (depending on what you named it, typically server.cfg), add start wk_vehdamage to your resource start section.
You can change the level at which a vehicle breaks, at the top of cl_vehicle.lua, change the variable from 975.0 to say 985.0, keep changing it and see what suits you. It also depends what car you’re using, because I tested this with the gauntlet and it broke pretty quickly.
EDIT: Does break from melee attacks, but it takes quite a few before breaking.
EDIT 2: Nevermind, some cars take one kick, some take 5 or more, I’ll look into this.
i also tried the gauntlet, that broke when i rammed straight on into a wall at 87 mph,
but when i tried hitting things with the side of the car maybe 10 times it did nothing,
editing the number at the top of cl_vehicle, do i change the number up or down to make it more sensitive
I love this script and I’m also going to change the amount but what is driving my crazy is when you type /fix it fixes your vehicle but it appears in chat for everyone to see and I’m starting up my community and with around 5-8 people being in game typing /fix every time they hit something is sorta annoying. Is there anyway to change that where it wont pop up in chat for everyone.
Great script - what I have noticed while testing - you need to hit part of the car where the engine is. Ie engine in front, crash in front disables vehicle but if the engine is in the rear and you crash the front - car still drives. Now if you reverse a car that has the engine in the back and crash it - car is disabled.
Maybe has some way to register damage no matter where its hit.
I tweaked it a tiny bit to also use body damage as well as engine so what ever damage is done it effects it - but most disables are still engine based (as body takes longer to damage overall).
Any chance you could share that tweak cause would be nice if the car could be disabled if there was continuous damage to the sides or rear not just the engine. Thanks in advance