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

[Orpheu] How to set custom player animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darktemplar
Member
Join Date: Sep 2009
Old 09-12-2012 , 05:27   [Orpheu] How to set custom player animation
Reply With Quote #1

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?
darktemplar is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-12-2012 , 07:50   Re: [Orpheu] How to set custom player animation
Reply With Quote #2

why u need that ? use standart amxx sequence stock
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-12-2012 , 09:40   Re: [Orpheu] How to set custom player animation
Reply With Quote #3

Quote:
Originally Posted by avril-lavigne View Post
why u need that ? use standart amxx sequence stock
There is no "sequence stock."

Use pev_sequence or EV_INT_sequence.
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 09-12-2012 at 09:41.
Backstabnoob is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 09-12-2012 , 20:08   Re: [Orpheu] How to set custom player animation
Reply With Quote #4

Do you want to change the "current weapon holding" animation?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-12-2012 , 23:47   Re: [Orpheu] How to set custom player animation
Reply With Quote #5

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
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 09-12-2012 at 23:48.
avril-lavigne is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-13-2012 , 06:18   Re: [Orpheu] How to set custom player animation
Reply With Quote #6

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.
__________________

Last edited by Arkshine; 09-13-2012 at 06:19.
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 09-13-2012 , 06:21   Re: [Orpheu] How to set custom player animation
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
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.
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 09-13-2012 , 16:28   Re: [Orpheu] How to set custom player animation
Reply With Quote #8

Quote:
Originally Posted by meTaLiCroSS View Post
Do you want to change the "current weapon holding" animation?
Player's holding animation ("ref_aim_rifle", "ref_aim_knife", etc.)
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Reply



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 07:51.


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