Garry's Mod
94 人が評価
[VKXTools] Entity Spawner
2
   
アワード
お気に入り
お気に入り
お気に入りから削除
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun, Roleplay
ファイルサイズ
投稿日
更新日
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.
189 件のコメント
D3LTuM #tweek 12月12日 22時18分 
Thanks!
Guthen  [作成者] 12月12日 11時09分 
Alright, hope you find a way to your problem, you're welcome!
D3LTuM #tweek 12月11日 12時03分 
Yes, recycling is a mechanic of my mode. But helping me is not worth it, since I asked my friend to make props as an entity. Also thank you for this beautiful addon)
Guthen  [作成者] 12月11日 11時11分 
@D3LTuM I already know that, my point is: do you have precision on what is your gamemode and the "recycling" part? Is it your own custom gamemode? Is "recycling" a mechanic of that gamemode? If yes to both, as a workaround, I could suggest to create a custom entity for your "recycling" mechanic that you use as a spawnable entity with my tool
D3LTuM #tweek 12月11日 10時55分 
You asked me why I need your addon to spawn the prop, I replied that I need it for my game mode
Guthen  [作成者] 12月11日 9時14分 
@D3LTuM I'm not sure what does that mean, can you be more precise?
D3LTuM #tweek 12月10日 4時43分 
I need it for my gamemode. It's supposed to spawn props for recycling.
Guthen  [作成者] 12月8日 3時15分 
Hello @D3LTuM, currently there is no way of doing it, you could theoretically create a custom entity script that spawns with a specific model (acting like a prop), but that could be very inconvenient if you want multiple models to spawn. For what usage do you want this?
D3LTuM #tweek 12月7日 7時51分 
Is there any way to add a prop to spawn it?
Guthen  [作成者] 8月30日 12時21分 
@Hosterie I see, I've read the code of ZBASE and according to the implementation of both mods (ZBASE and mine) it makes total sense. I'm gonna write that down and close the issue on Github. Thank you very much!