Panadur Posted January 20, 2014 Report Share Posted January 20, 2014 Hi there, on my server i have a modified repair_vehicle.sqf and salvage_vehicle.sqf that only allow you to repair or salvage 4 or 6 wheels on a vehicle, depending on its class Serach for private ["_part","_cancel","_color","_allFixed","_percent","_string","_handle","_damage","_cmpt","_vehicle","_hitpoints"]; and change it to private ["_part","_cancel","_color","_allFixed","_percent","_string","_handle","_damage","_cmpt","_vehicle","_hitpoints","_hitpoints2"]; then search for _hitpoints = _vehicle call vehicle_getHitpoints; and add this code after // ********************* Panadur's Wheelfix Start ************************************************************************************************************************** _hitpoints2=[]; if ((typeof _vehicle) isKindOf "Truck") then { if (_x in ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitGlass7","HitGlass8","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitLMWheel","HitRMWheel","HitFuel","HitRGlass","HitLGlass","HitEngine"]) then _hitpoints2 set [(count _hitpoints2),_x]; } } foreach _hitpoints; _hitpoints = _hitpoints2; }; if (((typeof _vehicle) isKindOf "Car") and !((typeof _vehicle) isKindOf "Truck")) then { { if (_x in ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitGlass7","HitGlass8","HitLFWheel","HitLBWheel","HitRFWheel","HitRBWheel","HitFuel","HitRGlass","HitLGlass","HitEngine"]) then _hitpoints2 set [(count _hitpoints2),_x]; } } foreach _hitpoints; _hitpoints = _hitpoints2; }; // ********************* Panadur's Wheelfix End ************************************************************************************************************************** Now Cars only have four or six Wheels. Link to comment Share on other sites More sharing options...
chucky_xxl Posted January 26, 2014 Report Share Posted January 26, 2014 i will test it but where i can find the repair_vehicle.sqf and salvage_vehicle.sqf ? Link to comment Share on other sites More sharing options...
ValdisMD Posted February 3, 2014 Report Share Posted February 3, 2014 cant make it work on 1.0.4 Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted February 4, 2014 Report Share Posted February 4, 2014 If this works, the devs should make it standard. I always thought it was silly that on some vehicles you could remove non-existent wheels. Link to comment Share on other sites More sharing options...
fireplace Posted February 7, 2014 Report Share Posted February 7, 2014 This is not working in 1.0.4. I added ,"_hitpoints2" to the end of private, an edited "fn_selfActions" to call the new edited files. But when you click repair or salvage in game you don't get any options to fix anything... Anyone know a way of getting this to work? Link to comment Share on other sites More sharing options...
ValdisMD Posted February 7, 2014 Report Share Posted February 7, 2014 This is not working in 1.0.4. I added ,"_hitpoints2" to the end of private, an edited "fn_selfActions" to call the new edited files. But when you click repair or salvage in game you don't get any options to fix anything... Anyone know a way of getting this to work? Same here, would love to have it fixed. Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted May 12, 2014 Report Share Posted May 12, 2014 Anyone got a way for this to work? I edited my fn_selfactions to link to the modified repair_vehicle.sqf and salvage_vehicle.sqf files and I couldn't repair or salvage anymore. Link to comment Share on other sites More sharing options...
Sp4rkY Posted May 15, 2014 Report Share Posted May 15, 2014 I have changed the code so it works, i had the repair and salvage functions back. But it doesnt matter if you use this code or not, the addional wheels which logically u dont see are still there for repairing or slavaging. With other words, this script has no function ! I also tryed to create a query to only one specific vehicle like a "SUV Orange", but still 8 wheels are available for salvaging. Panadur: Can you take a look at this again and/or fix it so it works ? Probably u forgot some "{" or used too many of them ? What i try to say is: If you use this code as it shown at the first post, u will break the script process all over. Thats the reason why no option is shown if you want to repair or salvage any vehicle. And if you fix the script process with some missing "{" the options come back but the script isnt working as it should do. Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted March 25, 2015 Report Share Posted March 25, 2015 Just going to bump this up, as I'd love to find a fix for the extra wheels and windows. Link to comment Share on other sites More sharing options...
SchwEde Posted March 25, 2015 Report Share Posted March 25, 2015 I posted a fix for that for that somewhere here Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted March 25, 2015 Report Share Posted March 25, 2015 I posted a fix for that for that somewhere here I tried searching before I posted here, which lead me to this post. I haven't found any fix. Link to comment Share on other sites More sharing options...
SchwEde Posted March 25, 2015 Report Share Posted March 25, 2015 Why not simply search trough my content ? Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted March 27, 2015 Report Share Posted March 27, 2015 Why not simply search trough my content ? Maybe because at the time I searched, I didn't know you posted that thread? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now