Last active
June 13, 2016 17:00
-
-
Save pennyworth12345/adf99f0a29073c09b53ec7cb6b9a1831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//shows values for the surface you are currently standing on | |
//friction, maxSpeedCoef, surfaceFriction, rough, dust, impact, soundEnviron, soundHit | |
_surface = surfaceType getPosWorld (vehicle player); | |
_surface = _surface select [1, count _surface - 1]; | |
_config = configFile >> "CfgSurfaces" >> _surface; | |
_friction = [_config, "friction", -69] call BIS_fnc_returnConfigEntry; | |
_maxSpeedCoef = [_config, "maxSpeedCoef", -69] call BIS_fnc_returnConfigEntry; | |
_surfaceFriction = [_config, "surfaceFriction", -69] call BIS_fnc_returnConfigEntry; | |
_rough = [_config, "rough", -69] call BIS_fnc_returnConfigEntry; | |
_dust = [_config, "dust", -69] call BIS_fnc_returnConfigEntry; | |
_impact = [_config, "impact", -69] call BIS_fnc_returnConfigEntry; | |
_soundEnviron = [_config, "soundEnviron", -69] call BIS_fnc_returnConfigEntry; | |
_soundHit = [_config, "soundHit", -69] call BIS_fnc_returnConfigEntry; | |
hint formatText [ | |
"%1%2%3%4%5%6%7%8%9%10%11", | |
parseText format ["<t align='left'>Surface:</t><t align='right'>%1</t><br /><br />", _surface], | |
parseText "<t color='#00ff00'>Handling Effects</t><br />", | |
parseText format ["<t align='left'>friciton:</t><t align='right'>%1</t><br />", _friction], | |
parseText format ["<t align='left'>maxSpeedCoef:</t><t align='right'>%1</t><br />", _maxSpeedCoef], | |
parseText format ["<t align='left'>surfaceFriction:</t><t align='right'>%1</t><br />", _surfaceFriction], | |
parseText format ["<t align='left'>rough:</t><t align='right'>%1</t><br />", _rough], | |
parseText "<t color='#ff0000'>Visual Effects</t><br />", | |
parseText format ["<t align='left'>dust:</t><t align='right'>%1</t><br />", _dust], | |
parseText format ["<t align='left'>impact:</t><t align='right'>%1</t><br />", _impact], | |
parseText format ["<t align='left'>soundEnviron:</t><t align='right'>%1</t><br />", _soundEnviron], | |
parseText format ["<t align='left'>soundHit:</t><t align='right'>%1</t><br />", _soundHit] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment