Skip to content

Commit

Permalink
Add ejection seat functionality (#2767)
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav authored Feb 18, 2023
1 parent a9703df commit 87fed76
Show file tree
Hide file tree
Showing 15 changed files with 1,495 additions and 7 deletions.
2 changes: 1 addition & 1 deletion GameData/RealismOverhaul/EVA.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
%thermalMassModifier = 4
%emissiveConstant = 0.89
%absorptiveConstant = 0.25
%gTolerance = 20
%gTolerance = 25
%maxPressure = 20000
!breakingForce = DEL
!breakingTorque = DEL
Expand Down
24 changes: 24 additions & 0 deletions GameData/RealismOverhaul/Parts/AdvCapsule/ROAdvCapsule.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,30 @@ PART
maxAmount = 12
}
}

MODULE
{
name = ModuleROEjectionSeat
maxEjectSpeed = 900
maxEjectAltitude = 30000

SEAT // left
{
colliderOffset = -0.8, 0.35, -1.35
colliderRotAngles = -70.0, 0.0, 18.0
forceDir = -0.35, 0.4, -1.0
ejectDelay = 0
}

SEAT // right
{
colliderOffset = 0.8, 0.35, -1.35
colliderRotAngles = -70.0, 0.0, -18.0
forceDir = 0.35, 0.4, -1.0
ejectDelay = 0
}
}

}

@PART[ROAdvCapsule]:FOR[RealismOverhaul]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@ PART
evaOnlyStorage = True
storageRange = 1.3
}

MODULE
{
name = ModuleROEjectionSeat
mass = 0.08

SEAT
{
colliderOffset = 0.0, 0.45, -1.6
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}

MODULE
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ PART
evaOnlyStorage = True
storageRange = 1.3
}
MODULE
{
name = ModuleROEjectionSeat
mass = 0.04
SEAT
{
colliderOffset = 0.0, 0.55, -1.35
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
MODULE
{
Expand Down
13 changes: 13 additions & 0 deletions GameData/RealismOverhaul/Parts/X1Cockpit/X1Cockpit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ PART
storageRange = 1.3
}

MODULE
{
name = ModuleROEjectionSeat
mass = 0.04

SEAT
{
colliderOffset = 0.0, 0.45, -0.9
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}

// Ejection seat
MODULE:NEEDS[VanguardTechnologies]
{
Expand Down
13 changes: 13 additions & 0 deletions GameData/RealismOverhaul/RO_SuggestedMods/SXT/RO_SXT_Command.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,19 @@
amount = 225
maxAmount = 225
}
MODULE
{
name = ModuleROEjectionSeat
mass = 0.08
IsEnabled = false

SEAT
{
colliderOffset = 0.0, 0.25, -1.4
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
}

@INTERNAL[kondorcockpit]:FOR[RealismOverhaul]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,101 @@
}
}

@PART[Mark1Cockpit]:FOR[RealismOverhaul]
{
MODULE
{
name = ModuleROEjectionSeat
mass = 0.04

SEAT
{
colliderOffset = 0.0, 0.6, -1.05
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
}

@PART[Mark2Cockpit]:FOR[RealismOverhaul]
{
MODULE
{
name = ModuleROEjectionSeat
mass = 0.04

SEAT
{
colliderOffset = 0.0, 0.2, -1.3
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
}

@PART[mk2Cockpit_Standard]:FOR[RealismOverhaul]
{
MODULE
{
name = ModuleROEjectionSeat
mass = 0.08

SEAT
{
colliderOffset = 0.0, 0.85, -1.5
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
}

@PART[mk2Cockpit_Inline]:FOR[RealismOverhaul]
{
MODULE
{
name = ModuleROEjectionSeat
mass = 0.08

SEAT
{
colliderOffset = 0.0, 0.75, -2.25
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
}

@PART[RO-Mk1Cockpit]:FOR[RealismOverhaul]
{
MODULE
{
name = ModuleROEjectionSeat
mass = 0.08

SEAT
{
colliderOffset = 0.0, 1.1, -1.35
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
}

@PART[RO-Mk1CockpitInline]:FOR[RealismOverhaul]
{
MODULE
{
name = ModuleROEjectionSeat
mass = 0.08

SEAT
{
colliderOffset = 0.0, 0.65, -2.0
colliderRotAngles = -90.0, 0.0, 0.0
forceDir = 0.0, 0.15, -1.0
}
}
}

// INTERNAL node manipulation
+INTERNAL[mk1CockpitInternal]:FOR[RealismOverhaul]
Expand Down
Loading

0 comments on commit 87fed76

Please sign in to comment.