Jump to content

Recommended Posts

Posted

I don't want fall damage in my game, I'm not sure how to get rid of it. Help, please.

 

I still want damage in the game, just not fall damage. Thanks.

Posted

In FPSPlayer.lua collision function change or remove the following:

 

if speed>20 then
self:Hurt(100)
end

---

Scott

 

Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060

Posted

In your FPS player script around line 231 you should find this code.

 

function Script:Collision(entity,position,normal,speed)

if speed>20 then

self:Hurt(100)

end

end

 

You can get the result by either increasing the speed number ( in this case 20 ) to something bigger. This will allow the player to fall from a greater height but will still kill him if its to high.

Or change the hurt value ( in this case 100 ) to something less to still damage the player but not kill him/her. Or you can change this number to zero and the player will experience no damage no matter the height they fall.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...