No matter what I do, trying to resize the rocket model automatticly just won't work.
I created a server command, tf_dodgeball_resize, put it under nuke in general.cfg
PHP Code:
void RegisterCommands()
{
RegServerCmd("tf_dodgeball_explosion", CmdExplosion);
RegServerCmd("tf_dodgeball_shockwave", CmdShockwave);
RegServerCmd("tf_dodgeball_resize", CmdResize);
}
PHP Code:
public Action CmdResize(int iIndex)
{
int iEntity = EntRefToEntIndex(g_iRocketEntity[iIndex]);
if (iEntity && IsValidEntity(iEntity))
{
SetEntPropFloat(iEntity, Prop_Send, "m_flModelScale", (2.0, 2.0));
SetEntPropFloat(iEntity, Prop_Send, "m_flModelScale", (2.0, 2.0));
}
}
However, when I put it through server console, it will resize! (no matter if its a nuke or what)
oh well, I'll work on a fix today so this plugin becomes way better than the old one