SphereCommunity
@hittry speed - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: @hittry speed (/Thread-hittry-speed)



@hittry speed - Leonidas - 10-29-2015 10:20 AM

I'm trying to stop weapon speed after 100 dex. Currently I am using this:

local.speed = <weapon.speed>
argn1 = <eval (<serv.SpeedScaleFactor> * 65) / ((<dex> + 100) * <feval <floatval 150 / <fval <local.speed>>>>)>


Which I found that when 2 players are fighting side by side, one player hitting something can change the other players weapon speed.

Can anyone help me out? I'm just wanting weapon speed to no longer increase after 100 dex.


RE: @hittry speed - Extreme - 10-30-2015 08:02 AM

Change <dex> to <max 100,<dex>>
I hope you have the MAX function.


RE: @hittry speed - Coruja - 10-31-2015 05:52 AM

or you can do it using LOCAL too (in the same way as you already did on LOCAL.Speed)

Code:
LOCAL.Speed = <WEAPON.SPEED>
LOCAL.Dex = <DEX>
IF (<LOCAL.Dex> > 100)
  LOCAL.Dex = 100
ENDIF
ARGN1 = <eval (<SERV.SpeedScaleFactor> * 65) / ((<LOCAL.Dex> + 100) * <feval <floatval 150 / <fval <LOCAL.Speed>>>>)>



RE: @hittry speed - Leonidas - 11-03-2015 07:38 PM

Awesome thank you guys!