Hello, I need to find a way of resizing the flare projectile in a way that doesn't crash the server on contact with a client. I've tried using m_flModelScale, it works until it crashes into someone, then it crashes the server as you can see above. I tried using SDKHook_StartTouch on another verson, but I'm not sure if I did it right.
HTML Code:
public OnEntityCreated(int iEntity)
{
if (iEntity && IsValidEntity(iEntity))
{
SDKHook(iEntity, SDKHook_StartTouch, OnEntityCollide);
}
}
public Action:OnEntityCollide(iEntity)
{
if (iEntity && IsValidEntity(iEntity))
{
SetEntPropFloat(iEntity, Prop_Send, "m_flModelScale", (1.0, 1.0));
}
}
i attached the plugin im trying to modify to use flares instead of rockets.
config file goes in configs/dodgeball
Any help would be greatly appreciated!!!!!!