Thread: [Solved] "Bouncing" Props
View Single Post
Chrissy
Member
Join Date: May 2013
Old 06-08-2020 , 07:57   Re: "Bouncing" Props
Reply With Quote #4

Quote:
Originally Posted by kadet.89 View Post
m_flElasticity
Couldn't get "prop_physics_multiplayer" to spawn so I just used "prop_physics" but the property doesn't really do anything as far as I can tell. Tried both very low and very high float values.

EDIT: This is what I've done and it doesn't work for some reason.
PHP Code:
int Prop CreateEntityByName("prop_physics");
    
    if(
IsValidEntity(Prop))
    {
        
PrintToChatAll("Podo");
        
        
float vAngles[3], vEyePos[3], vEndPos[3];
        
        
GetClientEyePosition(ClientvEyePos);
        
GetClientEyeAngles(ClientvAngles);

        
Handle trace TR_TraceRayFilterEx(vEyePosvAnglesMASK_SHOTRayType_InfiniteTraceFilterAllEntitiesClient);

        
TR_GetEndPosition(vEndPostrace);
        
vEndPos[2] += 200.0;

        
delete trace;
        
        
DispatchKeyValue(Prop"model""models/props/cs_italy/orange.mdl");
        
        
DispatchSpawn(Prop);
        
        
SetEntPropFloat(PropProp_Send"m_flModelScale"3.0);
        
SetEntPropFloat(PropProp_Send"m_flElasticity"0.2);
        
        
TeleportEntity(PropvEndPosNULL_VECTORNULL_VECTOR);
    } 

Last edited by Chrissy; 06-08-2020 at 08:05.
Chrissy is offline