diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-30 21:01:18 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-30 21:01:18 -0400 |
| commit | d62058fcdea5fc6736a2a373f47dc6c14c70c319 (patch) | |
| tree | 79a1325190e3f1f1b6d6a2dbcdfc1ba3fa866ac9 /gamemode/player_class/player_default.lua | |
| parent | c38f00182ba6c282806eecb39a42e64d5feafa37 (diff) | |
| download | redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.gz redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.bz2 redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.zip | |
Removed exessive whitespace so future commits will be cleaner
Diffstat (limited to 'gamemode/player_class/player_default.lua')
| -rw-r--r-- | gamemode/player_class/player_default.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gamemode/player_class/player_default.lua b/gamemode/player_class/player_default.lua index 1a5f9b3..cf3cb3d 100644 --- a/gamemode/player_class/player_default.lua +++ b/gamemode/player_class/player_default.lua @@ -3,7 +3,7 @@ AddCSLuaFile() DEFINE_BASECLASS( "player_default" ) -local PLAYER = {} +local PLAYER = {} function PLAYER:HandlePlayerJumping( velocity ) @@ -73,7 +73,7 @@ function PLAYER:HandlePlayerNoClipping( velocity ) if ( self.Player:InVehicle() ) then return end - if ( self.Player:GetMoveType() != MOVETYPE_NOCLIP ) then + if ( self.Player:GetMoveType() != MOVETYPE_NOCLIP ) then if ( self.Player.m_bWasNoclipping ) then @@ -104,16 +104,16 @@ function PLAYER:HandlePlayerVaulting( velocity ) if ( velocity:Length() < 1000 ) then return end if ( self.Player:IsOnGround() ) then return end - self.Player.CalcIdeal = ACT_MP_SWIM + self.Player.CalcIdeal = ACT_MP_SWIM return true end function PLAYER:HandlePlayerSwimming( velocity ) - if ( self.Player:WaterLevel() < 2 ) then + if ( self.Player:WaterLevel() < 2 ) then self.Player.m_bInSwim = false - return false + return false end if ( velocity:Length2D() > 10 ) then @@ -123,12 +123,12 @@ function PLAYER:HandlePlayerSwimming( velocity ) end self.Player.m_bInSwim = true - + return true end -function PLAYER:HandlePlayerLanding( velocity, WasOnGround ) +function PLAYER:HandlePlayerLanding( velocity, WasOnGround ) if ( self.Player:GetMoveType() == MOVETYPE_NOCLIP ) then return end @@ -141,10 +141,10 @@ end function PLAYER:HandlePlayerDriving() return false - + end -function PLAYER:UpdateAnimation( velocity, maxseqgroundspeed ) +function PLAYER:UpdateAnimation( velocity, maxseqgroundspeed ) local len = velocity:Length() local movement = 1.0 @@ -158,7 +158,7 @@ function PLAYER:UpdateAnimation( velocity, maxseqgroundspeed ) -- if we're under water we want to constantly be swimming.. if ( self.Player:WaterLevel() >= 2 ) then rate = math.max( rate, 0.5 ) - elseif ( !self.Player:IsOnGround() && len >= 1000 ) then + elseif ( !self.Player:IsOnGround() && len >= 1000 ) then rate = 0.1; end @@ -175,7 +175,7 @@ end -- If you don't want the player to grab his ear in your gamemode then -- just override this. -- -function PLAYER:GrabEarAnimation() +function PLAYER:GrabEarAnimation() self.Player.ChatGestureWeight = self.Player.ChatGestureWeight or 0 @@ -337,4 +337,4 @@ function PLAYER:DoAnimationEvent( event, data ) return nil end -player_manager.RegisterClass( "player_baseclass", PLAYER, "player_default" )
\ No newline at end of file +player_manager.RegisterClass( "player_baseclass", PLAYER, "player_default" ) |
