Raised This Month: $ Target: $400
 0% 

Player Animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ef_Deas
Member
Join Date: Aug 2012
Location: Rio de Janeiro
Old 08-09-2012 , 09:39   Player Animation
Reply With Quote #1

1) Is there a way to set set the view angle of the model's upper body (not player, just a model of) like EV_VEC_v_angle to the player?
I mean, without Orpheu or changing the model.
I've tried to do it with pev_blendings, but I only made it look straight and right like this:

pev_blending_0: 0 250 -250
But I can't force it to look down, or left.

2) How can I play the animation on the alive player?
Someone once told me it has to be something like this:
PHP Code:
public EVENT_StartFramePost()
{
    for(new 
idUser=1idUser <= MAXPLAYERSidUser++)
    {
        if(!
is_user_alive(idUser))
            continue;
        
        if(
p_data_b[idUser][PB_FAKE_DYING])     // If he should start dying
        
{
            
entity_set_int(idUser,EV_INT_sequencerandom_num(103,110) )// Death animation
        
}
    }    

I need to play the death animation (pretend to be dead), and also leave the opportunity to kill him, by hitting hitboxes. Is this even possible?
Ef_Deas is offline
Send a message via Skype™ to Ef_Deas
satelitegames
Member
Join Date: Nov 2010
Old 08-09-2012 , 10:11   Re: Player Animation
Reply With Quote #2

ok
__________________





Last edited by satelitegames; 08-13-2012 at 15:57.
satelitegames is offline
dxteam
Senior Member
Join Date: Dec 2005
Old 08-10-2012 , 03:48   Re: Player Animation
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=120958
dxteam is offline
Send a message via ICQ to dxteam
Ef_Deas
Member
Join Date: Aug 2012
Location: Rio de Janeiro
Old 08-10-2012 , 06:41   Re: Player Animation
Reply With Quote #4

Well, I just need to play standart sequence, it already exists in the model. But I can't be sure, that it is possible to hit the "dead" body's hitboxes.
Ef_Deas is offline
Send a message via Skype™ to Ef_Deas
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-10-2012 , 20:11   Re: Player Animation
Reply With Quote #5

If you want to play a single animation, use Orpheu for it, and hook SetAnimation function (there exists a signature on the forum). Check how it works on the HLSDK.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Ef_Deas
Member
Join Date: Aug 2012
Location: Rio de Janeiro
Old 08-11-2012 , 04:59   Re: Player Animation
Reply With Quote #6

Is it only real with Orpheu? And what's with the 1st question?
Ef_Deas is offline
Send a message via Skype™ to Ef_Deas
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-11-2012 , 14:25   Re: Player Animation
Reply With Quote #7

Quote:
Originally Posted by Ef_Deas View Post
Is it only real with Orpheu? And what's with the 1st question?
Well, have you had problems with Orpheu? It's the same as adding another module with useful functions, and I don't know about the first question.
__________________
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 05:49.


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