Raised This Month: $ Target: $400
 0% 

Solved FL_ONGROUND counts standing on entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TBagT
Member
Join Date: Aug 2016
Location: Lithuania
Old 06-26-2017 , 09:20   Re: FL_ONGROUND counts standing on entity
Reply With Quote #7

Thanks got it to work somehow with get_user_velocity( id, ... ); vector_length( ... ); .
Another question is it possible to keep another player in front of another player by some units ? Like charger from l4d for example. Right now I used velocity but if one player gets stuck while the carried player moves forward.
PHP Code:
                        if( ( flags & ( FL_ONGROUND FL_PARTIALGROUND FL_INWATER FL_CONVEYOR FL_FLOAT ) ) ) {
                                new 
lookOrigin], FloatlookOriginF], FloatsprVel];
                                
get_user_originidlookOrigin);

                                
lookOriginF] = floatlookOrigin] );
                                
lookOriginF] = floatlookOrigin] );
                                
lookOriginF] = floatlookOrigin] );

                                
get_velocity_to_originidlookOriginFget_pcvar_floatg_cvarsSPRINT_SPEED ] ), sprVel );

                                
sprVel] = 0.0;
                                
set_pevidpev_velocitysprVel );

                                if( 
g_playerid ][ grabbed_victim ] )
                                        
set_pevg_playerid ][ grabbed_victim ], pev_velocitysprVel );

                                
g_playerid ][ startedSprinting ] = true;
                        } 

Last edited by TBagT; 06-26-2017 at 09:21.
TBagT is offline
 



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 23:06.


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