Author Topic: Changing fall damage  (Read 537 times)

Hey, I need to change the fall damage speed from 30 to 150.

How would I do that? I don't need it for every playertype, just one.

For future reference, tree(); is your best friend for finding every value on a datablock/object.

.minImpactSpeed is what you're looking for, even though with .upMaxSpeed being 80, they'll never reach that 150.

Okay, thanks.

Also, I'm changing a bunch of values that would cause the player to reach 150 just as easily as a regular player.

You'll have to change the maximum speeds, such as .upMaxSpeed, .upResistSpeed, .upResistFactor, .horizMaxSpeed, .horizResistSpeed, and .horizResistFactor

For a full list of values, either do .dump(); on a datablock, or use tree(); and search for a datablock in DatablockGroup

Would this be for your 0gravity player?

No, this is for my 5x player type. He's going to move around like a normal player in 0.2 timescale. Currently, everything except jumping works. I can't speed up jumping without exceeding the regular jump height. I think I'm changing the wrong values.

Anyways, I need the fall damage changed because you run so fast that you kill yourself if you hit a wall. :/

However, once I get the jumping working correctly, falling from a normal killing height should still kill you.

Just imagine, the world around you slows down, but you keep walking as usual. That would be epic, and that's my goal.