How can I command the model to do the designated movement

YEA
✔️ HL Verified
Joined
Oct 31, 2014
Messages
201
Best answers
0
Location
CHINA
wow, :(I've tried many ways over and over, however, I got failed, and here's my plugin's code:

Code:
stock UTIL_PlayWeaponAnimation(const Player, const Sequence)
{
set_pev(Player, pev_weaponanim, Sequence)
message_begin(MSG_ONE_UNRELIABLE, SVC_WEAPONANIM, .player = Player)
write_byte(Sequence)
write_byte(pev(Player, pev_body))
message_end()
}

UTIL_PlayWeaponAnimation(player,ref_charge_kamehameha)
 
Last edited:
NOT IN THE MANGA™
★ Black Lounger ★
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Jan 5, 2008
Messages
3,276
Best answers
0
Location
Lithuania
Play with pev_sequence.
 
YEA
✔️ HL Verified
Joined
Oct 31, 2014
Messages
201
Best answers
0
Location
CHINA
Play with pev_sequence.
It can only shake in a twinkling, then it returns at once.....O_O

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN_NAME	"New Plug-In"
#define PLUGIN_VERSION	"1.0"
#define PLUGIN_AUTHOR	"Administrator"

public plugin_init()
{
	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
	register_clcmd("Boost","ddd")
}

public ddd(id)
{
	new buttons = pev(id, pev_button)
        if (buttons & IN_FORWARD)
	{
	set_pev(id, pev_sequence, 39)
	}
}
 

Users who are viewing this thread

Top Bottom