Jump to content

v23.5 BDArmory - want cannons 2 also use energy


RuralTowner

Recommended Posts

I'm not exactly a modder as such. I can accomplish basic CFG edits but little beyond. The issue I'm trying to figure out is simple I'm sure but can't get it to work...

Like the topic title says I'd like to make the cannon turret also draw energy in addition to its normal ammunition.

EDIT: Included entire CFG just in case more info was needed. The added portion will be in bold

Tried adding a new MODULE in the CFG...

PART

{

// Kerbal Space Program - Part Config

//

//

// --- general parameters ---

name = bahaTurret

module = Part

author = BahamutoD

// --- asset parameters ---

mesh = model.mu

rescaleFactor = 1.0

// --- node definitions ---

node_attach = 0.0, -0.2049, 0, 0, -1, 0, 0

// --- editor parameters ---

TechRequired = precisionEngineering

entryCost = 2100

cost = 950

category = Utility

subcategory = 0

title = 16in Cannon

manufacturer = Bahamuto Dynamics

description = A dual barrel 16in cannon used as the primary armament of Battleships and Dreadnoughts.

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

attachRules = 0,1,0,0,1

// --- standard part parameters ---

mass = 15.0

dragModelType = default

maximum_drag = 0.2

minimum_drag = 0.2

angularDrag = 2

crashTolerance = 25

maxTemp = 3600

stagingIcon = SOLID_BOOSTER

MODULE

{

name = BahaTurret

weaponType = cannon

rotationSpeed = 1.5

fireKey = mouse 0

fireSoundPath = BDArmory/Parts/m1Abrams/sounds/shot

overheatSoundPath = BDArmory/Parts/50CalTurret/sounds/turretOverheat

deployAnimName = deploy

hasFireAnimation = true

fireAnimName = fireAnim

yawTransformName = aimRotate

pitchTransformName = aimPitch

roundsPerMinute = 30

accuracy = 10

bulletMass = 6.2e-3

bulletVelocity = 250

ammoName = CannonShells

requestResourceAmount = 1

maxTargetingRange = 2000

bulletDrop = false // true

shellScale = 2.0

projectileColor = 255, 247, 0, 255

cannonShellPower = 3 // 5 // 8

cannonShellRadius = 1 // 2 // 30

minPitch = -8

maxPitch = 20

yawRange = -1

onlyFireInRange = true

instakill = false

maxHeat = 3600

heatPerShot = 100

heatLoss = 1000

}

MODULE

{

ammoName = ElectricCharge

requestResourceAmount = 350

}

RESOURCE

{

name = CannonShells

amount = 120 // 20

maxAmount = 120 // 20

}

}

...but no effect.

Edited by RuralTowner
Link to comment
Share on other sites

There's a sub-section for questions about modding, and this thread now occupies it. :D

Been awhile since was here and couldn't recall where that section was at. Thanks though.

As for what I'm looking to do? Would also be OK if was able make the cannon use ENERGY only (no cannon ammo) but act like the cannons, not lasers...I want shots to have travel time.

Link to comment
Share on other sites

Nevermind I found the problem. Since I have multiple versions of the turret (different sizes & shot power) I'd forgotten to edit the NAME in the GENERAL PARAMETERS section and when ship launched it would get overridden by another.

NOW it draws energy in addition to ammo.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...