Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Max weapon speed
Author Message
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Max weapon speed
Hey i'm trying to figure out how I can make it so once a player reaches 100 dex or so, the speed of weapons or wrestling does not increase?
09-18-2013 07:45 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Max weapon speed
- added SPEEDSCALEFACTOR to INI (defaul value is 15000), used in weapon delay calcultions, now formula looks like
DELAY = SPEEDSCALEFACTOR / ( ( DEX + 100 ) * SPEED )
- ARGN1 in @HitTry now is the delay (in tenths of second) left before the hit, can be changed

so try this in an @HitTry trigger (while argn1 is in tenths of second, i think that the result in the above formula is in seconds) so :
PHP Code:
ON=@Hittry
if <dex> >= 100  //if dex >= 100 recalculate the formula else use the normal delay
    
argn1 = (<serv.speedscalefactor>*10) / (200 * <argo.speed>)
endif 

I don't know the fist speed(argo.speed with wrestling give 0 ofcourse), the above code cover just weapons ShockShock
(This post was last modified: 09-19-2013 12:32 AM by darksun84.)
09-18-2013 09:08 PM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #3
RE: Max weapon speed
Thanks man, i really appreciate it! Now i just need to figure out how to fix wrestling haha
09-19-2013 05:13 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #4
RE: Max weapon speed
(09-19-2013 05:13 PM)Leonidas Wrote:  Thanks man, i really appreciate it! Now i just need to figure out how to fix wrestling haha

one "If" statement won't solve that?_
09-19-2013 05:17 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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