AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Reload Animation (https://forums.alliedmods.net/showthread.php?t=48952)

The Specialist 12-24-2006 02:45

Reload Animation
 
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?

SweatyBanana 12-24-2006 03:01

Re: Reload Animation
 
+reload


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

The Specialist 12-24-2006 03:03

Re: Reload Animation
 
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 ?

SweatyBanana 12-24-2006 03:05

Re: Reload Animation
 
+reload makes you reload the weapon.. That is the command that is called.

I thought that was what you are asking.

The Specialist 12-24-2006 03:12

Re: Reload Animation
 
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 .

P34nut 12-24-2006 07:55

Re: Reload Animation
 
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

The Specialist 12-24-2006 08:05

Re: Reload Animation
 
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 .

stupok 12-24-2006 13:40

Re: Reload Animation
 
Quote:

Originally Posted by P34nut (Post 419255)
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.)

The Specialist 12-24-2006 13:46

Re: Reload Animation
 
Yeah I already have it being called. Thanks:wink: Im having alot of trouble though . Has anyone ever gotton a "no edicts available " fatal error ?


All times are GMT -4. The time now is 22:23.

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