AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Play weapon animation on a player? (https://forums.alliedmods.net/showthread.php?t=245705)

AwesomeMan 08-05-2014 19:02

Play weapon animation on a player?
 
How could I play weapon animation on a player? The animation that happens when you change gun.

RateX 08-05-2014 23:51

Re: Play weapon animation on a player?
 
Be more specific, you want to change on v model or player's model?

AwesomeMan 08-06-2014 09:23

Re: Play weapon animation on a player?
 
Quote:

Originally Posted by RateX (Post 2179613)
Be more specific, you want to change on v model or player's model?

I don't want to change any models. When you change a gun, let's say from AWP to deagle, a little animation is played you pulling out the deagle. I want to play that animation for a player when his just holding a weapon. I know I could just change his weapon to something than back, but it's something I rather avoid.

If you still don't get me, watch the first 3 seconds of this video ( https://www.youtube.com/watch?v=ABL4tWBP9EM ).

Lycode 08-06-2014 15:03

Re: Play weapon animation on a player?
 
PHP Code:

set_pev(idpev_weaponanimanimation); 

PHP Code:

message_begin(MSG_ONE_UNRELIABLESVC_WEAPONANIM_id);
write_byte(animation);
write_byte(pev(idpev_body));
message_end(); 



All times are GMT -4. The time now is 12:56.

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