Raised This Month: $51 Target: $400
 12% 

m_flFriction


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
diablix
Senior Member
Join Date: Jan 2010
Location: Warsaw, Poland
Old 02-23-2015 , 10:48   m_flFriction
Reply With Quote #1

I am trying to change user's friction (CS:GO). Changing m_flFriction to 1.0 does nothing. Is it somehow possible?

EDIT:
NVM I found a way to do it. Close plz x]

Last edited by diablix; 02-23-2015 at 11:27.
diablix is offline
Send a message via Skype™ to diablix
tristen620
Junior Member
Join Date: Feb 2012
Old 02-23-2015 , 13:17   Re: m_flFriction
Reply With Quote #2

In the interest of this one day being searched I ask you to post a little about the solution you found or even just a link to where you found your solution. I don't at the moment need to know but if I ever did this would be helpful.
tristen620 is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 02-23-2015 , 14:45   Re: m_flFriction
Reply With Quote #3

Is it sv_friction or something else?
__________________
Chdata is offline
diablix
Senior Member
Join Date: Jan 2010
Location: Warsaw, Poland
Old 09-04-2015 , 15:05   Re: m_flFriction
Reply With Quote #4

I know it's been a while but since the people are still asking about it here is how I did it.
I decided to simulate on-ice effect, this is the closest effect to the real friction I could achieve:

PHP Code:
new g_bOnIce[MAXPLAYERS+1];

public 
setIceFeeling(iClientiOnIce=1g_bOnIce[iClient] = bool:iOnIce;

public 
OnGameFrame(){
    for(new 
<= MaxClients i++){
        if(
g_bOnIce[i] &&  IsClientInGame(i) && IsPlayerAlive(i)){
            if(
GetEntityFlags(i) & FL_ONGROUND){
                new 
Float:fVel[3], Float:fJak;
                
Entity_GetAbsVelocity(ifVel);
                
fVel[2] = 0.0;
                new 
Float:fSpeed GetVectorLength(fVel);
                
                
fJak = (fSpeed/266.0) * 100;
                
                
GetEntPropVector(iProp_Data"m_vecVelocity"fVel);
                
                for(new 
l++){
                    
fVel[l] += (fVel[l]/fJak);
                }
                
                
TeleportEntity(iNULL_VECTORNULL_VECTORfVel);
            }
        }
    }

diablix is offline
Send a message via Skype™ to diablix
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 07:45.


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