Raised This Month: $12 Target: $400
 3% 

cl_fullupdate on client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
slava123
Junior Member
Join Date: Apr 2022
Location: zm_crazycity
Old 07-22-2022 , 15:17   cl_fullupdate on client
Reply With Quote #1

hi is there any plugin or a way to execute cl_fullupdate command on a client without using sv_cheats 1.
slava123 is offline
Grafi_
Junior Member
Join Date: Apr 2022
Location: Poland
Old 07-22-2022 , 15:50   Re: cl_fullupdate on client
Reply With Quote #2

Quote:
Originally Posted by slava123 View Post
hi is there any plugin or a way to execute cl_fullupdate command on a client without using sv_cheats 1.
HTML Code:
#include <sourcemod>

public void OnPluginStart()
{
    RegConsoleCmd("sm_fullupdate", CMD_FullUpdate);
}

public Action CMD_FullUpdate(int client, int args)
{
    ClientCommand(client, "cl_fullupdate 1");
}
maybe this?

Last edited by Grafi_; 07-22-2022 at 15:52.
Grafi_ is offline
slava123
Junior Member
Join Date: Apr 2022
Location: zm_crazycity
Old 07-22-2022 , 18:07   Re: cl_fullupdate on client
Reply With Quote #3

i keep getting this, its because of sv_cheats 1
FCVAR_SERVER_CAN_EXECUTE prevented server running command: cl_fullupdate
slava123 is offline
Zynda
Member
Join Date: Jul 2011
Old 07-25-2022 , 01:25   Re: cl_fullupdate on client
Reply With Quote #4

Use the engine fuction CBaseClient::OnRequestFullUpdate
Zynda is offline
slava123
Junior Member
Join Date: Apr 2022
Location: zm_crazycity
Old 08-16-2022 , 09:44   Re: cl_fullupdate on client
Reply With Quote #5

Quote:
Originally Posted by Zynda View Post
Use the engine fuction CBaseClient::OnRequestFullUpdate
How to use it? Can you give me an example, please?
slava123 is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 08-17-2022 , 09:29   Re: cl_fullupdate on client
Reply With Quote #6

PHP Code:
#include <sourcemod>

ConVar    g_cvCheats null;

public 
void OnPluginStart()
{
    if (!(
g_cvCheats FindConVar("sv_cheats"))) {
        
SetFailState("Fatal Error: Unable to FindConVar \"sv_cheats\" !");
    }
    
RegConsoleCmd("sm_fullupdate"CMD_FullUpdate);
}

public 
Action CMD_FullUpdate(int clientint args)
{
    if (
client || !IsClientInGame(client))
    {
        return 
Plugin_Handled;
    }
    
SendConVarValue(clientg_cvCheats"1");
    
ClientCommand(client"cl_fullupdate");
    
SendConVarValue(clientg_cvCheats"0");
    return 
Plugin_Handled;

`666 is offline
slava123
Junior Member
Join Date: Apr 2022
Location: zm_crazycity
Old 08-23-2022 , 10:41   Re: cl_fullupdate on client
Reply With Quote #7

FCVAR_SERVER_CAN_EXECUTE prevented server running command: cl_fullupdate

slava123 is offline
Zynda
Member
Join Date: Jul 2011
Old 08-23-2022 , 10:58   Re: cl_fullupdate on client
Reply With Quote #8

Why do you want to force a full update in the first place?
I imagine it would be unpleasant on the receiving end, not something you'd want to do on a whim.
Zynda is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 08-23-2022 , 10:58   Re: cl_fullupdate on client
Reply With Quote #9

You can use PTaH_ForceFullUpdate native from PTaH extension.
PHP Code:
/**
 *    Sends to Player a full update packet.
 * @param iClient                Index Player.
 *    -
 * @noreturn
 *    -
 * @error invalid iClient.
*/
native void PTaH_ForceFullUpdate(int iClient); 
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 08-23-2022 at 10:59.
Franc1sco is offline
Send a message via MSN to Franc1sco
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-23-2022 , 11:28   Re: cl_fullupdate on client
Reply With Quote #10

Quote:
Originally Posted by Zynda View Post
Why do you want to force a full update in the first place?
I imagine it would be unpleasant on the receiving end, not something you'd want to do on a whim.
In L4D2 there is a glitch when a client press ALT+TAB and then came back, you keep seeing a ghost glow player, in this case, it is useful (still laggy)
__________________
Marttt is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:18.


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