[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 1014: Undefined array key 3
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4130: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)
Battlezone Forums • Spinning barrels while firing?
Page 1 of 1

Spinning barrels while firing?

Posted: Tue Jul 17, 2012 5:54 pm
by Dianoga
Hey all. So it's been a while since I've worked on my mod but I've started to get the itch again to do something with it.

I made this model of a Heavy Chain turret for another game that I help out with. Since my mod is based off that game, I have been wanting to put it in my mod. The one thing I'd like to do though is make the barrels spin around as they shoot. I'm not sure how to do it if it can be done. I've been trying to think if there is another weapon that does this but so far I can't think of it. It's been a while since I've played the game even lol, time to get back into things I think.

I'll do some more searching around to see if this has already been answered but any info is much appreciated, thanks!

Image

Re: Spinning barrels while firing?

Posted: Tue Jul 17, 2012 7:43 pm
by MrTwosheds
The only fire initiated animation is "recoil", the question is, can you get it to spin your guns barrels? rather than just go backwards and forwards as it traditionally has. We await your answer with keen interest... :)

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 2:38 am
by General BlackDragon
To my knowledge, there is no way to make it do that upon firing.

The best thing you could do is make it spin with a runAnimation.

However, it would always be spinning, and would never, ever stop, even after you are long dead.

[GameObjectClass]
RunAnimation = "animation.XSI"
RunAnimIsLooped = true

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 3:48 am
by S.cavA.rmyG.en
i think this has ben done before but think it whent down whith the old BZU.
don't recall how/if they got it to work or just found a good way of faking the effect.
IRC it was all most 2 years ago.
i wish I could be more help but model making was never my cup of tea. :?

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 5:10 am
by DarkCobra262
I think GBD is right... I've wondered this myself but never asked. I wonder if there was someway for (I guess "Ken" or whoever that were/are Pandemic) to reverse engineer the recoil to work with spinning barrels, who knows... because I don't, obviously.

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 5:31 am
by Nielk1
Can't be done. Cleaver faking can get close-ish. Spinning draw geom muzzle flashes, animations running always or DLL triggered if the firing controls are "on", etc.

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 5:50 am
by Dianoga
Thanks for the info everyone. Much appreciated. :)

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 7:08 am
by Nielk1
Now I wonder if I can do this with DLL... I mean really do this.

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 1:52 pm
by MrTwosheds
I wonder if it is not possible to somehow point the recoil function to a different animation.

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 3:07 pm
by Red Spot
Couldnt you make 2 barrels each spinning in opposite direction, where it no longer matter if they reverse the animation ... perhaps it may give a good effect.

Re: Spinning barrels while firing?

Posted: Wed Jul 18, 2012 3:29 pm
by Nielk1
I am thinking of triggering an animation when the control state toggles from not firing to firing and visa verse. I forget if I can access that part of the controls data in the DLL though.