Data Realms Fan Forums http://45.55.195.193/ |
|
Making an Automatic Gun. Help? http://45.55.195.193/viewtopic.php?f=1&t=25598 |
Page 1 of 1 |
Author: | The_Blog [ Tue Sep 20, 2011 10:21 pm ] |
Post subject: | Making an Automatic Gun. Help? |
Hi everyone, I need some help. I just started to add some guns to Cortex Command. Now I just found out how to create a simple pistol, but I don't get how to make an automatic gun like an Assault Rifle or a Sub Machine Gun. Maybe some could help me. I'm from Germany so my English skills are not really well. The_Blog |
Author: | Duh102 [ Wed Sep 21, 2011 7:16 pm ] |
Post subject: | Re: Making an Automatic Gun. Help? |
There's a property in HeldDevice definitions named FullAuto, set it to 1: FullAuto = 1 |
Author: | The_Blog [ Wed Sep 21, 2011 7:50 pm ] |
Post subject: | Re: Making an Automatic Gun. Help? |
I got. *facepalm* Now my Gun works fine but I have another problem. When I try to make the offsets my gun started looking weird. I looked through some tutorials but I don't get it. Screenshot: Here is the .rte: http://www.mediafire.com/?4blkx551hz91x4l (This weapon sprite is not my work!) The_Blog |
Author: | Duh102 [ Thu Sep 22, 2011 5:26 am ] |
Post subject: | Re: Making an Automatic Gun. Help? |
The held offsets are somewhat guesswork, you just have to play with them until they look right. +x is right, +y is down for those. SpriteOffset, MuzzleOffset, and MagazineOffset, or whatever the last one is called, are more fomulaic. SpriteOffset is simply -(sprite width/2), -(sprite height/2), rounding to the nearest pixel. The other two are then however many pixels you need to go from the middle of the sprite to wherever on the gun you want them to go, using the same +x,+y for right,down. |
Author: | Asatruer [ Thu Sep 22, 2011 5:56 am ] |
Post subject: | Re: Making an Automatic Gun. Help? |
Azukki made a good offset tutorial here viewtopic.php?f=1&t=19092 |
Author: | The_Blog [ Thu Sep 22, 2011 4:28 pm ] |
Post subject: | Re: Making an Automatic Gun. Help? |
I created a new gun based on the SMG Code (MP5), to test it. But it's still weird. I understand what you said Duh 102 ,but in my case it seems to be inverted O.o So that +x and +y are left and up. Also there are some other strange things, but after a while I made it: |
Author: | The_Blog [ Thu Sep 22, 2011 11:28 pm ] |
Post subject: | Re: Making an Automatic Gun. Help? |
Ok Thanks. I think I got it now. The only thing I dont really get is StanceOffset and SharpStanceOffset. Cause you don't know on wich position your shoulder is. But that's not a great problem. But why this only applies wehn facing rightwards? It's looking like this now: |
Author: | Azukki [ Fri Sep 23, 2011 2:10 am ] |
Post subject: | Re: Making an Automatic Gun. Help? |
Because when you face leftward, it gets flipped. Increasing Xs would be leftward, rather than rightward, and vice versa. So it's not so much rightward, really, but forward, towards where the gun is pointed. But in the sprite, it points rightward. And the stances are just where the primary hand (holding the gun at the joint offset) is in relation to primary shoulder, I think. Sharp stance for when you're sharp aiming, the other stance when you're not. |
Author: | The_Blog [ Fri Sep 23, 2011 9:05 pm ] |
Post subject: | Re: Making an Automatic Gun. Help? |
AAAAAnnnnddd another problem ^^ I tried to make a Energy Pistol which has infinite ammo and more than one frame. Also the gun is supposed to have an Bullet with anown sprite. Not just a created line like in MOPixels. So I tried to make some with MOSParticle. It wasn't animated so I reduced it to just one frame. But the gun itself doesn't change theire frame. It just stuck in the first frame. Yes its firering but without the animation. Here is the .ini and the Files: Attachment: Attachment: Attachment: Attachment: Attachment: The_Blog |
Author: | Azukki [ Fri Sep 23, 2011 11:53 pm ] |
Post subject: | Re: Making an Automatic Gun. Help? |
Unless you do something special with it (scripting, or using the the ini variables used on the coalition gatling gun) the sprites of guns will always just animate between the first and second frame, with the second frame displaying for the frame of firing. You've got three frames, so that last one's doing nothing. It looks like what you're animating on the gun is really just a muzzle flash sort of effect, so maybe you should just make a custom muzzle flash attachable instead of animating the gun itself. |
Author: | The_Blog [ Sat Sep 24, 2011 1:17 am ] |
Post subject: | Re: Making an Automatic Gun. Help? |
Ya, sounds good. I will try it. Thanks for your help. Do you know why the animating of the Bullet doesn't work? |
Author: | Azukki [ Sat Sep 24, 2011 3:53 am ] |
Post subject: | Re: Making an Automatic Gun. Help? |
Well, you set the bullet to only have one frame, so that would stop any animation. Also if you want your bullet to rotate in relation to the direction it's flying, it can't be a MOSParticle anyways. Gotta be a MOSRotating, or something of 'greater complexity'. And that means it can't wound like bullets do. So that will be bit of a problem. The effect that I imagine you want is doable I'm sure, but not very easy. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |