Raised This Month: $ Target: $400
 0% 

Orpheu help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 05-08-2010 , 07:06   Orpheu help
Reply With Quote #1

I searched a lot but just found this: http://forums.alliedmods.net/showthr...imation&page=2

I 've tried
PHP Code:
 
[left]const ACT_RANGE_ATTACK1 28;[/left]
 
 
[
left]const m_Activity 73;[/left]
 
 
 
[
left]set_pdata_intidm_ActivityACT_RANGE_ATTACK1 );[/left]
 
 
[
left]set_pevidpev_sequenceyour sequence )[/left]
 
 
[
left]set_pevidpev_animtimeget_gametime() );[/left]
 
 
[
left]set_pevidpev_frame);[/left]
 
 
[
left]set_pevidpev_framerate1.0 );[/left

but did'nt work
I want to play an animation om his upper body

Last edited by hzqst; 05-08-2010 at 09:12.
hzqst is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-08-2010 , 07:17   Re: [How to]Force an animation? for player
Reply With Quote #2

Like I've said you better hook SetAnimation()
__________________
Arkshine is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 05-08-2010 , 09:09   Re: [How to]Force an animation? for player
Reply With Quote #3

PHP Code:
 new OrpheuFunction:SetAnimation OrpheuGetFunction"SetAnimation""CBasePlayer" );
 
OrpheuRegisterHookSetAnimation"OP_SetAnimation" ); 
PHP Code:
public OP_SetAnimation(const player, ???){
 

PHP Code:
{
 
"name" "SetAnimation",
 
"class" "CBasePlayer",
 
"library" "mod",
 
"arguments" :
 [
  {
   
"type" "PLAYER_ANIM"
  
}
 ],
 
"identifiers":
 [
  {
   
"os" "windows",
   
"value" "?SetAnimation@CBasePlayerItem@@QAEXXZ"
  
},
  {
   
"os" "linux",
   
"value" "SetAnimation__11CBasePlayer11PLAYER_ANIM"
  
}
 ]

then I don't know what to do
hzqst is offline
Reply


Thread Tools
Display Modes

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 03:44.


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