Make Wheelies possible

master
Extex101 2020-03-31 10:36:36 -07:00 committed by GitHub
parent 7ffc5db84d
commit e233b3dc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -307,12 +307,12 @@ function biker.drive(entity, dtime)
end
local l = rots.z
if ctrl.jump and entity.v > (biker.max_speed)-5 then
if ctrl.jump and entity.v > (biker.max_speed)/3 then
entity.driver:set_eye_offset({x=0, y=-6.0, z=0}, {x=0, y=0, z=0})
entity.wheelie = repair(angleLerp(k, 45, 0.1))
l = angleLerp(l, 0, 0.07)
entity.object:set_rotation({x=repair(entity.wheelie),y=repair(j),z=repair(l,3)})
elseif not ctrl.jump or entity.v < (biker.max_speed)-5 then
elseif not ctrl.jump or entity.v < (biker.max_speed)/3 then
entity.driver:set_eye_offset({x=0, y=-7, z=0}, {x=0, y=0, z=0})
if entity.v > 1.2 and entity.wheelie == 0 then