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

Reload Animation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Specialist
BANNED
Join Date: Nov 2006
Old 12-24-2006 , 02:45   Reload Animation
Reply With Quote #1

I need to know how to activate the reload animation . Not catch the button I already know that. But when a user presses the button what activates the reload animation?
The Specialist is offline
Send a message via AIM to The Specialist
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-24-2006 , 03:01   Re: Reload Animation
Reply With Quote #2

+reload


EDIT: Mah bad.. That makes you reload every shot.

Last edited by SweatyBanana; 12-24-2006 at 03:04.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
The Specialist
BANNED
Join Date: Nov 2006
Old 12-24-2006 , 03:03   Re: Reload Animation
Reply With Quote #3

what kind of answer is that ? And I said I dont want the button

IN_RELOAD is the button . What the hell are you talking about ?
The Specialist is offline
Send a message via AIM to The Specialist
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-24-2006 , 03:05   Re: Reload Animation
Reply With Quote #4

+reload makes you reload the weapon.. That is the command that is called.

I thought that was what you are asking.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
The Specialist
BANNED
Join Date: Nov 2006
Old 12-24-2006 , 03:12   Re: Reload Animation
Reply With Quote #5

OOHHHHH. Thats the client_cmd("+reload");

I didn't even think about that . hmm , maybee that will work . Im trying to activate the animation on a weapon entity that Im creating .
The Specialist is offline
Send a message via AIM to The Specialist
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 12-24-2006 , 07:55   Re: Reload Animation
Reply With Quote #6

Code:
stock set_animation(id, anim) {     set_pev(id, pev_weaponanim, anim)         message_begin(MSG_ONE, SVC_WEAPONANIM, {0, 0, 0}, id)     write_byte(anim)     write_byte(pev(id, pev_body))     message_end() }

from gabenmod

you can set a weapon animation for this

so if you do set_animation(id, 4) itll show the reload animation for the m4a1
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-24-2006 , 08:05   Re: Reload Animation
Reply With Quote #7

well my weapon entity already has reload animations , courtesy of RazorBack , he made the model , animations , and sounds . So I need to find the way to activate the animation on my model .
The Specialist is offline
Send a message via AIM to The Specialist
stupok
Veteran Member
Join Date: Feb 2006
Old 12-24-2006 , 13:40   Re: Reload Animation
Reply With Quote #8

Quote:
Originally Posted by P34nut View Post
so if you do set_animation(id, 4) itll show the reload animation for the m4a1
Maybe you missed something?

When you want to execute the reload animation, put set_animation(id, 4) in your code...

(Don't forget to include P34nut's stock.)
stupok is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-24-2006 , 13:46   Re: Reload Animation
Reply With Quote #9

Yeah I already have it being called. Thanks Im having alot of trouble though . Has anyone ever gotton a "no edicts available " fatal error ?
The Specialist is offline
Send a message via AIM to The Specialist
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 12:56.


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