AlliedModders

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

The Inhabitant Of Heavens 10-28-2011 11:57

Play animation
 
How to play the animation on the client ?

Flipper_SPb 10-29-2011 02:50

Re: Play animation
 
Weapon animation?

The Inhabitant Of Heavens 10-29-2011 07:49

Re: Play animation
 
Quote:

Originally Posted by Flipper_SPb (Post 1585463)
Weapon animation?

Yes,and players animation

kotinha 10-29-2011 08:25

Re: Play animation
 
look for example in american football mod ( http://forums.alliedmods.net/showthr...light=football ) and look at the dive stuff... I think it it has something to do with addtofullpack

Backstabnoob 10-29-2011 08:28

Re: Play animation
 
Use pev_sequence.

Flipper_SPb 10-29-2011 08:50

Re: Play animation
 
For weapons use stock:

PHP Code:

stock UTIL_PlayWeaponAnimation (const Player, const Sequence)
{
    
set_pev (Playerpev_weaponanimSequence)
    
message_begin (MSG_ONE_UNRELIABLESVC_WEAPONANIM, .player Player)
    
write_byte (Sequence)
    
write_byte (pev(Playerpev_body ))
    
message_end ()



Arkshine 10-29-2011 09:36

Re: Play animation
 
pev(Player, pev_body)

It's wrong. Player's body is unrelated to weapon animation. It should be : pev( weaponIndex, pev_body).

The Inhabitant Of Heavens 10-29-2011 09:53

Re: Play animation
 
How to play player animation without Orpheu

?


All times are GMT -4. The time now is 14:19.

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