package Ġorg . run est ar . client . plugins . smooth animations Ċ Ċ import Ġio . reactivex . Observable Ċ import Ġorg . run est ar . client . api . util . Disposable Plugin Ċ import Ġorg . run est ar . client . game . raw . access .* Ċ import Ġorg . run est ar . client . plugins . spi . Plugin Settings Ċ Ċ class ĠSm ooth Animations Ġ: ĠDis posable Plugin < Plugin Settings >() Ġ{ ĊĊĠĠĠ Ġ// Ġhttps :// github . com / run elite / run elite / commit / c 6 6 cb 4 2 a 5 2 7 2 3 2 7 adc 9 aeb 5 7 3 6 5 4 9 1 1 aeb c 7 5 ce 3 ĊĠĠĠ Ġ// Ġhttps :// github . com / run elite / run elite / pull / 3 4 4 6 ĊĠĠĠ Ġ// Ġhttps :// www . youtube . com / watch ? v = BR l I uw 9 9 6 4 c & t = 4 4 m 1 0 s ĊĊĠĠĠ Ġoverride Ġval Ġname Ġ= Ġ" Smooth ĠAnim ations " ĊĊĠĠĠ Ġoverride Ġval Ġdefault Settings Ġ= ĠPlugin Settings () ĊĊĠĠĠ Ġoverride Ġfun ĠonStart () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġadd ( Observable . merge ( X Player . getModel . exit , ĠX Npc . getModel . exit ). subscribe (:: actor Get Model Exit )) ĊĠĠĠĠĠĠĠ Ġadd ( Observable . merge ( X Player . getModel . enter , ĠX Npc . getModel . enter ). subscribe (:: actor Get Model Enter )) ĊĠĠĠĠĠĠĠ Ġadd ( X Seq Type . animate Sequence . enter . subscribe (:: animate Sequence Enter )) ĊĠĠĠĠĠĠĠ Ġadd ( X Seq Type . animate Sequence 2 . enter . subscribe (:: animate Sequence 2 Enter )) ĊĊĠĠĠĠĠĠĠ Ġadd ( X Component . getModel . enter . subscribe (:: widget Get Model Enter )) ĊĠĠĠĠĠĠĠ Ġadd ( X Seq Type . animate Component . enter . subscribe (:: animate Widget Enter )) ĊĊĠĠĠĠĠĠĠ Ġadd ( X Seq Type . animate Spot Animation . enter . subscribe (:: animate Spot Animation Enter )) ĊĊĠĠĠĠĠĠĠ Ġadd ( X Graphics Object . getModel . exit . subscribe (:: graphics Object Get Model Exit )) ĊĠĠĠĠĠĠĠ Ġadd ( X Graphics Object . getModel . enter . subscribe (:: graphics Object Get Model Enter )) ĊĊĠĠĠĠĠĠĠ Ġadd ( X Dynamic Object . getModel . enter . subscribe (:: dynamic Object Get Model Enter )) ĊĠĠĠĠĠĠĠ Ġadd ( X Seq Type . animate Object . enter . subscribe (:: animate Object Enter )) ĊĠĠĠ Ġ} Ċ } Ċ Ċ internal Ġfun Ġpack Frame ( frame : ĠInt , Ġframe Cycle : ĠInt ): ĠInt Ġ{ ĊĠĠĠ Ġreturn ĠInt . MIN _ VALUE Ġor Ġ( frame Cycle Ġshl Ġ 1 6 ) Ġor Ġframe Ċ } Ċ Ċ internal Ġfun Ġunpack Frame ( packed : ĠInt ): ĠInt Ġ{ ĊĠĠĠ Ġreturn Ġif Ġ( packed Ġ== Ġ- 1 ) Ġ- 1 Ġelse Ġpacked Ġand Ġ 0 xFFFF Ċ }