Lance Posted September 10, 2016 Posted September 10, 2016 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. Quote
Jazz Posted September 10, 2016 Posted September 10, 2016 In FPSPlayer.lua collision function change or remove the following: if speed>20 then self:Hurt(100) end Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060
Thirsty Panther Posted September 10, 2016 Posted September 10, 2016 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. Quote
Recommended Posts
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.