-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More Subnautica Variables #1848
Open
gitmacer
wants to merge
8
commits into
antonpup:dev
Choose a base branch
from
gitmacer:SubnauticaUpdate
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3f462a6
Subnautica var update
gitmacer f38cd91
forgot the paused gamestate
gitmacer ac816b0
Use Enum
gitmacer fc35424
Use Enum for the Sub/Vehicle Type
gitmacer 193a012
Update QModManager Link
gitmacer 99e92f0
Update Default profile to use Enums
gitmacer 29ad5e3
Addd support for Prawn Thrust
gitmacer a597608
corrected default profile (TriggerMode)
gitmacer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
Project-Aurora/Project-Aurora/Profiles/Subnautica/GSI/Nodes/VehicleSubNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Aurora.Profiles.Subnautica.GSI.Nodes { | ||
public enum VehicleSubs | ||
{ | ||
None = -1, | ||
Base = 0, | ||
Cyclops = 1, | ||
Seamoth = 2, | ||
Prawn = 3 | ||
} | ||
public enum LightingStates | ||
{ //Meaning in Game: | ||
OnNoDanger = 0, //Operational = 0 | ||
OnDanger = 1, //Danger = 1 | ||
Off = 2 //Damaged = 2 | ||
} | ||
public enum CyclopsMotorModes | ||
{ | ||
Slow = 0, | ||
Standard = 1, | ||
Flank = 2 | ||
} | ||
public class VehicleSubNode : Node<VehicleSubNode> { | ||
public VehicleSubs In; | ||
|
||
public int Power; | ||
public int MaxPower; | ||
|
||
public bool FloodlightEnabled; | ||
|
||
public int VehicleHealth; | ||
public int VehicleMaxHealth; | ||
|
||
public int CrushDepth; | ||
|
||
public LightingStates LightState; | ||
|
||
public bool CyclopsWarning; | ||
public bool CyclopsFireSuppression; | ||
public bool CyclopsSilentRunning; | ||
|
||
public CyclopsMotorModes CyclopsMotorMode; | ||
|
||
public bool CyclopsEngineOn; | ||
public float CyclopsNoice; | ||
|
||
public float PrawnThrust; | ||
|
||
internal VehicleSubNode(string json) : base(json) { | ||
In = (VehicleSubs)GetInt("type"); | ||
|
||
Power = GetInt("power"); | ||
MaxPower = GetInt("max_power"); | ||
|
||
FloodlightEnabled = GetBool("floodlight"); | ||
|
||
LightState = (LightingStates)GetInt("lightstate"); | ||
|
||
VehicleHealth = GetInt("vehicle_health"); | ||
VehicleMaxHealth = GetInt("vehicle_max_health"); | ||
CrushDepth = GetInt("crush_depth"); | ||
|
||
CyclopsWarning = GetBool("cyclops_warning"); | ||
CyclopsFireSuppression = GetBool("cyclops_fire_suppression_state"); | ||
CyclopsSilentRunning = GetBool("cyclops_silent_running"); | ||
|
||
CyclopsMotorMode = (CyclopsMotorModes)GetInt("cyclops_motor_mode"); | ||
|
||
CyclopsEngineOn = GetBool("cyclops_engine_on"); | ||
CyclopsNoice = GetFloat("cyclops_noice_percent"); | ||
|
||
PrawnThrust = GetFloat("thrust"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if removing these is a good idea, because it breaks old profiles.