Falling down for characters

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Falling down for characters

Post by denser »

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.
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Falling down for characters

Post by _DS_ »

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;
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Falling down for characters

Post by denser »

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!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Falling down for characters

Post by _DS_ »

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;
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Falling down for characters

Post by denser »

_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.
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
User avatar
RiZe
Posts: 122
Joined: Mon Mar 24, 2008 12:44 am
Location: Czech Republic
Contact:

Re: Falling down for characters

Post by RiZe »

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.
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Falling down for characters

Post by denser »

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!
Post Reply