Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2020-09-19, 13:54


StifMaster







Wiek: 30
Na forum: 3525 dni
Posty: 57
Nick w MP: Sztefi

Piwa: 5

Respekt: 50

Witam, czy jest kto? kto zrobi ten handling ?eby nie rozpedza? si? w bardzo szybko, i jecha? 300 km/h, zeby mia? dobr? skr?tno??, trzyma? si? drogi oraz podczas pr?dko?ci ?eby nie skr?ca? tak agresywnie. Nie mam poj?cia co oznaczaj? dwie ostatnie linijki handlingu.
setVehicleHandling(theVehicle, "modelFlags", 1)
setVehicleHandling(theVehicle, "handlingFlags", 1)
Je?li kto? ma jaki? poradnik, czy co? to ch?tnie przyjme.

function vhandling theVehicle )
    if getElementModel(theVehicle) == 480 then -------------- vehicle Id
        setVehicleHandling(theVehicle"mass"300.0)
        setVehicleHandling(theVehicle"turnMass"200)
        setVehicleHandling(theVehicle"dragCoeff"4.0 )
        setVehicleHandling(theVehicle"centerOfMass", { 0.0,0.08,-0.09 } )
        setVehicleHandling(theVehicle"percentSubmerged"103)
        setVehicleHandling(theVehicle"tractionMultiplier"1.8)
        setVehicleHandling(theVehicle"tractionLoss"1.0)
        setVehicleHandling(theVehicle"tractionBias"0.48)
        setVehicleHandling(theVehicle"numberOfGears"5)
        setVehicleHandling(theVehicle"maxVelocity"300.0)
        setVehicleHandling(theVehicle"engineAcceleration"52.0 )
        setVehicleHandling(theVehicle"engineInertia"5.0)
        setVehicleHandling(theVehicle"driveType""rwd")
        setVehicleHandling(theVehicle"engineType""petrol")
        setVehicleHandling(theVehicle"brakeDeceleration"27.0)
        setVehicleHandling(theVehicle"brakeBias"0.60)
        -----abs----
        setVehicleHandling(theVehicle"steeringLock",  27.0 )
        setVehicleHandling(theVehicle"suspensionForceLevel"0.85)
        setVehicleHandling(theVehicle"suspensionDamping"0.15 )
        setVehicleHandling(theVehicle"suspensionHighSpeedDamping"0.0)
        setVehicleHandling(theVehicle"suspensionUpperLimit"0.15 )
        setVehicleHandling(theVehicle"suspensionLowerLimit", -0.16)
        setVehicleHandling(theVehicle"suspensionFrontRearBias"0.5 )
        setVehicleHandling(theVehicle"suspensionAntiDiveMultiplier"0.0)
        setVehicleHandling(theVehicle"seatOffsetDistance"0.0)
        setVehicleHandling(theVehicle"collisionDamageMultiplier"0.00)
        setVehicleHandling(theVehicle"modelFlags"1)
        setVehicleHandling(theVehicle"handlingFlags"1)
    end
end
addEventHandler "onPlayerVehicleEnter"getRootElement(), vhandling )


Ostatnio zmieniony przez NotPaladyn 2020-09-19, 19:35, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Nart123
Wysłany: 2020-09-19, 19:36


NotPaladyn







Wiek: 23
Na forum: 2790 dni
Posty: 866
Nick w MP: NotPaladyn

Piwa: 3135

Respekt: 690
Respekt: 690Respekt: 690


   Vice Admin: Jeśli potrzebujesz pomocy w sprawach organizacyjnych lub technicznych - skontaktuj się ze mną.
Nast?pnym razem wstawiaj kod w znacznikach [lua]

A je?li chodzi o sam kod to wystarczy minimalna wiedza z dziedziny angielskiego i b?dziesz wiedzia?, kt?re co robi.

Nie jest to dzia? gdzie ludzie napisz? za Ciebie ca?y kod, mo?emy Ci? tu jedynie naprowadzi?.
Je?li chcesz gotowy kod to pisz tutaj: https://gtao.pl/prosby-o-przerobienie-skryptu-vt82444.htm?view=newest

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-09-19, 19:49


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Tutaj masz rozpisk?:

Więcej informacji znajdziesz w Wikipedii MTA:

setVehicleHandling


http://projectcerbera.com...orials/handling
http://web.archive.org/we...orials/handling

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-09-20, 18:03


StifMaster







Wiek: 30
Na forum: 3525 dni
Posty: 57
Nick w MP: Sztefi

Piwa: 5

Respekt: 50

Wilq, Dzieki wielkie, poducze sie :D

Postaw piwo autorowi tego posta
 

 
Tagi: handling
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku