diff --git a/GameData/KCS/Patches/SciencePartsAddControllers.cfg b/GameData/KCS/Patches/SciencePartsAddControllers.cfg deleted file mode 100644 index 39ec142..0000000 --- a/GameData/KCS/Patches/SciencePartsAddControllers.cfg +++ /dev/null @@ -1,101 +0,0 @@ -// This file adds controller modules to the thermometer, accelerometer, barometer and gravimeter. -// KCS won't work without this file. - -// Ship controller. -@PART[sensorBarometer] -{ - %MODULE[ModuleShipController] - { - moduleName = ModuleShipController - } -} - -// Weapon controller. -@PART[sensorThermometer] -{ - %MODULE[ModuleWeaponController] - { - moduleName = ModuleWeaponController - - RESOURCE - { - name = ElectricCharge - rate = 0.05 - } - } - - %MODULE[ModulePartVariants] - { - moduleName = ModulePartVariants - baseVariant = Missile - uDarkpleDragCubes = false - - %VARIANT[Missile] - { - name = Missile - displayName = Missile - primaryColor = #FFC456 - secondaryColor = #A5A5A5 - } - %VARIANT[Rocket] - { - name = Rocket - displayName = Rocket - primaryColor = #87A046 - secondaryColor = #A5A5A5 - } - %VARIANT[Firework] - { - name = Firework - displayName = Firework - primaryColor = #D14D51 - secondaryColor = #A5A5A5 - } - /*%VARIANT[Bomb] - { - name = Bomb - displayName = Bomb - primaryColor = #709DD1 - secondaryColor = #A5A5A5 - } - %VARIANT[MassCannon] - { - name = MassCannon - displayName = Mass Cannon - primaryColor = #9071B7 - secondaryColor = #A5A5A5 - }*/ - } -} - -// Escape pod controller. -@PART[sensorAccelerometer] -{ - %MODULE[ModuleEscapePodGuidance] - { - moduleName = ModuleEscapePodGuidance - RESOURCE - { - name = ElectricCharge - rate = 0.05 - } - } -} - -// Combat robotics controller. -@PART[sensorGravimeter] -{ - %MODULE[ModuleCombatRobotics] - { - moduleName = ModuleCombatRobotics - } - %MODULE[ModuleRoboticController] - { - moduleName = ModuleRoboticController - RESOURCE - { - name = ElectricCharge - rate = 0.1 - } - } -} \ No newline at end of file diff --git a/GameData/KCS/SciencePartsReplaceModelsAndNames.cfg b/GameData/KCS/SciencePartsReplaceModelsAndNames.cfg deleted file mode 100644 index f848329..0000000 --- a/GameData/KCS/SciencePartsReplaceModelsAndNames.cfg +++ /dev/null @@ -1,185 +0,0 @@ -// This file replaces the models and names of the thermometer, accelerometer, barometer and gravimeter to suit their functions in KCS. -// If you don't want these changes, you can delete this file or remove .cfg from the file extension. - -// Ship controller. -@PART[sensorBarometer] -{ - !mesh = DELETE - !MODEL {} - MODEL - { - model = KCS/Parts/ShipController/modelMedium - } - !node_stack_top = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 2 - node_stack_bottom = 0.0, -0.263566, 0.0, 0.0, -1.0, 0.0, 0 - node_stack_top2 = 0.0, 0.263566, 0.0, 0.0, 1.0, 0.0, 0 - node_attach = 0.0, -0.263566, 0.0, 0.0, -1.0, 0.0, 0 - - title = KCS-2 Ship Controller - manufacturer = Halcyon Kore Aerospace - description = The Ship AI Controller is used to control the overall vessel. - cost = 1000 - mass = 0.05 - crashTolerance = 50 - category = Control - attachRules = 1,1,1,1,0 - PhysicsSignificance = 1 - - %MODULE[ModulePartVariants] - { - baseVariant = General - uDarkpleDragCubes = false - VARIANT - { - name = General - displayName = General - primaryColor = #5068AF - secondaryColor = #A5A5A5 - TEXTURE - { - mainTextureURL = KCS/Parts/ShipController/ShipControllerMediumTex - shader = KSP/Emissive Diffuse - } - GAMEOBJECTS - { - MediumCore = true - Medium.collider = true - MediumCapTop = true - MediumCapBottom = false - MediumBoltsTop = false - MediumBoltsBottom = true - } - } - } -} - -// Weapon controller. -@PART[sensorThermometer] -{ - !mesh = DELETE - !MODEL {} - MODEL - { - model = KCS/Parts/MissileController/model - } - node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, -1.0 - title = KCS-1 Weapon Controller - manufacturer = Halcyon Kore Aerospace - description = The KCS-1 Weapon Controller uses advanced polymechanical transfiguration to configure itself for the operation of various types of weapons, including missiles, fireworks, rockets, bombs and mass cannons. - cost = 200 - mass = 0.01 - crashTolerance = 50 - category = Control - attachRules = 0,1,0,1,1 - PhysicsSignificance = 1 - - %MODULE[ModulePartVariants] - { - moduleName = ModulePartVariants - baseVariant = Missile - uDarkpleDragCubes = false - - %VARIANT[Missile] - { - name = Missile - displayName = Missile - primaryColor = #FFC456 - secondaryColor = #A5A5A5 - TEXTURE - { - mainTextureURL = KCS/Parts/MissileController/MissileControllerTex - shader = KSP/Emissive Diffuse - } - } - %VARIANT[Rocket] - { - name = Rocket - displayName = Rocket - primaryColor = #87A046 - secondaryColor = #A5A5A5 - TEXTURE - { - mainTextureURL = KCS/Parts/MissileController/MissileControllerTexLightGreen - shader = KSP/Emissive Diffuse - } - } - %VARIANT[Firework] - { - name = Firework - displayName = Firework - primaryColor = #D14D51 - secondaryColor = #A5A5A5 - TEXTURE - { - mainTextureURL = KCS/Parts/MissileController/MissileControllerTexRed - shader = KSP/Emissive Diffuse - } - } - /*%VARIANT[Bomb] - { - name = Bomb - displayName = Bomb - primaryColor = #709DD1 - secondaryColor = #A5A5A5 - TEXTURE - { - mainTextureURL = KCS/Parts/MissileController/MissileControllerTexLightBlue - shader = KSP/Emissive Diffuse - } - } - %VARIANT[MassCannon] - { - name = MassCannon - displayName = Mass Cannon - primaryColor = #9071B7 - secondaryColor = #A5A5A5 - TEXTURE - { - mainTextureURL = KCS/Parts/MissileController/MissileControllerTexPurple - shader = KSP/Emissive Diffuse - } - }*/ - } -} - -// Escape pod controller. -@PART[sensorAccelerometer] -{ - !mesh = DELETE - !MODEL {} - MODEL - { - model = KCS/Parts/EscapePodController/model - } - node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, -1.0 - title = KCS-3 Escape Pod Controller - manufacturer = Halcyon Kore Aerospace - description = The Escape Pod controller is used to run escape sequences. - cost = 200 - mass = 0.01 - crashTolerance = 50 - category = Control - attachRules = 0,1,0,1,1 - PhysicsSignificance = 1 -} - -// Combat robotics controller. -@PART[sensorGravimeter] -{ - !mesh = DELETE - !MODEL {} - MODEL - { - model = KCS/Parts/KAL500/KAL500 - } - node_attach = 0.0, 0.0, 0.0, 0.0, 0.0, -0.5 - title = KAL-500 Combat Robotics Controller - manufacturer = Moving Parts Experts Group - description = The KAL-500 triggers required actions on entering combat situations. - cost = 500 - mass = 0.005 - PhysicsSignificance = 1 - crashTolerance = 50 - category = Robotics - attachRules = 0,1,0,0,0 -} \ No newline at end of file diff --git a/Source/KerbalCombatSystems/ObjectTracking.cs b/Source/KerbalCombatSystems/ObjectTracking.cs index 9f717ba..dcd45b5 100644 --- a/Source/KerbalCombatSystems/ObjectTracking.cs +++ b/Source/KerbalCombatSystems/ObjectTracking.cs @@ -34,13 +34,13 @@ public override string GetInfo() return output.ToString(); } - public override void OnStart(StartState state) + /*public override void OnStart(StartState state) { if (HighLogic.LoadedSceneIsEditor) GameEvents.onEditorVariantApplied.Add(OnVariantApplied); SpinAnims = part.FindModulesImplementing(); - } + }*/ private void OnVariantApplied(Part appliedPart, PartVariant variant) { diff --git a/Source/KerbalCombatSystems/WeaponController.cs b/Source/KerbalCombatSystems/WeaponController.cs index 3a480b2..68dd8f7 100644 --- a/Source/KerbalCombatSystems/WeaponController.cs +++ b/Source/KerbalCombatSystems/WeaponController.cs @@ -10,7 +10,7 @@ namespace KerbalCombatSystems public class ModuleWeaponController : PartModule { const string weaponGroupName = "Weapon Settings"; - const string missileGroupName = "Missile Guidance"; + const string missileGroupName = "Missile Settings"; const string rocketGroupName = "Rocket Settings"; const string FireworkGroupName = "Firework Settings"; const string MCGroupName = "Mass Cannon Settings";