Quick fix test

This commit is contained in:
sebastianhampel1 2023-07-14 19:35:15 -04:00
parent c365c8e543
commit 5f81e96eed
3 changed files with 9 additions and 6 deletions

View File

@ -206,7 +206,7 @@ Material:
- _StencilWriteMask: 6 - _StencilWriteMask: 6
- _StencilWriteMaskDepth: 8 - _StencilWriteMaskDepth: 8
- _StencilWriteMaskGBuffer: 14 - _StencilWriteMaskGBuffer: 14
- _StencilWriteMaskMV: 42 - _StencilWriteMaskMV: 40
- _SubsurfaceMask: 1 - _SubsurfaceMask: 1
- _SupportDecals: 1 - _SupportDecals: 1
- _SurfaceType: 0 - _SurfaceType: 0

View File

@ -1630,7 +1630,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
_steamAppID: 480 _steamAppID: 480
_serverBindAddress: 76561198308605766 _serverBindAddress: 76561199343328028
_port: 7770 _port: 7770
_maximumClients: 3188 _maximumClients: 3188
_peerToPeer: 1 _peerToPeer: 1

View File

@ -138,15 +138,17 @@ namespace Item
shootLight.gameObject.SetActive(true); shootLight.gameObject.SetActive(true);
// var projectile = Instantiate(projectilePrefab, bulletSpawnPoint); // var projectile = Instantiate(projectilePrefab, bulletSpawnPoint);
var projectile = Instantiate(projectilePrefab, bulletSpawnPoint); var projectile = Instantiate(projectilePrefab);
projectile.transform.position = bulletSpawnPoint.transform.position;
projectile.transform.rotation = bulletSpawnPoint.transform.rotation;
projectile.transform.localScale =bulletSpawnPoint.transform.localScale;
InstanceFinder.ServerManager.Spawn(projectile); //var projectile = Instantiate(projectilePrefab, bulletSpawnPoint); InstanceFinder.ServerManager.Spawn(projectile); //var projectile = Instantiate(projectilePrefab, bulletSpawnPoint);
//InstanceFinder.ServerManager.Spawn(projectile); //InstanceFinder.ServerManager.Spawn(projectile);
/*projectile.transform.localPosition = Vector3.zero;
projectile.transform.localPosition = Vector3.zero;
projectile.transform.localEulerAngles = Vector3.zero; projectile.transform.localEulerAngles = Vector3.zero;
projectile.transform.localScale = Vector3.one; projectile.transform.localScale = Vector3.one;*/
var pRigid = projectile.GetComponent<Rigidbody>(); var pRigid = projectile.GetComponent<Rigidbody>();
/*Modified targeting system /*Modified targeting system
@ -181,6 +183,7 @@ namespace Item
pRigid.AddForce(launchVector, ForceMode.Impulse); pRigid.AddForce(launchVector, ForceMode.Impulse);
projectile.transform.parent = null; projectile.transform.parent = null;
shootEffect.Play(); shootEffect.Play();
} }