// Copying what TAC does, add two hours of electricity per crew member to command pods @PART[bluedog*,Bluedog*]:HAS[#CrewCapacity[>0],@MODULE[ModuleCommand]:HAS[#minimumCrew[>0]],@RESOURCE[ElectricCharge]]:NEEDS[TacLifeSupport] { @RESOURCE[ElectricCharge] { @amount = 100 @amount *= #$/CrewCapacity$ @amount += 150 @amount += #$maxAmount$ @maxAmount = #$amount$ } } // 3 days power in the Block III service module (5 Kerbals) @PART[bluedog_Apollo_Block3_SM]:NEEDS[TacLifeSupport] { @description ^= :$:--TAC-LS-- Additional battery power supporting 5 kerbals for 3 days: @RESOURCE[ElectricCharge] { @amount = 5967 @maxAmount = 5967 } } // 3 days power for the LEM @PART[bluedog_LM_Ascent_Cockpit]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { @description ^= :$:--TAC-LS-- Additional battery power supporting 2 kerbals for 3 days: @RESOURCE[ElectricCharge] { @amount = 3413 @maxAmount = 3413 } RESOURCE { name = Food amount = 4.584 maxAmount = 4.584 } RESOURCE { name = Water amount = 3.023 maxAmount = 3.023 } RESOURCE { name = Oxygen amount = 466.779 maxAmount = 466.779 } } // Extra food for extended missions in the capsule, everything else in the service module. // Extend food, CO2, and waste to 15 days. @PART[bluedog_Apollo_CrewPod|bluedog_Apollo_CrewPod_5crew,bluedog_Gemini_Capsule,bluedog_Apollo_Block2_Capsule]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { @description ^= :$:--TAC-LS-- 15 day food supply.: @RESOURCE[Food] { @amount *= 5 @maxAmount *= 5 } @RESOURCE[CarbonDioxide] { @maxAmount *= 5 } @RESOURCE[Waste] { @maxAmount *= 5 } } @PART[bluedog_Gemini_EquipmentModule,bluedog_Apollo_Block2_SM]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { @description ^= :$:--TAC-LS-- Hydrogen-Oxygen fuel cell produces EC and drinking water for 15 days. Also provides additional storage for breathing oxygen.: !MODULE[ModuleResourceConverter] {} MODULE { name = TacGenericConverter ConverterName = Fuel Cell StartActionName = Start Fuel Cell StopActionName = Stop Fuel Cell ToggleActionName = Toggle Fuel Cell tag = Life Support GeneratesHeat = false conversionRate = 3.06 INPUT_RESOURCE { ResourceName = Oxygen Ratio = 0.007046915762 } INPUT_RESOURCE { ResourceName = Hydrogen Ratio = 0.01392577843 } // Meets 100% of Kerbals water needs, >180% of EC needs. DumpExcess enabled to assure both are produced. OUTPUT_RESOURCE { ResourceName = ElectricCharge Ratio = 0.0654430501 // compared to the Water Splitter, this produces 40% of the EC the Water Splitter consumes reversing the process, assuming Water Splitter Waste is Hydrogen. DumpExcess = true } OUTPUT_RESOURCE { ResourceName = Water Ratio = 0.0000111880787 DumpExcess = true } } } @PART[bluedog_Gemini_EquipmentModule]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { !MODULE[ModuleB9PartSwitch]:HAS[#moduleID[fuelCellSwitch]] {} } @PART[bluedog_Gemini_Service_A]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { @description ^= :$: Supports 2 kerbals.: // The large amount of Oxygen and Hydrogen needed for the fuel cells would be stored in liquid form. // To eliminate the need for an evaporator and avoid confusion with fuel they are added as a gas. // 1 liter of LOX/LH2 is about 800 liters of gas. Boiloff is not a factor in small insulated // containers like this. RESOURCE { name = Oxygen amount = 74.025 // x2 kerbals for 1 day @amount *= 12 // days (3 more in the pod) @amount += 4657.730 // fuel cell for 15 days maxAmount = #$amount$ } RESOURCE { name = Hydrogen amount = 9204.383 // fuel cell for 15 days maxAmount = #$amount$ } @MODULE[TacGenericConverter] { @conversionRate = 2.04 } } @PART[bluedog_Apollo_Block2_SM]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { @description ^= :$: Supports 3 kerbals.: RESOURCE { name = Oxygen amount = 111.038 // x3 kerbals for 1 day @amount *= 12 // days (3 more in the pod) @amount += 6986.595 // fuel cell for 15 days maxAmount = #$amount$ } RESOURCE { name = Hydrogen amount = 13806.574 // fuel cell for 15 days maxAmount = #$amount$ } @MODULE[TacGenericConverter] { @conversionRate = 3.06 } } @PART[bluedog_Skylab_Airlock,bluedog_Spacelab_Adapter]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { // Enough Life Support Supplies to Allow 6 kerbals to survive in orbit for 7 months // Each month is 30 6 hr kerbin days RESOURCE { name = Food amount = 460.688 maxAmount = 460.688 } RESOURCE { name = Water amount = 304.495 maxAmount = 304.495 } RESOURCE { name = Oxygen amount = 46635.638 maxAmount = 46635.638 } RESOURCE { name = CarbonDioxide amount = 0 maxAmount = 40283.188 } RESOURCE { name = WasteWater amount = 0 maxAmount = 387.765 } RESOURCE { name = Waste amount = 0 maxAmount = 41.895 } } @PART[bluedog_Saturn_VFB_MissionModule]:NEEDS[TacLifeSupport]:AFTER[TacLifeSupport] { // Enough Life Support Supplies to Allow 3 kerbals to survive for a year long flyby with a large amount of reserves // Flyby is 1 year, reserves last another year; // 2 years is 2 * 426 6-hr days // 1 Kerbin Year is 426.08 6hr days in 1x, the TAC interface uses 426.00 days for 1 year. // In 2.5x 1 Kerbin orbit of the sun is 673.57 6 hr days so these supplies should suffice. // 3 kerbals in flyby // Waste is vented to space RESOURCE { name = Food amount = 934.538 maxAmount = 934.538 } RESOURCE { name = Water amount = 617.689 maxAmount = 617.689 } RESOURCE { name = Oxygen amount = 94603.723 maxAmount = 94603.723 } }