Advertisement
dcomicboy

fixing turbos and sc's

Feb 26th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. Fixing cars missing Superchargers and turbo setups
  2.  
  3. These cars can't be fixed with the normal "install part" method because the way the game is coded, you have to have at least a turbo or at least a supercharger installed in order to install the missing pipings/intercoolers or pulleys.
  4.  
  5. I discovered a work around to this using the exact method that's normally used to system swap from headers to turbo anyway.
  6.  
  7. function systemSwap()
  8. {
  9. classes.Frame.serverLights(true);
  10. getURL("lingo: executeCall \"systemswap\", \"acid=" + acid + "&etid=" + etid + "&aepids=" + aepids + "\"", "");
  11.  
  12. using that function found in Frame 12 of the client, we can swap the system type even though no true system is installed.
  13.  
  14. on a users side, we have to buy the parts from part shop and get the proper id numbers using 3rd party tools.
  15.  
  16. From there, we put the Id's in the proper places manually (either hard coded like below) or with text boxes if we have a ton to fix.
  17.  
  18. click a button and its done so basically
  19.  
  20. var _loc1 = classes.GlobalData.getSelectedCarXML();
  21. var acid = _loc1.attributes.i; // id to the car
  22. var etid = Number(3); // supercharger engine type
  23. var aepids = "<supercharger id>,<pulley id>";
  24.  
  25. functoin systemswap()
  26. {
  27. getURL("lingo: executeCall \"systemswap\", \"acid=" + acid + "&etid=" + etid + "&aepids=" + aepids + "\"", "");
  28. }
  29.  
  30. btnSwapSystem.onRelease = function()
  31. {
  32. systemswap();
  33. }
  34.  
  35. and that's all there is to it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement