Anti Bunnyhop / Immersive Jumping LUA

PostNukeRP Gamemode Suggestions

Anti Bunnyhop / Immersive Jumping LUA

Postby DCWasteland3r » Tue Jun 07, 2016 11:29 pm

Just something I worked up for my own PNRP server. It adds a short delay after landing before you can jump again, and also applies a viewpunch effect. Its also simple enough that it can be reconfigured to the preferences of server owners and implemented very easily. (I just stuck this in my shared.lua file)

Code: Select all
hook.Add("OnPlayerHitGround", "HopSpam", function(player) 
player:SetJumpPower(0)
player:ViewPunch(Angle(7, 0, 0))
timer.Simple( 0.5, function() player:SetJumpPower(200) end )
end)


I thought you all might be interested in this, so here you go.
User avatar
DCWasteland3r
 
Posts: 1
Joined: Tue Jun 07, 2016 10:56 pm

Return to PNRP Suggestions

Who is online

Users browsing this forum: No registered users and 3 guests

cron