Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. PLUGIN.name = "Fall Damage Fallover"
  2. PLUGIN.author = "Chancer"
  3. PLUGIN.desc = "When people take fall damage they fall over, it is very funny."
  4.  
  5. function PLUGIN:EntityTakeDamage(target, dmginfo)
  6. if(target:IsPlayer()) then
  7. if(dmginfo:IsFallDamage()) then
  8. dmginfo:ScaleDamage(0.5)
  9.  
  10. timer.Simple(0.05, function()
  11. if(!IsValid(target.nutRagdoll)) then
  12. target:setRagdolled(true, 3)
  13. end
  14. end)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement