AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved How to freeze player animation? (https://forums.alliedmods.net/showthread.php?t=324471)

XGAK 05-17-2020 00:50

How to freeze player animation?
 
I want to freeze a player's animation like in this video.
Setting m_flPlaybackRate of player doesn't work. By setting the arrribute "gesture speed increase" I can change the speed of some animations like attack and taunt, but won't affect idle and walk animation just like this video.
How can I totally freeze the animation of player.

XGAK 05-17-2020 22:53

Re: How to freeze player animation?
 
I find this in Nopied's work.
Code:

SetEntProp(client, Prop_Send, "m_bIsPlayerSimulated", 0);
SetEntProp(client, Prop_Send, "m_bSimulatedEveryTick", 0);
SetEntProp(client, Prop_Send, "m_bAnimatedEveryTick", 0);
SetEntProp(client, Prop_Send, "m_bClientSideAnimation", 0);
SetEntProp(client, Prop_Send, "m_bClientSideFrameReset", 1);

Need to deal with pose parameters.NOPE
Just set sv_client_predict to 0 and it will work perfectly.
There should be a delay between setting sv_client_predict and player SetEntProp, or the animation of player would keep standing instead of freezing the walk animation.

FroGeX 01-23-2021 06:05

Re: How to freeze player animation?
 
Quote:

Originally Posted by XGAK (Post 2700792)
I find this in Nopied's work.
Code:

SetEntProp(client, Prop_Send, "m_bIsPlayerSimulated", 0);
SetEntProp(client, Prop_Send, "m_bSimulatedEveryTick", 0);
SetEntProp(client, Prop_Send, "m_bAnimatedEveryTick", 0);
SetEntProp(client, Prop_Send, "m_bClientSideAnimation", 0);
SetEntProp(client, Prop_Send, "m_bClientSideFrameReset", 1);

Need to deal with pose parameters.NOPE
Just set sv_client_predict to 0 and it will work perfectly.
There should be a delay between setting sv_client_predict and player SetEntProp, or the animation of player would keep standing instead of freezing the walk animation.

Works this for CSGO too?


All times are GMT -4. The time now is 20:37.

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