Quote:
Originally Posted by kadet.89
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(Client, vEyePos);
GetClientEyeAngles(Client, vAngles);
Handle trace = TR_TraceRayFilterEx(vEyePos, vAngles, MASK_SHOT, RayType_Infinite, TraceFilterAllEntities, Client);
TR_GetEndPosition(vEndPos, trace);
vEndPos[2] += 200.0;
delete trace;
DispatchKeyValue(Prop, "model", "models/props/cs_italy/orange.mdl");
DispatchSpawn(Prop);
SetEntPropFloat(Prop, Prop_Send, "m_flModelScale", 3.0);
SetEntPropFloat(Prop, Prop_Send, "m_flElasticity", 0.2);
TeleportEntity(Prop, vEndPos, NULL_VECTOR, NULL_VECTOR);
}