Page 1 of 5

Patch to add fall damage.

Posted: Thu Dec 25, 2014 4:59 pm
by chaoscode
Look on page 3 for the latest patch.
Now I know the forumla is most likely wrong as I am unsure of what it is but this should work in general.

This is a Mod/Patch to Player.cs

Code: Select all

 reomved

Re: Attempt to add falldamage to server.

Posted: Thu Dec 25, 2014 5:00 pm
by Orcpacolypse
This would be nice. I need to see order fall to their demise off the gates of Ekrund.

Re: Attempt to add falldamage to server.

Posted: Thu Dec 25, 2014 5:10 pm
by zalenia
^

Re: Attempt to add falldamage to server.

Posted: Thu Dec 25, 2014 5:51 pm
by amputationsaw
Fall damage would be nice. Some people always avoiding their death by bug using this and jump down. As soon as I start to beat them they escape a fight by jumping down.

Re: Attempt to add falldamage to server.

Posted: Thu Dec 25, 2014 6:47 pm
by Yyrd
"clicks like butten"

Re: Attempt to add falldamage to server.

Posted: Thu Dec 25, 2014 7:00 pm
by Shaman21
Mesmerize the simple minded.

Good job on your discsovery

Re: Attempt to add falldamage to server.

Posted: Thu Dec 25, 2014 10:51 pm
by chaoscode
I have tested the code and im making some changes to make it acuallty usable. Stand by.

Re: Attempt to add falldamage to server.

Posted: Fri Dec 26, 2014 12:49 am
by MaxHayman
Good work!

I had a look at this. When teleporting, it would cause you to instantly die. Also doing the damage relative to level isn't a good idea. I did it as a percentage of your maximum health.

Let me know your changes.

Re: Attempt to add falldamage to server.

Posted: Fri Dec 26, 2014 1:17 am
by chaoscode
Yeah, I know. those are checks I need to add. If your a gm no fall damage :P Trying to track when your falling vs moving and how far you fall. Moving alot on x/y and a little on z means not much. moving limited on x/y but a lot on z means your falling. Then who far is to far. Then how much damage should you apply. I'm getting there. I have tried a few ways. Like keeping a timestamp of when the player last moved.

Re: Attempt to add falldamage to server.

Posted: Fri Dec 26, 2014 2:10 am
by Tesq
MaxHayman wrote:Good work!

I had a look at this. When teleporting, it would cause you to instantly die. Also doing the damage relative to level isn't a good idea. I did it as a percentage of your maximum health.

Let me know your changes.
i add somethings:

-damage are calculate in %
-if you are mount you get more fall damage
-When you get knock back you never get fall damage even if you fall in a canyon (so fall damage apply only if you go from ground A to ground B with out knock back)
-Being knock back then touch ground---> slide and fall get you take fall damage.
-The fall distance is calculate only from ground A to B never from the knock back. ( if you get KB, fall from 100 m then touch ground and fall for 50 and stop fall, you get 50 m only for the calculation)
-None absorb in game can prevent fall damage nor any invincible morale ( IB one for exemple)

It should be all