Raised This Month: $ Target: $400
 0% 

Model animations within a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bruno
Member
Join Date: Jun 2005
Old 10-17-2005 , 18:19   Model animations within a plugin
Reply With Quote #1

I have a model for The Specialists that shows a player holding it in their hand in first person view. The model has several animations though. Is there anyway to make those animations work through a plugin?
Bruno is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-17-2005 , 18:47  
Reply With Quote #2

Set their EV_INT_weaponanim with entity_set_int.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Bruno
Member
Join Date: Jun 2005
Old 10-18-2005 , 21:10  
Reply With Quote #3

I can put it in player's hand but I don't know how to pick the animation.
Bruno is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-18-2005 , 21:14  
Reply With Quote #4

Code:
entity_set_int(id, EV_INT_weaponanim, <squence> )

Example



Code:
entity_set_int(id, EV_INT_weaponanim, 3 )
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Bruno
Member
Join Date: Jun 2005
Old 10-18-2005 , 21:43  
Reply With Quote #5

Thanks man. Sorry Avalanche, I didn't know what you meant.
Bruno is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-19-2005 , 20:30  
Reply With Quote #6

Code:
set_animation(id, 3); // Replace 3 with the sequence # public set_animation(id, anim) {     entity_set_int(id, EV_INT_weaponanim, anim);     message_begin(MSG_ONE, SVC_WEAPONANIM, {0,0,0}, id);     write_byte(anim);     write_byte(entity_get_int(id, EV_INT_body));     message_end(); }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Bruno
Member
Join Date: Jun 2005
Old 10-20-2005 , 00:30  
Reply With Quote #7

Thanks everyone. I'll test it out as soon as possible.
Bruno 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 23:36.


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