Add timed spawner for Xeno AI and markers

This commit is contained in:
Víctor Aguilera Puerto
2020-06-24 17:50:46 +02:00
parent d12a6bd9cf
commit ca1fb126e7
5 changed files with 43 additions and 2 deletions

View File

@@ -178,6 +178,8 @@ namespace Content.Client
"FlashExplosive",
"FlashProjectile",
"Utensil",
"UnarmedCombat",
"TimedSpawner",
};
foreach (var ignoreName in registerIgnore)

View File

@@ -28,10 +28,10 @@
netsync: false
visible: false
sprite: Objects/markers.rsi
state: spawner_rifle
state: spawner_ai
- type: Icon
sprite: Objects/markers.rsi
state: spawner_rifle
state: spawner_ai
- type: TimedSpawner
prototypes:
- HumanMob_Spirate
@@ -40,3 +40,24 @@
intervalSeconds: 60
minimumEntitiesSpawned: 1
maximumEntitiesSpawned: 5
- type: entity
name: Xeno AI Timed Spawner
id: XenoAITimedSpawner
parent: BaseTimedSpawner
components:
- type: Sprite
netsync: false
visible: false
sprite: Objects/markers.rsi
state: spawner_xenoai
- type: Icon
sprite: Objects/markers.rsi
state: spawner_xenoai
- type: TimedSpawner
prototypes:
- XenoMob_Content
chance: 0.85
intervalSeconds: 30
minimumEntitiesSpawned: 2
maximumEntitiesSpawned: 4

View File

@@ -367,6 +367,15 @@
]
]
},
{
"name": "spawner_ai",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "spawner_grenade",
"directions": 1,
@@ -456,6 +465,15 @@
1.0
]
]
},
{
"name": "spawner_xenoai",
"directions": 1,
"delays": [
[
1.0
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB