Garry's Mod

Garry's Mod

111 个评价
[VKXTools] Entity Spawner
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐, 角色扮演
文件大小
发表于
更新日期
96.734 KB
2021 年 7 月 15 日 上午 7:51
2022 年 10 月 27 日 上午 9:35
25 项改动说明 ( 查看 )

订阅以下载
[VKXTools] Entity Spawner

在 Guthen 的 1 个合集中
Guthen's Addons
24 件物品
描述
Description
This is a tool made in order to spawn random choosen entities in a specific shape with or without a spawner.

It allows you to spawn a lot of entities, see the following list of compatibles categories :
─ Weapons
─ Scripted Entities
─ NPCs
─ Vehicles
─ simfphys vehicles

Shapes
Shapes are used to spawn entities in a certain geometrical form, they only impact on position, angle and number of entities.

Shapes
Description
None
Spawn at a single point
Circle
Spawn in a standar circular shape with editable radius and entities number
Square
Spawn in a rectangular shape with editable wide, tall and offset between each entities
Random
Spawn in a circular shape with a random radius on each entity giving a random impression; the number, maximum radius, x and y ratios are editable as well; this shape might be usefull in apocalypse/zombie-like servers

Spawners
Spawners are used to spawn random choosen entities at a fixed delay and a fixed maximum of entities. They can be permanently saved on the map or just temporary. They are usefull to spawn groups of NPCs (like zombies) or to spawn vehicles or weapons periodically for an apocalypse server for example.

A Player Presence Radius system is implemented, allowing spawner to only run when a player is within a defined radius, which also has an option to make spawners entities to disappear when no player is within the range.

Green spawners are non-permanent spawners and red spawners are permanent (saved and loaded on server restart) ones.

ConVars
These are technically-advanced convars which are only useful if you make custom scripts integrations for this system:
- `vkx_entspawner_network_superadmin_only <0 or 1>`: server; default to `1`; Should the spawners be networked to superadmin only or be available for other players?
- `vkx_entspawner_network_run <0 or 1>`: server; default to `0`; Should the spawners run-time be networked to allowed users? This option syncs the new spawner properties to clients. Users are defined by `vkx_entspawner_network_superadmin_only` convar

Known Issues
"It do nothing when I left click"
Due to prediction system, the tool doesn't work properly on singleplayer. If you want to use this tool in solo, I recommand you to create a +2 players game (in the game starting options). (fixed since 19/06/2022)

Otherwise, an entity can block the spawning. Try to spawn your entity without spawners, you should see notifications error if the entity doesn't spawn. If you encountered an entity which should not blocking the spawn, please comment below by mentionning both the map name and the entity name so that I can fix the issue.

"I can't spawn ZBASE NPCs"
You need to check the "Default Spawn Menu" option in ZBASE menu (from the 'Options' tab of the spawnmenu) in order for them to be spawnable.

Source Code
This addon is also available on Github[github.com]. Contributions and issues reports are welcomed.
202 条留言
Ёжик 9 月 13 日 上午 4:20 
I can`t spawn entities from addons for some reason
Guthen  [作者] 7 月 26 日 上午 2:35 
Hey @Lukencio™, you're welcome! Glad to help with my mods :) What doesn't work about the "snap-to-ground"? Are you trying to snap it on the world or on specific entities?
Lukencio™ 7 月 2 日 下午 1:53 
I guess that the "snap-to-ground" option doesn't work?
Lukencio™ 7 月 2 日 下午 1:44 
Thank you! I've been looking for a entity spawner for a very, very long time! You are the best. Thank you
Guthen  [作者] 6 月 9 日 上午 6:05 
Hey @vinny1129t, sorry for the late answer, you need to give yourself a `gmod_tool` and select the "Entity Spawner" tool of the "VKX Tools" category (accessible via the spawnmenu), which is a SWEP only available in Sandbox and gamemodes that inherits it (such as DarkRP).

Hey @Archie, sorry for the late answer, it depends on what entity you're trying to spawn: if it's default DarkRP food, my mod doesn't support it right now, if those are spawnable entities (i.e. accessible from the spawnmenu) from a custom mod, they should be usable.
vinny1129t 5 月 30 日 下午 3:21 
it says i cant access without tool gun how do i get a tool gun?
Artemis 4 月 26 日 下午 3:52 
So, forgive my smooth brain, but i assume i can spawn food items with this?

I was using "Customizable Entity Spawner" to randomly spawn food items around the map for my solo Survival RP sessions, but recently that mod stopped working, so now i'm looking for a replacement. Since you only listed "Weapons" and "Scripted Entities" in your mod's description, i'm in doubt whether this will work for my Survival game or not.

Cheers!!
Guthen  [作者] 3 月 5 日 上午 10:30 
@marlboro Yes it is, the permanent spawners are saved per map, so you can make one configuration per map
marlboro 3 月 3 日 下午 3:03 
is this per map?
Guthen  [作者] 2 月 22 日 上午 5:14 
Hello @rustyshackleford1954, are you talking about the Player Presence Radius option? Do you need to set it enabled? Otherwise, you could just disable it