Advertisement
Shiny_

Untitled

Jul 15th, 2014
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.14 KB | None | 0 0
  1. -- Nazwy pojazdów:
  2. EUROS =         587
  3. ELEGY =         562
  4. NEBULA =        516
  5. REGINA =        479
  6. SULTAN =        560
  7. ADMIRAL =       445
  8. BANSHEE =       429
  9. BRAVURA =       401
  10. MONSTER =       444
  11. PICADOR =       600
  12. TURISMO =       451
  13. INFERNUS =      411
  14. BUCCANEER =     518
  15. MONSTER_A =     556
  16. MONSTER_B =     557
  17. FBI_RANCHER =   490
  18.  
  19. addEventHandler("onPlayerVehicleEnter", getResourceRootElement(getThisResource()), function(thePlayer)
  20.     if isPedInVehicle(thePlayer) then -- gdy tego nie było, wszystko działało "niezbyt poprawnie" (resetowało się co ~2 sekundy, czasem wcale nie działało)
  21.         for _, veh in pairs(getElementsByType("vehicle")) do
  22.             if getElementModel(veh) == BRAVURA then
  23.                 setVehicleHandling(veh, "mass", 1600.0)
  24.                 setVehicleHandling(veh, "turnMass", 3921.3)
  25.                 setVehicleHandling(veh, "dragCoeff", 1.8)
  26.                 setVehicleHandling(veh, "centerOfMass", { 0, -0.4, 0 } )
  27.                 setVehicleHandling(veh, "percentSubmerged", 75)
  28.                 setVehicleHandling(veh, "tractionMultiplier", 0.75)
  29.                 setVehicleHandling(veh, "tractionLoss", 0.85)
  30.                 setVehicleHandling(veh, "tractionBias", 0.52)
  31.                 setVehicleHandling(veh, "numberOfGears", 5)
  32.                 setVehicleHandling(veh, "maxVelocity", 200)
  33.                 setVehicleHandling(veh, "engineAcceleration", 8.8)
  34.                 setVehicleHandling(veh, "engineInertia", 10)
  35.                 setVehicleHandling(veh, "driveType", "rwd")
  36.                 setVehicleHandling(veh, "engineType", "petrol")
  37.                 setVehicleHandling(veh, "brakeDeceleration", 10)
  38.                 setVehicleHandling(veh, "brakeBias", 0.53)
  39.                 setVehicleHandling(veh, "ABS", false)
  40.                 setVehicleHandling(veh, "steeringLock", 35)
  41.                 setVehicleHandling(veh, "suspensionForceLevel", 1.3)
  42.                 setVehicleHandling(veh, "suspensionDamping", 0.12)
  43.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  44.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.28)
  45.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.12)
  46.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.38)
  47.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0)
  48.                 setVehicleHandling(veh, "seatOffsetDistance", 0.2)
  49.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.24)
  50.                 setVehicleHandling(veh, "monetary", 9000)
  51.                 setVehicleHandling(veh, "modelFlags", 0x40000000)
  52.                 setVehicleHandling(veh, "handlingFlags", 0x10200008)
  53.                 setVehicleHandling(veh, "headLight", 0)
  54.                 setVehicleHandling(veh, "tailLight", 0)
  55.                 setVehicleHandling(veh, "animGroup", 0)
  56.  
  57.             elseif getElementModel(veh) == ADMIRAL then
  58.                 setVehicleHandling(veh, "mass", 1600.0)
  59.                 setVehicleHandling(veh, "turnMass", 3600.0)
  60.                 setVehicleHandling(veh, "dragCoeff", 2.2)
  61.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, -0.2 } )
  62.                 setVehicleHandling(veh, "percentSubmerged", 75)
  63.                 setVehicleHandling(veh, "tractionMultiplier", 0.65)
  64.                 setVehicleHandling(veh, "tractionLoss", 0.75)
  65.                 setVehicleHandling(veh, "tractionBias", 0.5)
  66.                 setVehicleHandling(veh, "numberOfGears", 5)
  67.                 setVehicleHandling(veh, "maxVelocity", 185)
  68.                 setVehicleHandling(veh, "engineAcceleration", 10.4)
  69.                 setVehicleHandling(veh, "engineInertia", 10)
  70.                 setVehicleHandling(veh, "driveType", "rwd")
  71.                 setVehicleHandling(veh, "engineType", "petrol")
  72.                 setVehicleHandling(veh, "brakeDeceleration", 10)
  73.                 setVehicleHandling(veh, "brakeBias", 0.5)
  74.                 setVehicleHandling(veh, "ABS", false)
  75.                 setVehicleHandling(veh, "steeringLock", 29)
  76.                 setVehicleHandling(veh, "suspensionForceLevel", 1)
  77.                 setVehicleHandling(veh, "suspensionDamping", 0.08)
  78.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  79.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.3)
  80.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.19)
  81.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  82.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.3)
  83.                 setVehicleHandling(veh, "seatOffsetDistance", 0.2)
  84.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.52)
  85.                 setVehicleHandling(veh, "monetary", 35000)
  86.                 setVehicleHandling(veh, "modelFlags", 0x0)
  87.                 setVehicleHandling(veh, "handlingFlags", 0x404400)
  88.                 setVehicleHandling(veh, "headLight", 0)
  89.                 setVehicleHandling(veh, "tailLight", 1)
  90.                 setVehicleHandling(veh, "animGroup", 0)
  91.  
  92.             elseif getElementModel(veh) == INFERNUS then
  93.                 setVehicleHandling(veh, "mass", 1600)
  94.                 setVehicleHandling(veh, "turnMass", 2000)
  95.                 setVehicleHandling(veh, "dragCoeff", 1.75)
  96.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, -0.6 } )
  97.                 setVehicleHandling(veh, "percentSubmerged", 70)
  98.                 setVehicleHandling(veh, "tractionMultiplier", 0.85)
  99.                 setVehicleHandling(veh, "tractionLoss", 0.8)
  100.                 setVehicleHandling(veh, "tractionBias", 0.39)
  101.                 setVehicleHandling(veh, "numberOfGears", 5)
  102.                 setVehicleHandling(veh, "maxVelocity", 220)
  103.                 setVehicleHandling(veh, "engineAcceleration", 25)
  104.                 setVehicleHandling(veh, "engineInertia", 10)
  105.                 setVehicleHandling(veh, "driveType", "rwd")
  106.                 setVehicleHandling(veh, "engineType", "petrol")
  107.                 setVehicleHandling(veh, "brakeDeceleration", 16)
  108.                 setVehicleHandling(veh, "brakeBias", 0.5)
  109.                 setVehicleHandling(veh, "ABS", false)
  110.                 setVehicleHandling(veh, "steeringLock", 32.5)
  111.                 setVehicleHandling(veh, "suspensionForceLevel", 0.8)
  112.                 setVehicleHandling(veh, "suspensionDamping", 0.19)
  113.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  114.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.25)
  115.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.1)
  116.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  117.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.4)
  118.                 setVehicleHandling(veh, "seatOffsetDistance", 0.38)
  119.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.35)
  120.                 setVehicleHandling(veh, "monetary", 95000)
  121.                 setVehicleHandling(veh, "modelFlags", 0x220004)
  122.                 setVehicleHandling(veh, "handlingFlags", 0x11418804)
  123.                 setVehicleHandling(veh, "headLight", 1)
  124.                 setVehicleHandling(veh, "tailLight", 1)
  125.                 setVehicleHandling(veh, "animGroup", 1)
  126.  
  127.             elseif getElementModel(veh) == FBI_RANCHER then
  128.                 setVehicleHandling(veh, "mass", 1800)
  129.                 setVehicleHandling(veh, "turnMass", 3750)
  130.                 setVehicleHandling(veh, "dragCoeff", 2.1)
  131.                 setVehicleHandling(veh, "centerOfMass", { 0, 0.1, -0.1 } )
  132.                 setVehicleHandling(veh, "percentSubmerged", 75)
  133.                 setVehicleHandling(veh, "tractionMultiplier", 0.6)
  134.                 setVehicleHandling(veh, "tractionLoss", 0.85)
  135.                 setVehicleHandling(veh, "tractionBias", 0.5)
  136.                 setVehicleHandling(veh, "numberOfGears", 5)
  137.                 setVehicleHandling(veh, "maxVelocity", 230)
  138.                 setVehicleHandling(veh, "engineAcceleration", 9.4)
  139.                 setVehicleHandling(veh, "engineInertia", 5)
  140.                 setVehicleHandling(veh, "driveType", "awd")
  141.                 setVehicleHandling(veh, "engineType", "petrol")
  142.                 setVehicleHandling(veh, "brakeDeceleration", 7)
  143.                 setVehicleHandling(veh, "brakeBias", 0.5)
  144.                 setVehicleHandling(veh, "ABS", false)
  145.                 setVehicleHandling(veh, "steeringLock", 30)
  146.                 setVehicleHandling(veh, "suspensionForceLevel", 1)
  147.                 setVehicleHandling(veh, "suspensionDamping", 0.15)
  148.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  149.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.28)
  150.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.16)
  151.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  152.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.3)
  153.                 setVehicleHandling(veh, "seatOffsetDistance", 0.25)
  154.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.48)
  155.                 setVehicleHandling(veh, "monetary", 40000)
  156.                 setVehicleHandling(veh, "modelFlags", 0x40222000)
  157.                 setVehicleHandling(veh, "handlingFlags", 0x14342207)
  158.                 setVehicleHandling(veh, "headLight", 0)
  159.                 setVehicleHandling(veh, "tailLight", 1)
  160.                 setVehicleHandling(veh, "animGroup", 0)
  161.  
  162.             elseif getElementModel(veh) == EUROS then
  163.                 setVehicleHandling(veh, "mass", 1600)
  164.                 setVehicleHandling(veh, "turnMass", 3200)
  165.                 setVehicleHandling(veh, "dragCoeff", 2.2)
  166.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, 0.2 } )
  167.                 setVehicleHandling(veh, "percentSubmerged", 75)
  168.                 setVehicleHandling(veh, "tractionMultiplier", 0.7)
  169.                 setVehicleHandling(veh, "tractionLoss", 0.8)
  170.                 setVehicleHandling(veh, "tractionBias", 0.5)
  171.                 setVehicleHandling(veh, "numberOfGears", 5)
  172.                 setVehicleHandling(veh, "maxVelocity", 200)
  173.                 setVehicleHandling(veh, "engineAcceleration", 10)
  174.                 setVehicleHandling(veh, "engineInertia", 5)
  175.                 setVehicleHandling(veh, "driveType", "awd")
  176.                 setVehicleHandling(veh, "engineType", "petrol")
  177.                 setVehicleHandling(veh, "brakeDeceleration", 8)
  178.                 setVehicleHandling(veh, "brakeBias", 0.55)
  179.                 setVehicleHandling(veh, "ABS", false)
  180.                 setVehicleHandling(veh, "steeringLock", 26)
  181.                 setVehicleHandling(veh, "suspensionForceLevel", 1.2)
  182.                 setVehicleHandling(veh, "suspensionDamping", 0.15)
  183.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  184.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.2)
  185.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.1)
  186.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  187.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.3)
  188.                 setVehicleHandling(veh, "seatOffsetDistance", 0.25)
  189.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.6)
  190.                 setVehicleHandling(veh, "monetary", 35000)
  191.                 setVehicleHandling(veh, "modelFlags", 0x40552804)
  192.                 setVehicleHandling(veh, "handlingFlags", 0x1010007)
  193.                 setVehicleHandling(veh, "headLight", 1)
  194.                 setVehicleHandling(veh, "tailLight", 1)
  195.                 setVehicleHandling(veh, "animGroup", 0)
  196.  
  197.             elseif getElementModel(veh) == NEBULA then
  198.                 setVehicleHandling(veh, "mass", 3200)
  199.                 setVehicleHandling(veh, "turnMass", 6400)
  200.                 setVehicleHandling(veh, "dragCoeff", 2.2)
  201.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, -0.6 } )
  202.                 setVehicleHandling(veh, "percentSubmerged", 80)
  203.                 setVehicleHandling(veh, "tractionMultiplier", 0.75)
  204.                 setVehicleHandling(veh, "tractionLoss", 0.85)
  205.                 setVehicleHandling(veh, "tractionBias", 0.4)
  206.                 setVehicleHandling(veh, "numberOfGears", 5)
  207.                 setVehicleHandling(veh, "maxVelocity", 135)
  208.                 setVehicleHandling(veh, "engineAcceleration", 22)
  209.                 setVehicleHandling(veh, "engineInertia", 115)
  210.                 setVehicleHandling(veh, "driveType", "awd")
  211.                 setVehicleHandling(veh, "engineType", "petrol")
  212.                 setVehicleHandling(veh, "brakeDeceleration", 9.5)
  213.                 setVehicleHandling(veh, "brakeBias", 0.5)
  214.                 setVehicleHandling(veh, "ABS", false)
  215.                 setVehicleHandling(veh, "steeringLock", 25)
  216.                 setVehicleHandling(veh, "suspensionForceLevel", 0.8)
  217.                 setVehicleHandling(veh, "suspensionDamping", 0.15)
  218.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  219.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.31)
  220.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.3)
  221.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  222.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0)
  223.                 setVehicleHandling(veh, "seatOffsetDistance", 0.38)
  224.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.3)
  225.                 setVehicleHandling(veh, "monetary", 35000)
  226.                 setVehicleHandling(veh, "modelFlags", 0xE0DD2000)
  227.                 setVehicleHandling(veh, "handlingFlags", 0x308883)
  228.                 setVehicleHandling(veh, "headLight", 0)
  229.                 setVehicleHandling(veh, "tailLight", 1)
  230.                 setVehicleHandling(veh, "animGroup", 0)
  231.  
  232.             elseif getElementModel(veh) == BANSHEE then
  233.                 setVehicleHandling(veh, "maxVelocity", 220)
  234.  
  235.             elseif getElementModel(veh) == SULTAN then
  236.                 setVehicleHandling(veh, "mass", 1000)
  237.                 setVehicleHandling(veh, "turnMass", 1500)
  238.                 setVehicleHandling(veh, "dragCoeff", 6.5)
  239.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, -0.3 } )
  240.                 setVehicleHandling(veh, "percentSubmerged", 50)
  241.                 setVehicleHandling(veh, "tractionMultiplier", 0.85)
  242.                 setVehicleHandling(veh, "tractionLoss", 0.85)
  243.                 setVehicleHandling(veh, "tractionBias", 0.5)
  244.                 setVehicleHandling(veh, "numberOfGears", 5)
  245.                 setVehicleHandling(veh, "maxVelocity", 175)
  246.                 setVehicleHandling(veh, "engineAcceleration", 30)
  247.                 setVehicleHandling(veh, "engineInertia", 150)
  248.                 setVehicleHandling(veh, "driveType", "fwd")
  249.                 setVehicleHandling(veh, "engineType", "petrol")
  250.                 setVehicleHandling(veh, "brakeDeceleration", 8.5)
  251.                 setVehicleHandling(veh, "brakeBias", 0.5)
  252.                 setVehicleHandling(veh, "ABS", false)
  253.                 setVehicleHandling(veh, "steeringLock", 30)
  254.                 setVehicleHandling(veh, "suspensionForceLevel", 2.6)
  255.                 setVehicleHandling(veh, "suspensionDamping", 0.1)
  256.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0.35)
  257.                 setVehicleHandling(veh, "suspensionUpperLimit", 1)
  258.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.2)
  259.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  260.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.28)
  261.                 setVehicleHandling(veh, "seatOffsetDistance", 0.28)
  262.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.3)
  263.                 setVehicleHandling(veh, "monetary", 35000)
  264.                 setVehicleHandling(veh, "modelFlags", 0x40AA2800)
  265.                 setVehicleHandling(veh, "handlingFlags", 0xF8000483)
  266.                 setVehicleHandling(veh, "headLight", 1)
  267.                 setVehicleHandling(veh, "tailLight", 1)
  268.                 setVehicleHandling(veh, "animGroup", 0)
  269.             elseif getElementModel(veh) == REGINA then
  270.                 setVehicleHandling(veh, "mass", 1500.0)
  271.                 setVehicleHandling(veh, "turnMass", 3800.0)
  272.                 setVehicleHandling(veh, "dragCoeff", 2.0)
  273.                 setVehicleHandling(veh, "centerOfMass", { 0.0, 0.2, 0.0 } )
  274.                 setVehicleHandling(veh, "percentSubmerged", 75)
  275.                 setVehicleHandling(veh, "tractionMultiplier", 0.65)
  276.                 setVehicleHandling(veh, "tractionLoss", 0.85)
  277.                 setVehicleHandling(veh, "tractionBias", 0.52)
  278.                 setVehicleHandling(veh, "numberOfGears", 4)
  279.                 setVehicleHandling(veh, "maxVelocity", 165.0)
  280.                 setVehicleHandling(veh, "engineAcceleration", 16.0)
  281.                 setVehicleHandling(veh, "engineInertia", 25.0)
  282.                 setVehicleHandling(veh, "driveType", "fwd")
  283.                 setVehicleHandling(veh, "engineType", "petrol")
  284.                 setVehicleHandling(veh, "brakeDeceleration", 5.0)
  285.                 setVehicleHandling(veh, "brakeBias", 0.60)
  286.                 setVehicleHandling(veh, "ABS", false)
  287.                 setVehicleHandling(veh, "steeringLock", 30.0)
  288.                 setVehicleHandling(veh, "suspensionForceLevel", 1.0)
  289.                 setVehicleHandling(veh, "suspensionDamping", 0.1)
  290.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0.0)
  291.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.27)
  292.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.17)
  293.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  294.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.2)
  295.                 setVehicleHandling(veh, "seatOffsetDistance", 0.24)
  296.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.48)
  297.                 setVehicleHandling(veh, "monetary", 18000)
  298.                 setVehicleHandling(veh, "modelFlags", 0x20)
  299.                 setVehicleHandling(veh, "handlingFlags", 0x1)
  300.                 setVehicleHandling(veh, "headLight", 1)
  301.                 setVehicleHandling(veh, "tailLight", 1)
  302.                 setVehicleHandling(veh, "animGroup", 0)
  303.  
  304.             elseif getElementModel(veh) == BUCCANEER then
  305.                 setVehicleHandling(veh, "mass", 1700)
  306.                 setVehicleHandling(veh, "turnMass", 4500)
  307.                 setVehicleHandling(veh, "dragCoeff", 2.2)
  308.                 setVehicleHandling(veh, "centerOfMass", { 0, 0.3, 0 } )
  309.                 setVehicleHandling(veh, "percentSubmerged", 70)
  310.                 setVehicleHandling(veh, "tractionMultiplier", 0.7)
  311.                 setVehicleHandling(veh, "tractionLoss", 0.9)
  312.                 setVehicleHandling(veh, "tractionBias", 0.5)
  313.                 setVehicleHandling(veh, "numberOfGears", 4)
  314.                 setVehicleHandling(veh, "maxVelocity", 160)
  315.                 setVehicleHandling(veh, "engineAcceleration", 9.6)
  316.                 setVehicleHandling(veh, "engineInertia", 15)
  317.                 setVehicleHandling(veh, "driveType", "rwd")
  318.                 setVehicleHandling(veh, "engineType", "petrol")
  319.                 setVehicleHandling(veh, "brakeDeceleration", 5)
  320.                 setVehicleHandling(veh, "brakeBias", 0.5)
  321.                 setVehicleHandling(veh, "ABS", false)
  322.                 setVehicleHandling(veh, "steeringLock", 35)
  323.                 setVehicleHandling(veh, "suspensionForceLevel", 2.1)
  324.                 setVehicleHandling(veh, "suspensionDamping", 0.1)
  325.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  326.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.1)
  327.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.3)
  328.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  329.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0)
  330.                 setVehicleHandling(veh, "seatOffsetDistance", 0)
  331.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.52)
  332.                 setVehicleHandling(veh, "monetary", 19000)
  333.                 setVehicleHandling(veh, "modelFlags", 0x402F0000)
  334.                 setVehicleHandling(veh, "handlingFlags", 0x404407)
  335.                 setVehicleHandling(veh, "headLight", 1)
  336.                 setVehicleHandling(veh, "tailLight", 1)
  337.                 setVehicleHandling(veh, "animGroup", 1)
  338.  
  339.             elseif getElementModel(veh) == ELEGY then
  340.                 setVehicleHandling(veh, "mass", 1500)
  341.                 setVehicleHandling(veh, "turnMass", 3500)
  342.                 setVehicleHandling(veh, "dragCoeff", 2.2)
  343.                 setVehicleHandling(veh, "centerOfMass", { 0, 0.3, -0.15 } )
  344.                 setVehicleHandling(veh, "percentSubmerged", 75)
  345.                 setVehicleHandling(veh, "tractionMultiplier", 0.65)
  346.                 setVehicleHandling(veh, "tractionLoss", 0.9)
  347.                 setVehicleHandling(veh, "tractionBias", 0.5)
  348.                 setVehicleHandling(veh, "numberOfGears", 5)
  349.                 setVehicleHandling(veh, "maxVelocity", 200)
  350.                 setVehicleHandling(veh, "engineAcceleration", 11.2)
  351.                 setVehicleHandling(veh, "engineInertia", 5)
  352.                 setVehicleHandling(veh, "driveType", "rwd")
  353.                 setVehicleHandling(veh, "engineType", "petrol")
  354.                 setVehicleHandling(veh, "brakeDeceleration", 8)
  355.                 setVehicleHandling(veh, "brakeBias", 0.5)
  356.                 setVehicleHandling(veh, "ABS", false)
  357.                 setVehicleHandling(veh, "steeringLock", 35)
  358.                 setVehicleHandling(veh, "suspensionForceLevel", 1)
  359.                 setVehicleHandling(veh, "suspensionDamping", 1.6)
  360.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  361.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.28)
  362.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.1)
  363.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  364.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.3)
  365.                 setVehicleHandling(veh, "seatOffsetDistance", 0.25)
  366.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.6)
  367.                 setVehicleHandling(veh, "monetary", 35000)
  368.                 setVehicleHandling(veh, "modelFlags", 0x40002804)
  369.                 setVehicleHandling(veh, "handlingFlags", 0x4000001)
  370.                 setVehicleHandling(veh, "headLight", 1)
  371.                 setVehicleHandling(veh, "tailLight", 1)
  372.                 setVehicleHandling(veh, "animGroup", 1)
  373.  
  374.             elseif getElementModel(veh) == MONSTER then
  375.                 setVehicleHandling(veh, "turnMass", 7500)
  376.                 setVehicleHandling(veh, "dragCoeff", 3)
  377.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, -0.35 } )
  378.                 setVehicleHandling(veh, "percentSubmerged", 85)
  379.                 setVehicleHandling(veh, "tractionMultiplier", 0.75)
  380.                 setVehicleHandling(veh, "tractionLoss", 0.825)
  381.                 setVehicleHandling(veh, "tractionBias", 0.475)
  382.                 setVehicleHandling(veh, "numberOfGears", 5)
  383.                 setVehicleHandling(veh, "maxVelocity", 155)
  384.                 setVehicleHandling(veh, "engineAcceleration", 18)
  385.                 setVehicleHandling(veh, "engineInertia", 25)
  386.                 setVehicleHandling(veh, "driveType", "awd")
  387.                 setVehicleHandling(veh, "engineType", "petrol")
  388.                 setVehicleHandling(veh, "brakeDeceleration", 7)
  389.                 setVehicleHandling(veh, "brakeBias", 0.45)
  390.                 setVehicleHandling(veh, "ABS", false)
  391.                 setVehicleHandling(veh, "steeringLock", 35)
  392.                 setVehicleHandling(veh, "suspensionForceLevel", 1)
  393.                 setVehicleHandling(veh, "suspensionDamping", 0.07)
  394.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  395.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.4)
  396.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.4)
  397.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  398.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.3)
  399.                 setVehicleHandling(veh, "seatOffsetDistance", 0.44)
  400.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.35)
  401.                 setVehicleHandling(veh, "monetary", 40000)
  402.                 setVehicleHandling(veh, "modelFlags", 0x28)
  403.                 setVehicleHandling(veh, "handlingFlags", 0x1308847)
  404.                 setVehicleHandling(veh, "headLight", 0)
  405.                 setVehicleHandling(veh, "tailLight", 1)
  406.                 setVehicleHandling(veh, "animGroup", 20)
  407.            
  408.             elseif getElementModel(veh) == MONSTER_A then
  409.                 setVehicleHandling(veh, "turnMass", 7500)
  410.                 setVehicleHandling(veh, "dragCoeff", 3)
  411.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, -0.35 } )
  412.                 setVehicleHandling(veh, "percentSubmerged", 85)
  413.                 setVehicleHandling(veh, "tractionMultiplier", 0.75)
  414.                 setVehicleHandling(veh, "tractionLoss", 0.825)
  415.                 setVehicleHandling(veh, "tractionBias", 0.475)
  416.                 setVehicleHandling(veh, "numberOfGears", 5)
  417.                 setVehicleHandling(veh, "maxVelocity", 155)
  418.                 setVehicleHandling(veh, "engineAcceleration", 18)
  419.                 setVehicleHandling(veh, "engineInertia", 25)
  420.                 setVehicleHandling(veh, "driveType", "awd")
  421.                 setVehicleHandling(veh, "engineType", "petrol")
  422.                 setVehicleHandling(veh, "brakeDeceleration", 7)
  423.                 setVehicleHandling(veh, "brakeBias", 0.45)
  424.                 setVehicleHandling(veh, "ABS", false)
  425.                 setVehicleHandling(veh, "steeringLock", 35)
  426.                 setVehicleHandling(veh, "suspensionForceLevel", 1)
  427.                 setVehicleHandling(veh, "suspensionDamping", 0.07)
  428.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  429.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.4)
  430.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.4)
  431.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  432.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.3)
  433.                 setVehicleHandling(veh, "seatOffsetDistance", 0.44)
  434.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.35)
  435.                 setVehicleHandling(veh, "monetary", 40000)
  436.                 setVehicleHandling(veh, "modelFlags", 0x28)
  437.                 setVehicleHandling(veh, "handlingFlags", 0x1308847)
  438.                 setVehicleHandling(veh, "headLight", 0)
  439.                 setVehicleHandling(veh, "tailLight", 1)
  440.                 setVehicleHandling(veh, "animGroup", 20)
  441.            
  442.             elseif getElementModel(veh) == MONSTER_B then
  443.                 setVehicleHandling(veh, "turnMass", 7500)
  444.                 setVehicleHandling(veh, "dragCoeff", 3)
  445.                 setVehicleHandling(veh, "centerOfMass", { 0, 0, -0.35 } )
  446.                 setVehicleHandling(veh, "percentSubmerged", 85)
  447.                 setVehicleHandling(veh, "tractionMultiplier", 0.75)
  448.                 setVehicleHandling(veh, "tractionLoss", 0.825)
  449.                 setVehicleHandling(veh, "tractionBias", 0.475)
  450.                 setVehicleHandling(veh, "numberOfGears", 5)
  451.                 setVehicleHandling(veh, "maxVelocity", 155)
  452.                 setVehicleHandling(veh, "engineAcceleration", 18)
  453.                 setVehicleHandling(veh, "engineInertia", 25)
  454.                 setVehicleHandling(veh, "driveType", "awd")
  455.                 setVehicleHandling(veh, "engineType", "petrol")
  456.                 setVehicleHandling(veh, "brakeDeceleration", 7)
  457.                 setVehicleHandling(veh, "brakeBias", 0.45)
  458.                 setVehicleHandling(veh, "ABS", false)
  459.                 setVehicleHandling(veh, "steeringLock", 35)
  460.                 setVehicleHandling(veh, "suspensionForceLevel", 1)
  461.                 setVehicleHandling(veh, "suspensionDamping", 0.07)
  462.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  463.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.4)
  464.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.4)
  465.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.5)
  466.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.3)
  467.                 setVehicleHandling(veh, "seatOffsetDistance", 0.44)
  468.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.35)
  469.                 setVehicleHandling(veh, "monetary", 40000)
  470.                 setVehicleHandling(veh, "modelFlags", 0x28)
  471.                 setVehicleHandling(veh, "handlingFlags", 0x1308847)
  472.                 setVehicleHandling(veh, "headLight", 0)
  473.                 setVehicleHandling(veh, "tailLight", 1)
  474.                 setVehicleHandling(veh, "animGroup", 20)
  475.  
  476.             elseif getElementModel(veh) == TURISMO then
  477.                 setVehicleHandling(veh, "mass", 1400)
  478.                 setVehicleHandling(veh, "turnMass", 1800)
  479.                 setVehicleHandling(veh, "dragCoeff", 1.95)
  480.                 setVehicleHandling(veh, "centerOfMass", { 0, -0.3, -0.2 } )
  481.                 setVehicleHandling(veh, "percentSubmerged", 70)
  482.                 setVehicleHandling(veh, "tractionMultiplier", 0.75)
  483.                 setVehicleHandling(veh, "tractionLoss", 0.85)
  484.                 setVehicleHandling(veh, "tractionBias", 0.45)
  485.                 setVehicleHandling(veh, "numberOfGears", 5)
  486.                 setVehicleHandling(veh, "maxVelocity", 265)
  487.                 setVehicleHandling(veh, "engineAcceleration", 14)
  488.                 setVehicleHandling(veh, "engineInertia", 10)
  489.                 setVehicleHandling(veh, "driveType", "awd")
  490.                 setVehicleHandling(veh, "engineType", "petrol")
  491.                 setVehicleHandling(veh, "brakeDeceleration", 11)
  492.                 setVehicleHandling(veh, "brakeBias", 0.51)
  493.                 setVehicleHandling(veh, "ABS", false)
  494.                 setVehicleHandling(veh, "steeringLock", 30)
  495.                 setVehicleHandling(veh, "suspensionForceLevel", 1.2)
  496.                 setVehicleHandling(veh, "suspensionDamping", 0.13)
  497.                 setVehicleHandling(veh, "suspensionHighSpeedDamping", 0)
  498.                 setVehicleHandling(veh, "suspensionUpperLimit", 0.45)
  499.                 setVehicleHandling(veh, "suspensionLowerLimit", -0.145)
  500.                 setVehicleHandling(veh, "suspensionFrontRearBias", 0.45)
  501.                 setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.4)
  502.                 setVehicleHandling(veh, "seatOffsetDistance", 0.17)
  503.                 setVehicleHandling(veh, "collisionDamageMultiplier", 0.68)
  504.                 setVehicleHandling(veh, "monetary", 95000)
  505.                 setVehicleHandling(veh, "modelFlags", 0x40002004)
  506.                 setVehicleHandling(veh, "handlingFlags", 0xC14001)
  507.                 setVehicleHandling(veh, "headLight", 1)
  508.                 setVehicleHandling(veh, "tailLight", 1)
  509.                 setVehicleHandling(veh, "animGroup", 1)
  510.             end
  511.         end
  512.     end -- koniec warunku
  513. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement