Skip to content

Commit

Permalink
Add CameraUnchained mod
Browse files Browse the repository at this point in the history
  • Loading branch information
mindw committed Aug 8, 2020
1 parent 5e40180 commit ea43f8d
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
Binary file added CameraUnchained/CameraUnchained.dll
Binary file not shown.
48 changes: 48 additions & 0 deletions CameraUnchained/README.md
@@ -0,0 +1,48 @@
# Camera Unchained

[Battletech Mod][ModTek] Suppress forced camera movements. Simple focus on relevant events without blocking players ability to control camera.

## Details
Even with all camera settings disabled the game still takes away control of camera on certain events:
- Sensor lock
- Powering up
- Standing up
- Death
- Melee

This mod prevents that and will (by default, configurable) replace these forced camera movements with a simple focus on the relevant position (without disabling control or randomly changing rotation).
Some less intrusive camera events are whitelisted (by default, configurable), such as the initial objective focus, artillery cams and the mission ending ride.

### Full list of events that are supressed
You can play around with these and add some to the whitelist in settings if you like:
- "BattleTech.ActiveProbeSequence.FireWave"
- "BattleTech.ActorMovementSequence.OnBlipAcquired"
- "BattleTech.ActorMovementSequence.OnPlayerVisChanged"
- "BattleTech.ActorMovementSequence.ShowCamera"
- "BattleTech.ArtilleryObjectiveSequence.SetState"
- "BattleTech.ArtillerySequence.SetState"
- "BattleTech.AttackStackSequence.OnActorDestroyed"
- "BattleTech.AttackStackSequence.OnAttackBegin"
- "BattleTech.AttackStackSequence.OnChildSequenceAdded"
- "BattleTech.MechDFASequence.BuildMeleeDirectorSequence"
- "BattleTech.MechDFASequence.BuildWeaponDirectorSequence"
- "BattleTech.MechDFASequence.OnAdded"
- "BattleTech.MechDisplacementSequence.ShowCamera"
- "BattleTech.MechJumpSequence.ShowCamera"
- "BattleTech.MechMeleeSequence.BuildMeleeDirectorSequence"
- "BattleTech.MechMeleeSequence.BuildWeaponDirectorSequence"
- "BattleTech.MechMeleeSequence.FireWeaponsFinal"
- "BattleTech.MechMeleeSequence.OnAdded"
- "BattleTech.MechMortarSequence.SetState"
- "BattleTech.MechStandSequence.OnAdded"
- "BattleTech.MechStartupSequence.OnAdded"
- "BattleTech.MissionEndSequence.ShowCamera"
- "BattleTech.MultiSequence.FocusCamera"
- "BattleTech.SensorLockSequence.OnAdded"
- "BattleTech.ShowActorInfoSequence.OnChildSequenceAdded"
- "BattleTech.ShowActorInfoSequence.SetState"
- "BattleTech.StrafeSequence.SetState"

## Thanks
* pardeike
* HBS
@@ -0,0 +1,6 @@
{
"CameraConstants": {
"MinAngle": 5.0,
"MaxAngle": 85.0
}
}
27 changes: 27 additions & 0 deletions CameraUnchained/mod.json
@@ -0,0 +1,27 @@
{
"Name": "CameraUnchained",
"Enabled": true,

"Version": "1.9.1-001R",
"Description": "Suppress forced camera movements. Simple focus on relevant events without blocking players ability to control camera.",
"Author": "Mad",

"DLL": "CameraUnchained.dll",

"Settings": {
"EventWhitelist": [
"BattleTech.ArtilleryObjectiveSequence.SetState",
"BattleTech.ArtillerySequence.SetState",
"BattleTech.MechMortarSequence.SetState",
"BattleTech.MissionEndSequence.ShowCamera",
"BattleTech.MultiSequence.FocusCamera",
"BattleTech.StrafeSequence.SetState"
],
"FocusOnStandingUp": true,
"FocusOnPoweringUp": true,
"FocusOnMovement": true,
"FocusOnSensorLock": true,
"FocusOnMeleeTarget": true,
"FocusOnRangedTarget": true
}
}
1 change: 1 addition & 0 deletions CameraUnchained/modstate.json
@@ -0,0 +1 @@
{"Enabled":true}

0 comments on commit ea43f8d

Please sign in to comment.