-- CONFIG - START
-- how long should it take for the jump force to reset?
local jumpResetTime = 2
-- should the player hear a breathing sound when the jump force is low?
local playSound = true
-- the sound to play when the jump force is low, if playSound is false, this will be ignored
local breathingSound = Sound("breathing.wav")
-- CONFIG - END
-- variables to maintain the code, don't change if you don't know what you're doing
local jumpForce = 1
local lastJumpTime = 0
local hasPlayedBreathingSound = false
local function emitBreathing()
if playSound then
ply:EmitSound(breathingSound)
hasPlayedBreathingSound = true
end
end
local function stopBreathing()
if playSound then
ply:StopSound(breathingSound)
hasPlayedBreathingSound = false
end
end
hook.Add("KeyPress", "LowerJumpForce", function(ply, key)
if key == IN_JUMP then
local currentTime = CurTime()
if currentTime - lastJumpTime > jumpResetTime then
jumpForce = 1
stopBreathing()
else
jumpForce = jumpForce - 0.15
if jumpForce <= 0.25 then
jumpForce = 0.25
if not hasPlayedBreathingSound and not ply:IsPlayingTaunt() then
emitBreathing()
end
else
stopBreathing()
end
end
ply:SetJumpPower(jumpForce * 200)
lastJumpTime = currentTime
end
end)
This forum is not only restricted to cheats, you knowon the forum for cheaters, do you publish antibhop?!?
Code is clearly visible. So yes, it is safe.Is that safe ?
Depends on what do you mean by "legit", it just works.legit this ?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?