Rotational bundles in Handweapon files

Ask questions, discuss ideas, get answers
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Rotational bundles in Handweapon files

Post 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! :)
Walk quietly and carry a sniper rifle
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Rotational bundles in Handweapon files

Post 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 )
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Diamondback
Posts: 617
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Rotational bundles in Handweapon files

Post by Diamondback »

Vilespring wrote:I think the only way is making an animation for that.
See my Strasbourg map project here.
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Rotational bundles in Handweapon files

Post 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
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Rotational bundles in Handweapon files

Post by Swaffy »

If that worked, I would have made a spinning hat for the US team.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Rotational bundles in Handweapon files

Post 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.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Rotational bundles in Handweapon files

Post 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:
Walk quietly and carry a sniper rifle
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Rotational bundles in Handweapon files

Post by BotHunter »

how would I make an animation for this?
Walk quietly and carry a sniper rifle
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Rotational bundles in Handweapon files

Post by Swaffy »

Not even I know how to edit animations, bro.
O.o
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Rotational bundles in Handweapon files

Post by BotHunter »

:) Thats kinda what I know too :) I guess i'll just work on it ;)
Walk quietly and carry a sniper rifle
Post Reply