Page 1 of 3

Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 3:33 am
by BotHunter
Hello All! I've been trying to make a mini gun recently but I can't get the barrel to spin.
here is some code that I added to the BAR1918 Objects file.

Code: Select all

ObjectTemplate.create RotationalBundle MinigunBarrel
ObjectTemplate.networkableInfo HandFireArmsInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.setGeometry Minigun_Brle_m1
rem -----------------------------------
rem -----------------------------------
ObjectTemplate.setMaxSpeed 0/0/5000
ObjectTemplate.setAcceleration 0/0/5000
ObjectTemplate.setInputToRoll c_PIFire


this adds the barrel mesh but it won't spin when you fire. what am I doing wrong?
Thanks! :)

Re: Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 5:08 am
by Vilespring
I have noticed that myself. When I was screwing around, debug modding desert combat, I added the minigun to the Remington shotgun, and the barrel didn't turn. I think the only way is making an animation for that.

(I was seriously going to post this exact thing too today, :D )

Re: Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 5:12 am
by Diamondback
Vilespring wrote:I think the only way is making an animation for that.

Re: Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 6:03 am
by freddy
not sure but dont you need something like
ObjectTemplate.setMinRotation -0.3/0/-3000
ObjectTemplate.setMaxRotation 0.3/0/5000

and maybe
ObjectTemplate.setAcceleration 500/0/1000

oh and

ObjectTemplate.setAutomaticReset 1

Re: Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 1:53 pm
by Swaffy
If that worked, I would have made a spinning hat for the US team.

Re: Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 4:08 pm
by Vilespring
freddy wrote:not sure but dont you need something like
ObjectTemplate.setMinRotation -0.3/0/-3000
ObjectTemplate.setMaxRotation 0.3/0/5000
No, If you don't define mins and maxes, it will just spin indefinitely, which is good for gattling gun barrels.

Re: Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 5:16 pm
by BotHunter
I copied this from the Hind gunner in desert combat. and that worked just fine, I have no real clue how to do this other than what I've just done :roll:

Re: Rotational bundles in Handweapon files

Posted: Sun Mar 31, 2013 5:17 pm
by BotHunter
how would I make an animation for this?

Re: Rotational bundles in Handweapon files

Posted: Tue Apr 02, 2013 6:05 am
by Swaffy
Not even I know how to edit animations, bro.
O.o

Re: Rotational bundles in Handweapon files

Posted: Tue Apr 02, 2013 4:00 pm
by BotHunter
:) Thats kinda what I know too :) I guess i'll just work on it ;)