suicidehummer Posted June 14, 2018 Share Posted June 14, 2018 So, in the Native Trainer that comes with Scripthook, there is an option to make wheels stronger, so they don't get pushed in so easily. Does anyone know what value they are editing to do that? I've tried all the handling and damage flags that seem relevant but to no avail. Link to comment Share on other sites More sharing options...
ItsiAdam Posted June 14, 2018 Share Posted June 14, 2018 Have you tried giving your vehicles a positive camber? It wouldn't make them invincible, but as you could imagine, it'd push them out a bit further, perhaps giving them more resistence. And what is the option called in NativeTrainer? You could look for it in the source. Link to comment Share on other sites More sharing options...
suicidehummer Posted June 15, 2018 Author Share Posted June 15, 2018 17 hours ago, ItsiAdam said: Have you tried giving your vehicles a positive camber? It wouldn't make them invincible, but as you could imagine, it'd push them out a bit further, perhaps giving them more resistence. And what is the option called in NativeTrainer? You could look for it in the source. How would I open the source code and where would I look? Sorry, bit of a newb at modding. Link to comment Share on other sites More sharing options...
ItsiAdam Posted June 15, 2018 Share Posted June 15, 2018 It's apart of the SHV SDK. Anyway, this is all the code does: if (bPlayerExists && !featureVehInvincibleWheels && PED::IS_PED_IN_ANY_VEHICLE(playerPed, 0)) { Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed); VEHICLE::SET_VEHICLE_TYRES_CAN_BURST(veh, TRUE); VEHICLE::SET_VEHICLE_WHEELS_CAN_BREAK(veh, TRUE); VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(veh, FALSE); } Link to comment Share on other sites More sharing options...
suicidehummer Posted June 16, 2018 Author Share Posted June 16, 2018 17 hours ago, ItsiAdam said: It's apart of the SHV SDK. Anyway, this is all the code does: if (bPlayerExists && !featureVehInvincibleWheels && PED::IS_PED_IN_ANY_VEHICLE(playerPed, 0)) { Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed); VEHICLE::SET_VEHICLE_TYRES_CAN_BURST(veh, TRUE); VEHICLE::SET_VEHICLE_WHEELS_CAN_BREAK(veh, TRUE); VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(veh, FALSE); } So is there a way to have that permanently on by editing game files? Or is it entirely a function of the trainer code? And if so, can I make it permanent there? Link to comment Share on other sites More sharing options...
ItsiAdam Posted June 16, 2018 Share Posted June 16, 2018 (edited) Just call this on frame by the looks: VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(veh, true); Edited June 16, 2018 by ItsiAdam Link to comment Share on other sites More sharing options...
suicidehummer Posted June 17, 2018 Author Share Posted June 17, 2018 14 hours ago, ItsiAdam said: Just call this on frame by the looks: VEHICLE::SET_VEHICLE_HAS_STRONG_AXLES(veh, true); How do you open the code? OpenIV doesn't seem to be able to. Link to comment Share on other sites More sharing options...
ItsiAdam Posted June 17, 2018 Share Posted June 17, 2018 With Visual Studio? The SDK is available here: http://www.dev-c.com/gtav/scripthookv/ 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