AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player Animation (https://forums.alliedmods.net/showthread.php?t=192350)

Ef_Deas 08-09-2012 09:39

Player Animation
 
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:
http://s61.radikal.ru/i174/1208/a5/53567ccec395t.jpg
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?

satelitegames 08-09-2012 10:11

Re: Player Animation
 
ok

dxteam 08-10-2012 03:48

Re: Player Animation
 
http://forums.alliedmods.net/showthread.php?t=120958

Ef_Deas 08-10-2012 06:41

Re: Player Animation
 
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.

meTaLiCroSS 08-10-2012 20:11

Re: Player Animation
 
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.

Ef_Deas 08-11-2012 04:59

Re: Player Animation
 
Is it only real with Orpheu? And what's with the 1st question?

meTaLiCroSS 08-11-2012 14:25

Re: Player Animation
 
Quote:

Originally Posted by Ef_Deas (Post 1769079)
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.


All times are GMT -4. The time now is 05:49.

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