Garry's Mod

Garry's Mod

84 avaliações
[VKXTools] Entity Spawner
2
   
Premiar
+ favoritos
Nos favoritos
- favoritos
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun, Roleplay
Tamanho
Publicado em
Atualizado em
96.734 KB
15/jul./2021 às 7:51
27/out./2022 às 9:35
25 notas de atualização ( ver )

Inscreva-se para baixar
[VKXTools] Entity Spawner

Em 1 coleção de Guthen
Guthen's Addons
24 itens
Descrição
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.
180 comentário(s)
Guthen  [autor(a)] 30 de ago. às 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!
Hosterle 30 de ago. às 10:09 
"Default Spawn Menu
Should Zbase NPCs be added to the regular NPCs menu too?"
If it's checked, it works
Hosterle 30 de ago. às 10:08 
nope, I mean the default NPC menu
Guthen  [autor(a)] 30 de ago. às 9:45 
@Hosterie Do you mean from the ZBASE menu?
Hosterle 30 de ago. às 8:50 
Guthen, I just figured out something regarding zbase
Turns out zbase NPCs *are* compatible, just as long as you check the "add to default spawn menu" option
Guthen  [autor(a)] 22 de ago. às 4:45 
@2NA Oh great, no problem, have fun!
2NA 22 de ago. às 2:58 
They seem to have mostly fixed themself somehow?? I think it's a matter of source spaghetti at this point, sorry for the trouble
Guthen  [autor(a)] 22 de ago. às 1:07 
My discord username is "vyrkx"
Guthen  [autor(a)] 22 de ago. às 1:05 
Hey @2NA, it seems like a very weird issue, can you contact me on Discord so I can better help you? I would specifically like to get a recording of the bugs
2NA 21 de ago. às 21:16 
Nevermind, now both problems are happening, I have no clue why it's bugging this hard