Guys, i need your help to start coding it.
so. what function watch for delta Z coordinate?
idea is:
watch for delta Z of character, and if it changed to fast or for big number(delta must be < 0 - it will sign that char goes down) that add damage to his HP depending of this delta.
if char teleports to big delta (ivory i.e.) - need to watch for onMovement.
in case - falling down - it is changing altitude. need to get datas of it.
Falling down for characters
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Falling down for characters
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
L2J - the place where glad to see you any time!
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Falling down for characters
Useless with current implementation of the swimming. Search old forum, there was contribution about it.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Falling down for characters
ok thx, i'll check it out
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
L2J - the place where glad to see you any time!
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Falling down for characters
You will get falling damage each time you swim up and server resynchronize Z.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Falling down for characters
_DS_, thats why i take point on - minus delta. so you g\have 100 Z and it was changed to 50 for 100ms....so you dont walk down hill, no swim down - you falls.
it calculate difference between started Z point and final point of tick time(for example 100ms or what will be optimized for less CPU and good accurate for watch)
i will get home from work and digg old forum or be pleased to you if see the link
it simple math and i wanna make it work.
it calculate difference between started Z point and final point of tick time(for example 100ms or what will be optimized for less CPU and good accurate for watch)
i will get home from work and digg old forum or be pleased to you if see the link

it simple math and i wanna make it work.
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
L2J - the place where glad to see you any time!
- RiZe
- Posts: 122
- Joined: Mon Mar 24, 2008 12:44 am
- Location: Czech Republic
- Contact:
Re: Falling down for characters
But you can "bug" through water by clicking on the ground, that will move you instantly from the top to the bottom in few ms and it would be recognized as falling.
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Falling down for characters
yes it is
so that will push other ppl make theirs brains to SWIM 


Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
L2J - the place where glad to see you any time!