Stunt only one mode for now
This commit is contained in:
parent
af48ebde81
commit
2736a1f2f0
|
@ -183,16 +183,8 @@ hook.Add( "Move", "Benny_Move", function( ply, mv )
|
||||||
if mv:KeyDown( IN_ALT1 ) then
|
if mv:KeyDown( IN_ALT1 ) then
|
||||||
local dig = Vector( mv:GetForwardSpeed()+0.01, mv:GetSideSpeed(), 0 ):GetNormalized()
|
local dig = Vector( mv:GetForwardSpeed()+0.01, mv:GetSideSpeed(), 0 ):GetNormalized()
|
||||||
local dug = Angle( 0, ply:EyeAngles().y, 0 )
|
local dug = Angle( 0, ply:EyeAngles().y, 0 )
|
||||||
local upspeed = 120
|
local upspeed = 180
|
||||||
local movespeed = 230
|
local movespeed = 250
|
||||||
local pitch = ply:EyeAngles().p
|
|
||||||
if pitch < -12 then
|
|
||||||
upspeed = 250
|
|
||||||
movespeed = 320
|
|
||||||
elseif pitch < 12 then
|
|
||||||
upspeed = 160
|
|
||||||
movespeed = 260
|
|
||||||
end
|
|
||||||
dig:Mul( movespeed )
|
dig:Mul( movespeed )
|
||||||
if !ply:OnGround() then upspeed = mv:GetVelocity().z end
|
if !ply:OnGround() then upspeed = mv:GetVelocity().z end
|
||||||
ply:SetGroundEntity( NULL )
|
ply:SetGroundEntity( NULL )
|
||||||
|
|
Loading…
Reference in New Issue