Per-map parallax support (#9786)
* Per-map parallax support * Comments for future sloth * c * bet * Fix exception * VV support * Fix parallax * mem * weightless sounds * Gravity stuff * placeholder coz im too lazy to stash don't @ me son * decent clouds * sky * Fast parallax * Imagine spelling * Loicense * perish * Fix weightless status Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Content.Shared.Movement.Components
|
||||
var gridId = transform.GridUid;
|
||||
|
||||
if ((entityManager.TryGetComponent<GravityComponent>(transform.GridUid, out var gravity) ||
|
||||
entityManager.TryGetComponent(transform.MapUid, out gravity)) && gravity.Enabled)
|
||||
entityManager.TryGetComponent(transform.MapUid, out gravity)) && gravity.EnabledVV)
|
||||
return false;
|
||||
|
||||
if (gridId == null)
|
||||
@@ -67,7 +67,7 @@ namespace Content.Shared.Movement.Components
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!entityManager.GetComponent<GravityComponent>(grid.GridEntityId).Enabled)
|
||||
if (!entityManager.GetComponent<GravityComponent>(grid.GridEntityId).EnabledVV)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user