Commit graph

17 commits

Author SHA1 Message Date
169719ba4b - Add an extension method to get all inventories.
- Update README and TODO
2025-09-14 17:26:17 +02:00
16040e5f5a Refactor missile launch system and add abort functionality
- Updated `State` enum to remove `FILLING_TANK` and add `ABORTING`.
- Modified `Launcher` constructor to include `IMyProjector`.
- Added `AbortLaunching` method to handle abort state.
- Enhanced `UpdateState` to manage the new `ABORTING` state.
- Introduced `CheckMissileBuilt` method for missile readiness checks.
- Increased `HYDRO_TANK_FILLED_PERCENT` from 40 to 60.
- Changed `GRID_PREFIX` from `[PML]` to `[Mimine]`.
- Updated program's frequency from `Update10` to `Update100`.
- Adjusted `ResetToNominal` to call `AbortLaunching` for all launchers.
2025-09-14 17:25:14 +02:00
b1ac491186 Enhance missile behavior and state management
- Introduced new constants for missile control: `DISTANCE_BEFORE_ROTATING` and `ROTATION_SPEED`.
- Expanded `State` enum to include `TURNING` and `ACCELERATING`.
- Added variables for tracking missile position, speed, and acceleration.
- Implemented logic for initializing backward thruster and gyroscope.
- Added `CheckEnemies` method to switch to AI mode upon enemy detection.
- Introduced `Detonate` method for centralized warhead detonation logic.
- Updated `DistanceFromLaunch` property for accurate distance calculation.
2025-09-14 17:24:46 +02:00
3236ccb05f New project to manage La Mimine frigate 2025-09-14 17:19:16 +02:00
d0be374ca8 Forget a file 2025-08-30 23:40:05 +02:00
6bd32cf48d New project: PML.
To manage the spaceship "Pifou Missile Launcher".
2025-08-30 23:39:00 +02:00
736aec97db Add missile thruster checks and update configurations
- Implemented validation for missile thrusters, halting if none are found.
- Increased `HYDRO_TANK_FILLED_PERCENT` from 20 to 40.
- Changed runtime update frequency from `Update100` to `Update10`.
2025-08-30 23:31:22 +02:00
0cbd5370f9 Enhance missile control logic in Program.cs
Updated constants for delay and auto-destruction times.
Added checks for required components in FindElements method
with improved error handling. Introduced new methods for
auto-destruction and enemy detection. Modified state update
logic to ensure correct missile behavior based on component
availability and current state.
2025-08-30 23:30:07 +02:00
5dc10e361b Check if missiles doors are open before launching missiles 2025-08-23 21:44:45 +02:00
7656b66348 Cleaning 2025-08-22 23:31:32 +02:00
ebf5477ad1 Use the new utilities functions and add the STOP command 2025-08-22 23:29:17 +02:00
0aa3ae21d2 Set some field as readonly 2025-08-22 23:28:20 +02:00
482f5a9d7d Update dependencies 2025-08-22 23:27:39 +02:00
ea2b20b42c Add some utility functions to find blocks and groups. 2025-08-22 23:24:31 +02:00
93b3689567 Lot of changes (Update to MDK2) 2024-11-03 23:45:58 +01:00
6b3ee666d6 Add missile launcher and missile controller projects 2024-05-08 21:20:58 +02:00
1d890b728a First commit 2023-09-08 23:45:14 +02:00