Recent Topics

Ads

Patch to add fall damage.

Talk about the development of the emulator and related services.
Check out new and upcoming features to be implemented onto the server.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
User avatar
chaoscode
Posts: 202

Patch to add fall damage.

Post#1 » Thu Dec 25, 2014 4:59 pm

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
Last edited by chaoscode on Thu Jan 01, 2015 4:28 am, edited 2 times in total.

Ads
User avatar
Orcpacolypse
Posts: 533
Contact:

Re: Attempt to add falldamage to server.

Post#2 » Thu Dec 25, 2014 5:00 pm

This would be nice. I need to see order fall to their demise off the gates of Ekrund.

User avatar
zalenia
Posts: 21

Re: Attempt to add falldamage to server.

Post#3 » Thu Dec 25, 2014 5:10 pm

^

User avatar
amputationsaw
Posts: 607

Re: Attempt to add falldamage to server.

Post#4 » Thu Dec 25, 2014 5:51 pm

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.

Yyrd
Posts: 29

Re: Attempt to add falldamage to server.

Post#5 » Thu Dec 25, 2014 6:47 pm

"clicks like butten"

User avatar
Shaman21
Posts: 53

Re: Attempt to add falldamage to server.

Post#6 » Thu Dec 25, 2014 7:00 pm

Mesmerize the simple minded.

Good job on your discsovery
Chosen Kye
Image

And on the day of great judgement he shall be cast into great fire. The whole earth has been corrupted by Kye through the work's that have been taught by the Chaos God's. Beckon onward to me, my beloved familiar's.
Spoiler:
Image

User avatar
chaoscode
Posts: 202

Re: Attempt to add falldamage to server.

Post#7 » Thu Dec 25, 2014 10:51 pm

I have tested the code and im making some changes to make it acuallty usable. Stand by.

User avatar
MaxHayman
Management
Posts: 1029
Contact:

Re: Attempt to add falldamage to server.

Post#8 » Fri Dec 26, 2014 12:49 am

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.
Max Hayman

Ads
User avatar
chaoscode
Posts: 202

Re: Attempt to add falldamage to server.

Post#9 » Fri Dec 26, 2014 1:17 am

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.

User avatar
Tesq
Posts: 5704

Re: Attempt to add falldamage to server.

Post#10 » Fri Dec 26, 2014 2:10 am

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
Image

Who is online

Users browsing this forum: No registered users and 32 guests