Raised This Month: $ Target: $400
 0% 

[TF2] m_flMaxspeed default values


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Akuba
Senior Member
Join Date: Oct 2013
Old 07-18-2015 , 07:53   [TF2] m_flMaxspeed default values
Reply With Quote #1

I looking for the default speed of any class to use with m_flMaxspeed and I am not sure if the ones I found in the German TF2 wiki are the right ones:

https://wiki.teamfortress.com/wiki/C....C3.9Cberblick
(in order: Class - forwards - ABS - backwards - ABS - shile crouching - ABS) (Why they are only in the german Wiki and not in the english one? °.o)

I looking for them because I want to make every class the same speed and I am not sure yet which speed I should use.
Akuba is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-18-2015 , 09:21   Re: [TF2] m_flMaxspeed default values
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=1359499

Look here
__________________
Benoist3012 is offline
Akuba
Senior Member
Join Date: Oct 2013
Old 07-18-2015 , 09:42   Re: [TF2] m_flMaxspeed default values
Reply With Quote #3

Perfect, thank you!
Akuba is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-18-2015 , 11:17   Re: [TF2] m_flMaxspeed default values
Reply With Quote #4

The wiki ones are correct, however they go by percentage rather than Hammer Units per Second(which m_flMaxSpeed uses) generally you just want to multiply the % by 3 however some of them are rounded(Scout is 400 HU/s = 133.3333...% which the wiki rounds to 133%)

If you want to make absolutely sure you can set cl_showpos 1 in game and it will show a hud element with position and movement speed in HU/s.

Last edited by Tylerst; 07-18-2015 at 11:20.
Tylerst is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-18-2015 , 11:30   Re: [TF2] m_flMaxspeed default values
Reply With Quote #5

PHP Code:
stock Float:GetClassBaseSpeed(TFClassType:iClass// NEEDTOUPDATE
{
    switch (
iClass)
    {
        case 
TFClass_Scout:     return 400.0;
        case 
TFClass_Soldier:   return 240.0;
        case 
TFClass_Pyro:      return 300.0;
        case 
TFClass_DemoMan:   return 280.0;
        case 
TFClass_Heavy:     return 230.0;
        case 
TFClass_Engineer:  return 300.0;
        case 
TFClass_Medic:     return 320.0;
        case 
TFClass_Sniper:    return 300.0;
        case 
TFClass_Spy:       return 300.0;
    }
    return 
340.0;

__________________
Chdata is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode