View unanswered posts | View active topics It is currently Sat Dec 28, 2024 6:06 pm



Reply to topic  [ 7 posts ] 
 Animations for non-automatic weapons? 
Author Message
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Animations for non-automatic weapons?
Okay, so I have some semi-automatic weapons that have a seven-frame animation when firing. Problem is, no matter what I set the animation speed or mode to, I can't seem to get it to animate through the full sequence. It just goes from 000-idle to 001-first frame to back to 000-idle when fired.

Is there anything I can do, or is this a problem with the engine itself?


Tue Jun 05, 2012 8:51 pm
Profile YIM
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Animations for non-automatic weapons?
Weapons are hardcoded to use only 2 frames. The first when not firing and the second for firing.

A workaround for this is to give it an attachable and animate it via lua.


Tue Jun 05, 2012 10:12 pm
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Animations for non-automatic weapons?
Annoying. Do you have any simple examples of that to hand? I see the SAW RULAS has an animated attachable, but I don't see how the script triggers the animation.


Tue Jun 05, 2012 10:22 pm
Profile YIM
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Animations for non-automatic weapons?
The animation on the RULAS was just an ini attachable that was always animated. No lua involved with it.

If you want something like where the weapon is animated when firing or you want to specifically change it to certain frames then you have to use lua. But if it's something that's constantly animated no matter, just use ini.


Wed Jun 06, 2012 12:09 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Animations for non-automatic weapons?
The idea is to have part of the plasma weapons 'heat up' when fired, then fade back to normal. I have the attachables sprited, attached, and ready to go, just need a script to make them animate properly when the weapon fires.


Wed Jun 06, 2012 1:28 am
Profile YIM

Joined: Fri Sep 10, 2010 1:48 am
Posts: 666
Location: Halifax, Canada
Reply with quote
Post Re: Animations for non-automatic weapons?
If you just want it to run through the frames shouldn't it be something as simple as attaching a script like:

If you want it to go up then go back down through the frames then this should do that:


Keep in mind none of this has been tested or anything silly like that so I can't guarantee it'll work.


Wed Jun 06, 2012 4:17 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Animations for non-automatic weapons?
Getting it to animate 'normally' is as simple as setting the desired AnimDuration and AnimMode on the attachable itself. That's not the problem, because I don't want the attachable to animate normally. The problem is that the animation is meant to cycle once, when the gun fires.


Wed Jun 06, 2012 8:45 am
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.036s | 13 Queries | GZIP : Off ]