Raised This Month: $ Target: $400
 0% 

Forcing sequence in a player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
frk_14
Senior Member
Join Date: Jan 2009
Location: Argentina
Old 11-18-2009 , 03:09   Forcing sequence in a player
Reply With Quote #1

Is possible possible obligate a player run X sequence?, for example, when jump, the upper body use aim_... or shot_... .I want that when jump, use jump animation, too (the upper body)

means?
frk_14 is offline
Send a message via MSN to frk_14 Send a message via Skype™ to frk_14
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-18-2009 , 15:27   Re: Forcing sequence in a player
Reply With Quote #2

Look at matrix jump plugin (in new submission i think).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 11-18-2009 , 16:24   Re: Forcing sequence in a player
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Look at matrix jump plugin (in new submission i think).
I tried that with frk but some things doesn't work.

The problem is not with the sequence. It's with the frames.

The animation doesn't start, but if a spawn a new entity with the same model, force the sequence and then play it everything works.

What frk needs is to make a player sequence and gaimsequence work at the same time for the same movement (walk)


EDIT:

Nevermind, frk say me that the first model hasn't a gaimsequence and now yes.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 11-18-2009 at 16:28.
joropito is offline
Send a message via MSN to joropito
frk_14
Senior Member
Join Date: Jan 2009
Location: Argentina
Old 11-18-2009 , 16:07   Re: Forcing sequence in a player
Reply With Quote #4

thanks
frk_14 is offline
Send a message via MSN to frk_14 Send a message via Skype™ to frk_14
frk_14
Senior Member
Join Date: Jan 2009
Location: Argentina
Old 11-18-2009 , 20:57   Re: Forcing sequence in a player
Reply With Quote #5

I have other problem, the animations work only in the air, but no in the floor
Im testing with this two plugins
Code:
#include <amxmodx>
#include <fakemeta>

public  plugin_init() 
{
register_plugin("Frk", "Mejor",  "Modeler")
register_forward(FM_PlayerPreThink, "PreThink")
}

public  PreThink(id)
{
if (pev(id, pev_sequence) !=8 ) 
{
set_pev(id,  pev_sequence,        8)
set_pev(id, pev_gaitsequence,    8)
set_pev(id,  pev_frame,        30.0)
set_pev(id, pev_fuser1,        10.0)
set_pev(id,  pev_animtime,   3.0)
set_pev(id, pev_framerate,    10.0) 
}
}
Code:
#include <amxmodx>

#include <engine>

#include <fakemeta>


public plugin_init()
{
    register_plugin("dd", "1.0", "?");
    
    register_forward(FM_PlayerPreThink, "PlayerPreThink");
}

public PlayerPreThink(id)
{
    static button;
    button = pev(id, pev_button);

    if (button & IN_RUN)
        entity_set_int(id, EV_INT_sequence, 4)
    
    set_pev(id, pev_button, button);
    return FMRES_HANDLED;
}

Last edited by frk_14; 11-18-2009 at 21:25.
frk_14 is offline
Send a message via MSN to frk_14 Send a message via Skype™ to frk_14
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 13:40.


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