mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Added comment explaining why shadow barrier doesn't spawn sometimes.
This commit is contained in:
parent
b8a3a07565
commit
80d53bfbd2
1 changed files with 4 additions and 2 deletions
|
|
@ -77,7 +77,10 @@ namespace SceneManager
|
|||
|
||||
var barrierKey = Settings.barriers.Where(x => x.Key == barrierList.SelectedItem).FirstOrDefault().Key;
|
||||
var barrierValue = Settings.barriers[barrierKey].Name;
|
||||
shadowBarrier = new Object(barrierValue, MousePositionInWorld.GetPosition, rotateBarrier.Value); // Settings.barrierValues[barrierList.Index]
|
||||
shadowBarrier = new Object(barrierValue, MousePositionInWorld.GetPosition, rotateBarrier.Value);
|
||||
|
||||
// There arent enough available object handles in certain areas
|
||||
// The object gets spawned(sometimes) but doesn't get assigned a handle, so it returns a handle of 0 - Parks
|
||||
if (!shadowBarrier)
|
||||
{
|
||||
barrierMenu.Close();
|
||||
|
|
@ -90,7 +93,6 @@ namespace SceneManager
|
|||
shadowBarrier.IsCollisionEnabled = false;
|
||||
shadowBarrier.Opacity = 0.7f;
|
||||
|
||||
// Start with lights off for Parks's objects
|
||||
if (Settings.EnableAdvancedBarricadeOptions)
|
||||
{
|
||||
Rage.Native.NativeFunction.Natives.x971DA0055324D033(shadowBarrier, barrierTexture.Value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue