The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Animation hit speed
Author Message
Indiaret
Apprentice
*

Posts: 45
Likes Given: 3
Likes Received: 1 in 1 posts
Joined: Apr 2016
Reputation: 0



Post: #1
Animation hit speed
Hello,

Can i modify speed animation of hit ?

I changed default sphere_combat - there is :

[EVENTS e_combat_system]
ON=@Hittry
speedtimer
return 0

ON=@HIT
local.dmg=<eval ((<local.ddf>*1150)+500)/1000>
argn1=<local.dmg>
argn2=dam_god
return 0

[function speedtimer]
tag.hitspeed=<df_Get_speed_player> // function calculated from character dex and weapon base delay.
serv.newitem=i_speedtimer
new.p=<p>
new.link=<uid>
new.timer=0

[itemdef i_speedtimer]
id=i_memory
type=t_eq_script

on=@timer
link.timerd=<link.tag.hitspeed>
remove
return 1
____________
My problem is that the animation is too fast. The end of the animation should line up with dmg being dealt; but in this case there is a wait period after the animation, before dmg being dealt. Can this animation be slowed based on a dex (or some other) parameter?

Thanks
(This post was last modified: 08-24-2016 11:11 AM by Indiaret.)
08-23-2016 10:38 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Animation hit speed
In clients newer than High Seas (or SA? Can't remember) some packets had change, the animation's one was one of those, so you won't have a 'full swing animation'. The most accurate approach you can get is to use local.AnimDelay in @HitTry trigger, here you have some Revision's entries:

Code:
Added local.anim and local.animDelay (this last one only working for classic clients) to @HitTry, so animations can be disabled and fired later in @hit (to remove the odd behaviour with new animation packets, which doesn't have delay).

Also changed AnimDelay from @HitTry to initially have a duration of argn1 -=7, so this can be softcoded to match 'old style' by just adding a simple +=7
08-24-2016 05:58 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)