Skip to content

Commit e3ad5ce

Browse files
Merge pull request #304 from InvalidArgument3/roid-resurrection
the last functional roid spawning in singleplayer
2 parents 73d574c + 1d7a195 commit e3ad5ce

5 files changed

Lines changed: 473 additions & 768 deletions

File tree

Dynamic Asteroids/Data/Scripts/DynamicAsteroids/AsteroidEntities/AsteroidEntity.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ public class AsteroidEntity : MyEntity, IMyDestroyableObject {
8787
public static AsteroidEntity CreateAsteroid(Vector3D position, float size, Vector3D initialVelocity, AsteroidType type, Quaternion? rotation = null, long? entityId = null) {
8888
var ent = new AsteroidEntity();
8989
try {
90-
// Only set EntityId if we're the server
91-
if (entityId.HasValue && MyAPIGateway.Session.IsServer)
90+
if (entityId.HasValue)
9291
ent.EntityId = entityId.Value;
9392

9493
var massRange = AsteroidSettings.MinMaxMassByType[type];

Dynamic Asteroids/Data/Scripts/DynamicAsteroids/AsteroidEntities/AsteroidSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public static class AsteroidSettings
2424
public static int SaveStateInterval = 600;
2525
public static int NetworkMessageInterval = 60;
2626
public static int SpawnInterval = 6;
27-
public static int UpdateInterval = 60; //TODO: remove it does nothing atm
28-
public static int NetworkUpdateInterval = 120; //this is the network metal pipe noise. or not actually what the FUCK is this load from
27+
public static int UpdateInterval = 60;
28+
public static int NetworkUpdateInterval = 6; //this is the network metal pipe noise
2929
public static int MaxAsteroidCount = 20000;
30-
public static int MaxAsteroidsPerZone = 500;
30+
public static int MaxAsteroidsPerZone = 100;
3131
public static int MaxTotalAttempts = 100;
3232
public static int MaxZoneAttempts = 50;
3333
public static double ZoneRadius = 10000.0;

0 commit comments

Comments
 (0)