AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Orpheu] How to set custom player animation (https://forums.alliedmods.net/showthread.php?t=195855)

darktemplar 09-12-2012 05:27

[Orpheu] How to set custom player animation
 
Hi everyone,
I want to set custom sequence for player, but my friends say that it is only done by Orpheu. Can anyone help me to set player animation by using orpheu?

avril-lavigne 09-12-2012 07:50

Re: [Orpheu] How to set custom player animation
 
why u need that ? use standart amxx sequence stock

Backstabnoob 09-12-2012 09:40

Re: [Orpheu] How to set custom player animation
 
Quote:

Originally Posted by avril-lavigne (Post 1797436)
why u need that ? use standart amxx sequence stock

There is no "sequence stock."

Use pev_sequence or EV_INT_sequence.

meTaLiCroSS 09-12-2012 20:08

Re: [Orpheu] How to set custom player animation
 
Do you want to change the "current weapon holding" animation?

avril-lavigne 09-12-2012 23:47

Re: [Orpheu] How to set custom player animation
 
I use this 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()


than look in HL model viewer what sequence to call

Arkshine 09-13-2012 06:18

Re: [Orpheu] How to set custom player animation
 
write_byte(pev(Player, pev_body))


It's wrong. What is passed should the weapon pev->body value, not player. Even though it's not going to make a difference since it's most of time to 0, it's still wrong to use that
And it seems he wants player animation, not weapon.

Bos93 09-13-2012 06:21

Re: [Orpheu] How to set custom player animation
 
Quote:

Originally Posted by Arkshine (Post 1746622)
A player's animation is constantly played through CBasePlayer::SetAnimation() (idle, walk, etc.). If your purpose is to overwrite original animation, you would need to hook this function.


meTaLiCroSS 09-13-2012 16:28

Re: [Orpheu] How to set custom player animation
 
Quote:

Originally Posted by meTaLiCroSS (Post 1797924)
Do you want to change the "current weapon holding" animation?

Player's holding animation ("ref_aim_rifle", "ref_aim_knife", etc.)


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

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