Patch to add fall damage.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
Before posting on this forum, be sure to read the Terms of Use
Re: Attempt to add falldamage to server.
This is a lot harder then I was thinking. The client changes the speed that it sends packets. So the difference between each packs Z is smaller when falling. when walking it sends 1 packet a second. So the difference between Z is larger. I need to rethink how to detect falling.
Ads
Re: Attempt to add falldamage to server.
hey, i have to add that your don't take any damage even when / if u fall in a canyon after (as a witch elf) u have used the skill that pull you back and set you out of combat( now i search the name)Tesq wrote:i add somethings: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.
-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
Re: Attempt to add falldamage to server.
The WH version is Declare Anathema, and it counts as a knockback against self.
Re: Attempt to add falldamage to server.
I think I have a solution. I track the time you are falling and if its over 500 millsecond then it applies the damage based on how far you fell between when you started to fall and when you quit falling. If it was a sharp fall then you get damage base on the distence of that sharp fall.
Re: Attempt to add falldamage to server.
[youtube] https://www.youtube.com/watch?v=N1gY0fqShX0 [/youtube]
in this video you can see what i mean from 3 minutes the ability i mean is setted with "v" on his bar.
mmm with 500 milisecond lag from client can cause issue or not ?
in this video you can see what i mean from 3 minutes the ability i mean is setted with "v" on his bar.
mmm with 500 milisecond lag from client can cause issue or not ?
Re: Attempt to add falldamage to server.
the skill for WE is this - "Agile Escape"
Re: Attempt to add falldamage to server.
Its not just based on time but time and how far down you go as well.
Re: Attempt to add falldamage to server.
I believe fall damage in war was based on duration of free fall. It's a simple matter of just keeping track of free fall state and duration (one of values in PLAYER_STATE2 indicates if player is in free fall). If free fall was triggered by ability, then give fall damage immunity for 6-7 seconds. (So players punted off a cliff would die when hitting the ground).
1 sec = no damage
2 seconds 20% damage
3 seconds 60% damage
and so on.
1 sec = no damage
2 seconds 20% damage
3 seconds 60% damage
and so on.
Ads
Re: Attempt to add falldamage to server.
Okay, here it is. I could not find a quick way to check for mounts. If anyone know the forumla , Please let me know.
Londo, if you can prove that I will add it like that but I do not remember it being that easy. Enjoy the patch. I hope to see it addeed .
This is based off your level and the time it took for you land in millsecond divided by the (length of the fall- 200) in millsecond
Londo, if you can prove that I will add it like that but I do not remember it being that easy. Enjoy the patch. I hope to see it addeed .
This is based off your level and the time it took for you land in millsecond divided by the (length of the fall- 200) in millsecond
Code: Select all
Last edited by chaoscode on Thu Jan 01, 2015 4:29 am, edited 2 times in total.
Re: Attempt to add falldamage to server.
Check combat byte in F_PLAYER_STATE2. It will tell you duration of free fall.
Also, there should be immunity to fall damage if triggered by an ability, that immunity should end the moment target hits a wall or exceeds ability duration. I remember getting punted, hitting a wall then when landing taking fall damage.
Ktobs punt was 4-5 seconds of free fall and very high up in the air. Black guard at full hate was even longer but not as high up in the air (The joy of getting punted in nordenwatch all the way out into the sea by a black guard).
Also, there should be immunity to fall damage if triggered by an ability, that immunity should end the moment target hits a wall or exceeds ability duration. I remember getting punted, hitting a wall then when landing taking fall damage.
Ktobs punt was 4-5 seconds of free fall and very high up in the air. Black guard at full hate was even longer but not as high up in the air (The joy of getting punted in nordenwatch all the way out into the sea by a black guard).
Who is online
Users browsing this forum: No registered users and 3 guests