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", "FlashExplosive",
"FlashProjectile", "FlashProjectile",
"Utensil", "Utensil",
"UnarmedCombat",
"TimedSpawner",
}; };
foreach (var ignoreName in registerIgnore) foreach (var ignoreName in registerIgnore)

View File

@@ -28,10 +28,10 @@
netsync: false netsync: false
visible: false visible: false
sprite: Objects/markers.rsi sprite: Objects/markers.rsi
state: spawner_rifle state: spawner_ai
- type: Icon - type: Icon
sprite: Objects/markers.rsi sprite: Objects/markers.rsi
state: spawner_rifle state: spawner_ai
- type: TimedSpawner - type: TimedSpawner
prototypes: prototypes:
- HumanMob_Spirate - HumanMob_Spirate
@@ -40,3 +40,24 @@
intervalSeconds: 60 intervalSeconds: 60
minimumEntitiesSpawned: 1 minimumEntitiesSpawned: 1
maximumEntitiesSpawned: 5 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", "name": "spawner_grenade",
"directions": 1, "directions": 1,
@@ -456,6 +465,15 @@
1.0 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