Raised This Month: $51 Target: $400
 12% 

player animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 07-14-2019 , 07:44   player animation
Reply With Quote #1

Hi, I want to show a "player" animation when user shoots with the bow :
PHP Code:
public FireArrow(id)
{
             
playanim(idanim_shot1)// this is weapon animation and only user can see that 
             //here I would add "player" animation so that all other players can see that. 
Do I need to make a completely different anim or it is possible to convert the current one into "player" animation?
If I need to make different "player" animation , how do I do that?
LearninG is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-14-2019 , 12:04   Re: player animation
Reply With Quote #2

What's playanim?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 07-14-2019 , 12:34   Re: player animation
Reply With Quote #3

PHP Code:
//play anim
public playanim(player,anim)
{
    
set_pev(playerpev_weaponanimanim)
    
message_begin(MSG_ONESVC_WEAPONANIM, {000}, player)
    
write_byte(anim)
    
write_byte(pev(playerpev_body))
    
message_end()

LearninG is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-14-2019 , 13:37   Re: player animation
Reply With Quote #4

A player is not a weapon so pev_weaponanim and SVC_WEAPONANIM are useless, pev_gaitsequence is the way it should work I think.

Last edited by thEsp; 07-14-2019 at 13:44.
thEsp is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 07-14-2019 , 13:40   Re: player animation
Reply With Quote #5

Quote:
Originally Posted by thEsp View Post
A player is not a weapon so pev_weaponanim and SVC_WEAPONANIM are useless, pev_sequence is the way it should work I think.
can you show me an example with pev_squence ?
LearninG is offline
Old 07-14-2019, 13:47
thEsp
This message has been deleted by thEsp.
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 07-14-2019 , 13:54   Re: player animation
Reply With Quote #6

Quote:
squence_num
last question, how to find these numbers , needed anims (player anims) ?
LearninG is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-14-2019 , 14:01   Re: player animation
Reply With Quote #7

To set player animations you have to use pev_sequence, pev_gaitsequence, but it's not a one time setup(because on the next call of SetAnimation it will overwrite your animation).
__________________
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-14-2019 , 16:00   Re: player animation
Reply With Quote #8

Quote:
Originally Posted by LearninG View Post
last question, how to find these numbers , needed anims (player anims) ?
Open the model with Jed's Model Viewer and you'll have each sequence listed there.

As HamletEagle said, you can't just play a sequence on a player because it will be overwritten by the default animations, you have to use Arkshines module, you can find it somewhere in the forum.
__________________
edon1337 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 04:23.


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