• Is GM:PlayerStepSoundTime broken?
    0 replies, posted
No matter what, this does not work. Just to be even sure, these were my attempts. function GM:PlayerStepSoundTime( ply, iType, bWalking ) return 100 end //edited from player_shd function GM:PlayerStepSoundTime( ply, iType, bWalking ) local fStepTime = 350     local fMaxSpeed = ply:GetMaxSpeed()     if ( iType == STEPSOUNDTIME_NORMAL || iType == STEPSOUNDTIME_WATER_FOOT ) then                  if ( fMaxSpeed <= 100 ) then             fStepTime = 400         elseif ( fMaxSpeed <= 300 ) then             fStepTime = 350         else             fStepTime = 250         end          elseif ( iType == STEPSOUNDTIME_ON_LADDER ) then              fStepTime = 450          elseif ( iType == STEPSOUNDTIME_WATER_KNEE ) then              fStepTime = 600          end          -- Step slower if crouching     if ( ply:Crouching() ) then         fStepTime = fStepTime + 50     end          return fStepTime*2 end these were to test if these were working but, they did not change the delay between footsteps. If these are "correct", why is it not working when I try? I even checked every lua file in the gamemode using "find all in open documents" with notepad ++ and it does not override it anywhere.
Sorry, you need to Log In to post a reply to this thread.