mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 00:32:43 +00:00
remove old commented-out code
This commit is contained in:
parent
74e0f09b71
commit
6f95a9882a
@ -94,12 +94,6 @@ namespace QSB.Animation.Player
|
||||
DebugLog.DebugWrite($"setting graphics...");
|
||||
_suitedGraphics = modelRoot.GetChild(1).gameObject;
|
||||
_unsuitedGraphics = modelRoot.GetChild(0).gameObject;
|
||||
|
||||
//var playerAnimController = body.GetComponent<PlayerAnimController>();
|
||||
//_suitedAnimController = playerAnimController._baseAnimController;
|
||||
//_unsuitedAnimController = playerAnimController._unsuitedAnimOverride;
|
||||
//_suitedGraphics = playerAnimController._suitedGroup;
|
||||
//_unsuitedGraphics = playerAnimController._unsuitedGroup;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -120,24 +114,7 @@ namespace QSB.Animation.Player
|
||||
public void InitRemote(Transform body)
|
||||
{
|
||||
InitCommon(body);
|
||||
|
||||
//var playerAnimController = body.GetComponent<PlayerAnimController>();
|
||||
//playerAnimController.enabled = false;
|
||||
|
||||
//playerAnimController._suitedGroup = new GameObject();
|
||||
//playerAnimController._unsuitedGroup = new GameObject();
|
||||
//playerAnimController._baseAnimController = null;
|
||||
//playerAnimController._unsuitedAnimOverride = null;
|
||||
//playerAnimController._rightArmHidden = false;
|
||||
|
||||
//var rightArmObjects = playerAnimController._rightArmObjects.ToList();
|
||||
//rightArmObjects.ForEach(rightArmObject => rightArmObject.layer = LayerMask.NameToLayer("Default"));
|
||||
|
||||
//body.Find("player_mesh_noSuit:Traveller_HEA_Player/player_mesh_noSuit:Player_Head").gameObject.layer = 0;
|
||||
//body.Find("Traveller_Mesh_v01:Traveller_Geo/Traveller_Mesh_v01:PlayerSuit_Helmet").gameObject.layer = 0;
|
||||
|
||||
SetAnimationType(AnimationType.PlayerUnsuited);
|
||||
|
||||
InitCrouchSync();
|
||||
InitAccelerationSync();
|
||||
ThrusterManager.CreateRemotePlayerVFX(Player);
|
||||
|
@ -124,38 +124,10 @@ namespace QSB.Player.TransformSync
|
||||
var REMOTE_Stick_Root = REMOTE_RoastingSystem.transform.Find("REMOTE_Stick_Root").gameObject;
|
||||
var REMOTE_Traveller_HEA_Player_v2 = REMOTE_Player_Body.transform.Find("REMOTE_Traveller_HEA_Player_v2").gameObject;
|
||||
|
||||
/*
|
||||
var REMOTE_Player_Body = new GameObject("REMOTE_Player_Body");
|
||||
|
||||
var REMOTE_PlayerCamera = new GameObject("REMOTE_PlayerCamera");
|
||||
REMOTE_PlayerCamera.transform.parent = REMOTE_Player_Body.transform;
|
||||
REMOTE_PlayerCamera.transform.localPosition = new Vector3(0f, 0.8496093f, 0.1500003f);
|
||||
|
||||
var REMOTE_RoastingSystem = new GameObject("REMOTE_RoastingSystem");
|
||||
REMOTE_RoastingSystem.transform.parent = REMOTE_Player_Body.transform;
|
||||
REMOTE_RoastingSystem.transform.localPosition = new Vector3(0f, 0.4f, 0f);
|
||||
|
||||
var REMOTE_Stick_Root = new GameObject("REMOTE_Stick_Root");
|
||||
REMOTE_Stick_Root.transform.parent = REMOTE_RoastingSystem.transform;
|
||||
REMOTE_Stick_Root.transform.localPosition = new Vector3(0.25f, 0f, 0.08f);
|
||||
REMOTE_Stick_Root.transform.localRotation = Quaternion.Euler(0f, -10f, 0f);
|
||||
*/
|
||||
|
||||
/*
|
||||
* SET UP PLAYER BODY
|
||||
*/
|
||||
|
||||
/*
|
||||
var player = Locator.GetPlayerTransform();
|
||||
var playerModel = player.Find("Traveller_HEA_Player_v2");
|
||||
|
||||
var REMOTE_Traveller_HEA_Player_v2 = Instantiate(playerModel);
|
||||
REMOTE_Traveller_HEA_Player_v2.transform.parent = REMOTE_Player_Body.transform;
|
||||
REMOTE_Traveller_HEA_Player_v2.transform.localPosition = new Vector3(0f, -1.03f, -0.2f);
|
||||
REMOTE_Traveller_HEA_Player_v2.transform.localRotation = Quaternion.Euler(-1.500009f, 0f, 0f);
|
||||
REMOTE_Traveller_HEA_Player_v2.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
|
||||
*/
|
||||
|
||||
Player.Body = REMOTE_Player_Body;
|
||||
|
||||
var localPlayerAnimController = Locator.GetPlayerBody().GetComponentInChildren<PlayerAnimController>(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user