|
Author
|
Topic: Rotating Gatling gun barrel / Lewis gun drum
|
Raider Pilot
|
posted 08-30- 09:58 PM
I was messing with dof's and came up with a dof that rotates only one way when you press the trigger and stops when you let go. There are only a couple of steps to do this.1. Add the following line to your "keyboard.inp" cmdRotateDrum = Bounce JoystickButton1 2. In the dof properties, set the "Range" "Max" to 360 and "Min" to 0 and add the following line to the dof PropList. (dofID 'rotate dofOsc (oscName 'rotate oscRuntime .2 oscParent 'XXXXX oscCmd 'cmdRotateDrum oscEndHidden 'YYYYY 'cmdRunReverse) Replace XXXXX with the Parent model of your plane Replace YYYYY with the name of the Barrel. That is it. If you need help with this let me know. I can send you a model that has it working if you need it. Or I could add it for you if you want. Just let me know. Good Luck. ------------------ Raider 33rd~GS Raiders Site
IP: Logged |
ArgonV Pilot
|
posted 08-30- 11:29 PM
You friggin genious!IP: Logged |
Nat Pilot
|
posted 08-31- 12:12 AM
Excellent, that means I can cut down to only a single barrel firing and get the proper ROF fro mthe Avanger Gatlin! (although the ROF was set right, because it cycles through 7 barrels the ROF is much to low)Thankyou thankyou thankyou ~Nat~ IP: Logged |
Nat Pilot
|
posted 08-31- 01:28 AM
duhhhh... sorry.. edited the wrong keyboard inp.. hehe[This message has been edited by Nat (edited 08-31-2000).] IP: Logged |
Sv Pilot
|
posted 08-31- 08:24 AM
Raider,Doesn't the drum rotate 360 degrees with each trigger pull? Also, what is the "oscEndHidden" for? I thought that if you add "bounce" to the command it meant to run the DOF over and over again while the key is pressed down. In your example, the DOF is a full 360 degrees, so each time a bullet is fired the drum rotates 360 degrees in .2 seconds, right? So is this some sort of clever optical illusion trick where the frame rates cut the fast rotation into a jittering effect resulting in the illusion that the drum is smoothly rotating a few degrees at a time? Would maybe doing a 350 or 370 degree DOF change the aparent speed of the drum? This is so damn awesome, I wanted that SE5a lewis drum to rotate since the day I put that sucker on the Foster mount  Raider, the OpenPlane R&D team  ------------------ -Sv =FC= WWI in SDOE!
IP: Logged |
Raider Pilot
|
posted 08-31- 09:57 AM
HeHe, Thanks guys. It is not an illusion. It takes .2 seconds to turn 360 degrees, but if you slow it down to 1 second to turn 360 degrees and hold the trigger down for .5 second the drum only turns half way and stops when you let go.The oscEndHidden seems to be the key. Without it, the drum will start to turn when you pull the trigger, but it keeps turning even when you let go. If you press the trigger again it will turn in reverse as long as you pull the trigger. When you let go it starts turning in the original direction again. I expected it to dissapear when I let go of the trigger. I thought we would have to have two barrels, one stationary and one that was hidden and would rotate, but this is even better. ------------------ Raider 33rd~GS Raiders Site
[This message has been edited by Raider (edited 08-31-2000).] IP: Logged |
Sv Pilot
|
posted 08-31- 10:48 AM
Wow Raider! Are you sure?!? Unbeleivable!Hey, can you texture the drum with the letter "E" or something so you can really see that it only turns a little bit? I am so amazed, how can this work? So you are saying the OpenPlane tries to turn the DOF 360 degrees in response to the command, but this process is stopped by another event fired when you remove your hand from the trigger? Or is the even fired each time a bullet is fired via teh bounce command? And why is "oscEndHidden" not working? This is what is used to hide gear at the end of their travel, if you "bounce" the gear command then do you think the gear will move in small steps? Wouldn't this simulate manual gear retraction? And the gear would never disappear, right? I gotta see this!  -Sv IP: Logged |
Raider Pilot
|
posted 08-31- 02:50 PM
????, Sv, my friend, I will send you my test plane. You sound about as suprised as I did. I expected to do a lot more work to get this to work. Check your mail in a couple of minutes  I don't want to distract you from your EIII work.
------------------ Raider 33rd~GS Raiders Site
IP: Logged |
Pete Hawk Pilot
|
posted 08-31- 06:53 PM
SV, the bounce command does work for gear, but if you bounce it, it'll start to retract, then when the key is let-go it goes back to full down. I tried it a few weeks ago.This avenger stuff you mentioned here Raider doesn't work on my Harrier for some reason. I've tried it and the gun keeps spinning on me. I'll tinker with it some more. IP: Logged |
Raider Pilot
|
posted 08-31- 09:12 PM
Funny, the three guys I thought would be most interested in this were Pete, Nat and Sv  Pete, the oscEndHidden has to be in the correct place. I found this out when working on the landing gear. Here you go, set your Max to 360 and plug this in the PropList. (dofID 'rotate dofOsc (oscName 'rotate oscRuntime .2 oscParent 'Harrier oscCmd 'cmdRotateDrum oscEndHidden 'gun3 'cmdRunReverse) You should be able to copy and paste it as is. Great work on the Harrier BTW, I am having a blast with it. ------------------ Raider 33rd~GS Raiders Site
[This message has been edited by Raider (edited 08-31-2000).] IP: Logged |
Sv Pilot
|
posted 08-31- 09:31 PM
Raider, you are AMAZING!!!! It works! And if you set the oscTime to like 1 second it moves nice and slow as well! You can even set it at like 20 seconds for precise control of the DOF! I don't know why or how this works, but it kicks total ass!It works with key assigments as well! This means you can now smoothly adjust gun convergence, or smoothly adjust anything! Basicaly, you have found a way to have a new kind of "incremental" DOF! I have had trouble getting it so that one key rotates it one way, and another key rotates it the other way. Each time I try I end up with the drum rotating forever, but at least in the correct direction related to the keyboard input... Great work Raider, this is huge! -Sv IP: Logged |
Nat Pilot
|
posted 08-31- 10:08 PM
hehhe.. set mine to .1 LOL doesn't look right otherwise, and hell, how fast do you reckon that Avenger spins to spit out 4200rounds per min? (and it does now it's set correctly at 1 gun)Really cool Raider, now with a little gun model adjustment it'll look even better on the A10 ------------------ JG3 "Naturlich" If you can't out run em.. <B>OUT GUN EM!</B> <B>Nats FS-SDOE Site</B> IP: Logged |
Raider Pilot
|
posted 08-31- 10:17 PM
Thanks guys, I am glad it is working for you.Nat, you can get the 4200 rounds per minute. Just have two guns in the same location. I think the max rate of fire in SDOE is 2100, so you could set each gun to 2100. If you have them alternate fire, it should look like 4200. I would really like to see that. That would be 70 rounds per second. That's a lota lead. ------------------ Raider 33rd~GS Raiders Site
IP: Logged |
Nat Pilot
|
posted 09-01- 06:51 AM
Raider, do you mean by sycning the guns so that both fire at once? I previously used all 7 barrels fireing one after the other in a circular motion, gave the effect of spinning but the problem is that barrel 1 regardless of ROF has to wait until barrel 7 had fired before firing again, they can be made to fire all at the same time, but then, if I put 2 barrels at 2100rpm in the same location firing both at the same time, doesn't that mean I could just aswell make the warhead bigger cause 2 bullets would follow the same path? lolOfcourse I could slightly offset gun2.. and it would give the effect of a bigger muzzle flash also... hhhmmmm.... worth a try right  IP: Logged |
Pete Hawk Pilot
|
posted 09-01- 08:19 AM
Thanks Raider, thats amazing it works! Very nice. I kept my same info in the DOF I had and just moved the OscEndHidden like you said.  [This message has been edited by Pete Hawk (edited 09-01-2000).] IP: Logged |
Raider Pilot
|
posted 09-01- 12:36 PM
Sorry Nat, I thought that would work. I can't get it to stay in sync (alternate). I pull the trigger and both guns fire at once, let go and fire again and the one gun fires a little ahead of the other. I really thought there was a way to get one gun to fire and then the other, with both set at 2100 giving you 4200. I will keep working on it.------------------ Raider 33rd~GS Raiders Site
IP: Logged |