Jump to content

[0.22] GatlingGun mod.


DYJ

Recommended Posts

Dont listen to those nobs mate. Thanks for sharing the file and the how to. Much apprecaited Lucchese

They obviously need to get out more!

Cheers

Thanks!

Maybe I should make a video.. :)

--Edit: Done.

I've also copied the part to scale it half its size.

To see if I can get the muzzlefx settings right for the small one, I would need to recompile DYJ's source but I can not because it gives me the error that PartReader does not excist in current content.

I hadn't even changed anything, how is this possible?

Edited by Lucchese
Link to comment
Share on other sites

You are looking at old code, PartReader was the old way off acessing stuff before .20 and no longer works. You should see it commented out in the bitbucket code, here is a direct link that works: https://bitbucket.org/Damnyoujapan/dyjlibrary/src/57ea7a70e20d5c9f34e1b4cfa310127adf8665c9/Class2.cs?at=default

If you have a soundfile you like and you know you are free to use I can just add that to the plugin, seems less messy than 2 plugins.

Link to comment
Share on other sites

Ah I see.

I took the source from the OP, you might want to update it? :)

About the sound: Exactly my idea :P

If necessary I think I could also make an addition to where the sound will not be played above the atmosphere, as we all know in space there is no sound, just let me know if you'd like that.

With DYJ's permission I could rebuild his source with this sound included for (his parts) completeness.

The sound I use I found here, it is licensed under the Creative Commons 0 License.

Link to comment
Share on other sites

I tried remapping the keybindings but this mod still doesn't work for me for some reason.

// Kerbal Space Program - Part Config

//

//

PART

{

// --- general parameters ---

name = Gau 19

module = Part

author = DYJ

// --- asset parameters ---

mesh = model.mu

scale = 1

rescaleFactor = 1

// --- node definitions ---

node_stack_bottom = 0.0, -0.53289, 0.0, 0.0, 1.0, 0.0

node_attach = 0.0, 0.0, -0.15366, 0.0, 0.0, 1.0, 1

// --- editor parameters ---

cost = 850

category = 0

subcategory = 0

title = Gau-19

manufacturer = Damned Industries

description = The GAU-19 is an electrically driven Gatling gun that fires the .50 BMG (12.7×99mm) cartridge at 1000RPM. In other words: PEWPEWPEW!

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision

attachRules = 1,1,1,1,0

// --- standard part parameters ---

mass = 1.0

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.3

angularDrag = 2

crashTolerance = 6

breakingForce = 50000

breakingTorque = 50000

maxTemp = 3400

MODULE

{

name = DYJMachinegun

ProjectileType = bullet

//keyFire = joystick button 0

keyFire = [0]

BulletMass = 0.45

BulletDrag = 0.03

BulletPower = 120

RocketPower = 10

recoilreductionfactor = 0.01

fireRate = 0.08

lackofkrakensbanontrailrendererscompensation = 0.1

rotationSpeed = 1200

isGatling = true

heatProduction = 800

ProjectileFileLoc = Parts/DYJgau19/Bullet/

CasingFileLoc = Parts/DYJgau19/Casing/

}

MODULE

{

name = ModuleAnimateHeat

ThermalAnim = Thermalanim

}

MODULE {

name = Sound

keyFire = [0] //

}

}

Is there something I missed (note the last part is from the sound attachment posted earlier).

Thanks in advance for any input.

Link to comment
Share on other sites

That is because [0] are three keys.

Remove everything behind the = and press the key you want to use to fire :)

Hmm, I thought [0] would tie it to NUMPAD 0

At any rate I changed the keybind to "z" (no quotes) and it's still not working *sigh*

I have everything installed as best I can tell.

gau19 folder @ Steam\SteamApps\common\Kerbal Space Program\Parts and the DYJlibrary.dll @ Steam\SteamApps\common\Kerbal Space Program\GameData

Maybe I am just SOL? *shrug*

Link to comment
Share on other sites

I just got this mod and I cant find the gau12 Gatling gun were is it

You need to download the gun itself too, my plugin above is only sound.

After installation of the gun itself, the part.cfg is located in GameData/DYJmisc/parts/gau19/part.cfg

Edited by Lucchese
Link to comment
Share on other sites

Hmm, I thought [0] would tie it to NUMPAD 0

At any rate I changed the keybind to "z" (no quotes) and it's still not working *sigh*

I have everything installed as best I can tell.

gau19 folder @ Steam\SteamApps\common\Kerbal Space Program\Parts and the DYJlibrary.dll @ Steam\SteamApps\common\Kerbal Space Program\GameData

Maybe I am just SOL? *shrug*

Why did you take the archive apart?

The file structure must look like this:

GameData/DYJmisc/DYJlibrary.dll

GameData/DYJmisc/parts/gau19/_All_cfg_files_

Long story short: Drop the DYJmisc folder from the archive in the GameData folder.

Edited by Lucchese
Link to comment
Share on other sites

Why did you take the archive apart?

The file structure must look like this:

GameData/DYJmisc/DYJlibrary.dll

GameData/DYJmisc/parts/gau19/_All_cfg_files_

Long story short: Drop the DYJmisc folder from the archive in the GameData folder.

I figured this out about 5 minutes after making the last post... I could have sworn I saw it say merge the part folder with parts and place the .dll in gamedata.

Well it all works now that it's back together again... go figure :rolleyes:

Thank you for the help Lucchese, and the sound mod to it too.

Link to comment
Share on other sites

I figured this out about 5 minutes after making the last post... I could have sworn I saw it say merge the part folder with parts and place the .dll in gamedata.

Well it all works now that it's back together again... go figure :rolleyes:

Thank you for the help Lucchese, and the sound mod to it too.

I have it from a very good source that "[0]" should work if you want numpad 0 as your firing key.

Excuse me :$ :)

Link to comment
Share on other sites

If there was another gatling gun that was either larger or smaller, yet with a circular or other-shapey barrel instead of the triangular, it would make for some variation, which a lot of people could use to adapt for their doomsday crafts or projects.

Edited by wolfiie
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...