AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   Refresh View Model (CSGO) (https://forums.alliedmods.net/showthread.php?t=314546)

SM9 02-24-2019 10:07

Refresh View Model (CSGO)
 
Yes, this is something I found a long time ago, it served me well for fixing several issues such as gloves overlapping / stacking, arm models not updating instantly (required a respawn) and I am sure there is other uses that somebody may find.

PHP Code:

stock bool RefreshVM(int iClient)
{
    if (!
IsPlayerAlive(iClient)) {
        return 
false;
    }
    
    
Event evEvent CreateEvent("player_spawn"true);
    
    if (
evEvent == null) {
        return 
false;
    }
    
    
evEvent.SetInt("userid"GetClientUserId(iClient));
    
evEvent.FireToClient(iClient);
    
evEvent.Cancel();
    
    return 
true;


Enjoy.

SHUFEN 02-25-2019 14:59

Re: Refresh View Model (CSGO)
 
View models problem has been fixed on recent CS:GO update I think.

8guawong 02-27-2019 03:51

Re: Refresh View Model (CSGO)
 
Quote:

Originally Posted by SHUFEN.jp (Post 2640936)
View models problem has been fixed on recent CS:GO update I think.

so armfix is not needed anymore?

SHUFEN 02-27-2019 06:49

Re: Refresh View Model (CSGO)
 
Quote:

Originally Posted by 8guawong (Post 2641152)
so armfix is not needed anymore?

I didn't tested about .kv file problems. (overwrapping) But
PHP Code:

SetEntPropString(clientProp_Send"m_szArmsModel"sArmsModel); 

is working immediately when called, since recent updates.

SM9 03-14-2019 19:33

Re: Refresh View Model (CSGO)
 
Quote:

Originally Posted by SHUFEN.jp (Post 2641171)
I didn't tested about .kv file problems. (overwrapping) But
PHP Code:

SetEntPropString(clientProp_Send"m_szArmsModel"sArmsModel); 

is working immediately when called, since recent updates.


Interesting, well this can be used for a bunch of other things, namely gloving stacking for one example :)


All times are GMT -4. The time now is 23:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.