Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use attributes to control speed #403

Open
Deathreus opened this issue Jun 17, 2016 · 0 comments
Open

Use attributes to control speed #403

Deathreus opened this issue Jun 17, 2016 · 0 comments

Comments

@Deathreus
Copy link

Since 2.0 will break ALL the things, why not break more things and use an attribute to modify hales speed? If you take the desired speed from the config, and divide it by the class's max speed, you'll get an accurate "move speed bonus" attribute number.

The only minor flaw with this is you can't have perfectly exact numbers, if you take scouts 400 speed, and want him to move at 385, the attribute value would actually make him move at 384, the attribute appears to use the first 2 decimal numbers, assuming there's no sort of rounding going on...

I only did a quick test of this using a command to set the attribute on me, a command to print out m_flMaxSpeed, and a calculator. The results were more or less what it should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants