View Single Post
cigzag
AlliedModders Donor
Join Date: Nov 2014
Location: NZ
Old 07-09-2017 , 23:58   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #6

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(iEntityProp_Send"m_flModelScale", (2.02.0));
        
SetEntPropFloat(iEntityProp_Send"m_flModelScale", (2.02.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

Last edited by cigzag; 07-10-2017 at 16:18.
cigzag is offline