Space Engineers

Space Engineers

评价数不足
PrefabSpawner
   
奖励
收藏
已收藏
取消收藏
Type: Mod
标签: ServerScripts
文件大小
发表于
更新日期
965.108 KB
2023 年 10 月 16 日 上午 7:56
1 月 23 日 上午 11:07
12 项改动说明 ( 查看 )

订阅以下载
PrefabSpawner

在 BDCarrillo 的 1 个合集中
BD's Toolbox
19 件物品
描述
Ever wanted to chuck vanilla or modded prefabs at people on your server? Well now you can! This is fun to combo with MES when an admin/GM/evil person needs a bit more granular control over bringing NPCs into the world without trying to paste in a bunch of BPs and fiddle with getting them moving toward a location to interact with players. The intent is just to get them started and on their way- what happens later will rely on your spawned prefabs having either Grid AI blocks or a script capable of controlling them. Said differently, this will only get them to/near a player but not maneuver dynamically in a fight.

Hotkey:
Aim in the desired direction you want your spawns to fly and press Shift + P to open the spawner menu. Spawning is restricted to admins (3+ stars). This can be rebound in the Rich Hud Menu by hitting Enter to bring up chat and then F2.

Menu Options:
-MOD can be clicked to cycle showing ALL prefabs, MODded, or VANilla.
-Click on the prefab name to select from a list.
-# is quantity of spawns
-Vel is velocity they'll travel at (except static ones of course) and is controlled with the horizontal slider
-JMP enables randomized jumping, if a jumpdrive is equipped
-TRK enables tracking, if a flight block is equipped
-BOT can be clicked to cycle between showing bots and players as owners
-Click on the owner name to select one from the list. Faction tags are shown in parenthesis
-Delay is both the initial time to wait before spawning, and the time between spawns if more than 1 is selected for #
-Click Spawn to spawn now based on entered settings

Internal monitoring:
Spawner keeps an eye on grids it creates and will try to tidy them up or do some rudimentary nudging towards targets. The intent is for AI blocks to take over for the actual engagement- this just helps them get there.

Note that spawned grids will no longer be monitored on a world reload.

Tracking (TRK option):
This is still WIP.
Grids with active flight blocks and no active target from their combat block will be given the waypoint of the nearest hostile player. This is to increase the chance of an encounter.

Jumping (JMP option):
Every 2 seconds a chance to jump is rolled. If the grid has AI blocks and a target, the chance is 3%, otherwise it's 8%. If a jump is called for, it will be in whatever direction the grid is travelling. Minimum distance is dynamic for modded jump drives, max is hardcoded at 5km (see cleanup below). A cooldown period will start after a jump, preventing another one for a random time between 1.5 and 3 minutes.

Integral cleanup:
If a spawned grid goes beyond SyncDistance * 3 from any actively online player, it will be removed.

Exporting prefabs:
-Ensure your grid is named how you want it to appear when spawned later
-Look at grid and hit Ctrl+C
-Hit F11 and click "Export clipboard to file"
-Prefab will be saved in %AppData%\Roaming\SpaceEngineers\Export\GridName.sbc
-To utilize them in multiplayer, ensure they are loaded in any mod in a Data\Prefabs folder

Discord: Other Projects -> bd-stuff at https://discord.gg/tXtpNwX8bf
6 条留言
Kototop_CMB 9 月 9 日 下午 2:16 
same thing with some old ones, it just crashes game when you try spasn them
nickforgie 9 月 9 日 下午 12:55 
might want to update this. something with the new ships is causing issues
Kototop_CMB 5 月 2 日 下午 3:06 
very cool!
but really want some kind of search or sorting, there veeeeery much prefabs
StarfleetPups 2024 年 6 月 21 日 下午 10:22 
hey the hotkey not working mind helping?
JuggalosPsyco420 2024 年 2 月 13 日 下午 5:13 
Is there anyway to change the hotkey?
Cheddar_Charlie_ 2024 年 1 月 13 日 上午 3:57 
This is a good mod