AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Orpheu help (https://forums.alliedmods.net/showthread.php?t=126313)

hzqst 05-08-2010 07:06

Orpheu help
 
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

Arkshine 05-08-2010 07:17

Re: [How to]Force an animation? for player
 
Like I've said you better hook SetAnimation()

hzqst 05-08-2010 09:09

Re: [How to]Force an animation? for player
 
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


All times are GMT -4. The time now is 03:44.

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