Jump to content

[patch] implement SPLINEFLAG_TRAJECTORY (jump effect visual)


Auntie Mangos

Recommended Posts

Well then...why its dynamic? In knockback effects, its just damage (and feral charge has no basepoints for jump effects) :/

EDIT: yeah, because theres still same distance in knockback

EDIT2: which means maybe we can use this as template...

EDIT3: or maybe we cant...I just cannot figure it out, something is always missing :(

Link to comment
Share on other sites

  • 2 weeks later...

Seems i have found dependence: for example feral charge parabola have constant max height distance -- 0.49

Z max = ((Duration^2) * vertical_acceleration) / 8, Duration is movement time, in seconds

example:

Duration vertical_acceleration Z max

feral charge:

0.166 145.16 0.4999

0.346 33.41 0.4999

death grip:

0.131 233.09 0.4999

0.315 40.31 0.4999

have fun :)

P.S. that movement should also relocate player\\creature on server side, there shouldn't be any instant relocations like i saw in first post

"GetMap()->CreatureRelocation((Creature*)this, x, y, z, o)"

Link to comment
Share on other sites

Well we have a relation ship between two values...

But how do you calculate one of those if you don't have the other yet?

I assume time or speed will be calculated from dbc data, but can't figure anything that relates dbc data to packet captures' time or speedz.

Does anyone have packets from other spells with trajectory splineflag?

Link to comment
Share on other sites

I just found some knockback packet:

Spell 49722

Effect 1: Id 98 (SPELL_EFFECT_KNOCK_BACK)

BasePoints = 113 to 188

Targets (22, 15) (TARGET_CASTER_COORDINATES, TARGET_ALL_ENEMY_IN_AREA)

EffectMiscValueA = 75

Radius (Id 13) 10,00

SMSG_MONSTER_MOVE

Monster GUID: 0xF1405F23F700005A

Monster unk byte: 0

Current Position: 358.0004 148.3053 30.75061

Ticks Count: 0x0004AF05

SplineType: Normal

Spline Flags: TRAJECTORY, WALKMODE, KNOCKBACK

Spline Time: 0x0000070C

SplineFlags 0x800: float 19,2911 and int 0x00000000

Splines Count: 1

Dest position: 353.6245 161.1077 30.75402 (distance: 13,529551058001

Link to comment
Share on other sites

  • 1 month later...
  • 9 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use