Garry's Mod

Garry's Mod

81 ratings
[VKXTools] Entity Spawner
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun, Roleplay
File Size
Posted
Updated
96.734 KB
15 Jul, 2021 @ 7:51am
27 Oct, 2022 @ 9:35am
25 Change Notes ( view )

Subscribe to download
[VKXTools] Entity Spawner

In 1 collection by Guthen
Guthen's Addons
24 items
Description
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.

Source Code
This addon is also available on Github[github.com]. Contributions and issues reports are welcomed.
168 Comments
Guthen  [author] 14 Jul @ 11:20am 
@Nikitaf93 You're welcome! Hope it helped you :p
Nikitaf93 14 Jul @ 11:05am 
woah that was a quick reply, anyways thanks!!
Guthen  [author] 14 Jul @ 10:51am 
@Nikitaf93 You have to tweak the chances of each weapon in the list in a way that the first one has a lower chance (<100%) than the last one (which should be 100% unless you want the possibility to not spawn) because they get evaluated from the top to the bottom.
Nikitaf93 14 Jul @ 10:32am 
how do i make it random??? i added multiple weapons and nothing changes
Hosterle 4 May @ 2:58am 
Thanks for the consideration
Guthen  [author] 4 May @ 2:49am 
Hey @2den2, I've just opened an issue on the github repository about that: https://github.com/Guthen/VKXToolsEntitySpawner/issues/11 . I can't promise working on it anytime soon tho.
Hosterle 2 May @ 11:50pm 
hey by the way, is it possible to make this addon compatible with Zbase?
I tried to spawn several npcs from Black Mesa addons, none appeared
Guthen  [author] 2 May @ 12:57am 
@FrostbitTe You're welcome :)
FrostbitTe 1 May @ 3:28am 
nice, thanks so much
Guthen  [author] 1 May @ 2:19am 
@FrostbitTe Yes, it does both on dedicated servers and singleplayer games