Kimimaru Posted August 16, 2009 Author Share Posted August 16, 2009 Hey! I'm attempting to change the walking and running speeds of different classes, and it's apparently not working. I have this in my **Sub JoinGame(Index)**:```' Changes player run speeds based on class If GetPlayerClass(Index) = 1 Then Call SetSpeed(Index, Run, 7) End If If GetPlayerClass(Index) = 2 Then Call SetSpeed(Index, Walk, 2) Call SetSpeed(Index, Run, 5) End If If GetPlayerClass(Index) = 3 Then Call SetSpeed(Index, Walk, 3) Call SetSpeed(Index, Run, 6) End If If GetPlayerClass(Index) = 4 Then Call SetSpeed(Index, Walk, 3) Call SetSpeed(Index, Run, 7) End If If GetPlayerClass(Index) = 5 Then Call SetSpeed(Index, Walk, 2) Call SetSpeed(Index, Run, 4) End If```I've even tried it with more drastic numbers, such as 20, but the class' speed still seems to remain the same. Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
DarkMazer Posted August 16, 2009 Share Posted August 16, 2009 Walk and run speeds can only be powers of 2. So they can only be 1, 2, 4, 8, 16, 32, and maybe 64. It'd be nice if there were intermediates, but there aren't. Link to comment Share on other sites More sharing options...
Kimimaru Posted August 16, 2009 Author Share Posted August 16, 2009 Oh okay, thanks a lot! Now that I think about it, I remember hearing that somewhere. If you increase the speed from 8 to 16 will it be a really significant increase? Link to comment Share on other sites More sharing options...
DarkMazer Posted August 17, 2009 Share Posted August 17, 2009 Each increase (4-8, 8-16) is doubling speed, so yeah, it's pretty significant. I used speed increases/decreases for consumable items and short-duration spells on my game, since I don't see it being very fair to give some people a permanent significant speed advantage.Other uses for speed could be special tiles/terrain (slow going on rough ground/tall grass, maybe antigrav fields that make you move really fast) or maybe as a gimmick in a special boss fight or something. There's plenty of uses for it, if you're creative. It'd be cool to have players that were slightly faster or slower than other players but not in a significant way, but that'd require source editing. Link to comment Share on other sites More sharing options...
Kimimaru Posted August 17, 2009 Author Share Posted August 17, 2009 Thanks for the input! I'm very capable of editing the source, and I was working with it yesterday. I believe I know where to change everything, but I wasn't able to get it 100% working. I'll keep trying. Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now