Giter Site home page Giter Site logo

vkxtoolsentityspawner's Introduction

VKXTools โ”€ Entity Spawner


Logo

Steam Views Steam Downloads Steam Favorites

This addon is available on the Workshop here

๐Ÿ“ƒ Description

This is a tool made for Garry's Mod 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.

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

ConVars

  • 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

No issues

๐Ÿ’ก Contributions

If you are a developper and you want to help, I'm opened to contributions as long as you respect my code style.

You can also suggest features and report bugs in the issues page.

vkxtoolsentityspawner's People

Contributors

guthen avatar

Stargazers

 avatar

Watchers

 avatar

vkxtoolsentityspawner's Issues

Feature Request: Spawner text

It would allow server owners to minimize the use of addons such as 3D2D, DTextscreens, LED, etc.

It would also help to find out how far away the user is from the spawn area with dynamic text.

Unable to spawn Gredwitch's Emplacement's entities

Reported by: Sesto

File : lua\autorun\vkx_entspawner.lua
Function : vkx_entspawner.can_spawn_safely (~line 191)

When you attempt to spawn a Gredwitch's Emplacement's entity with the tool, it returns a notification error because an entity (probably a child entity created by the GE's entity) obstruct the new entity to spawn.

We should investigate on how to solve this, maybe by looking for the children with Entity:GetChildren or looking for the source code of the GE's entities to understand why it does that.

LFS Compatibility

It should be possible to assign LFS teams per vehicle to prevent friendly fire from AI.

Configuration Presets don't save loaded entities

File : lua\weapons\gmod_tool\stools\vkx_entspawner.lua
Function : TOOL.BuildCPanel (~line 306)

The Default Presets VGUI only save convars but that's an issue for saving entities configuration, as they are handle in the table vkx_entspawner.ents_chance and not in a convar. We might have to make a custom VGUI or edit the default one.

Spawners are inconsistent

Even though the delay is set to 1 second and I am inside the radius for that long, the entities don't spawn. I am trying to do this with Simfphys vehicles.

Spawn Helper Option: place entities on `info_node`s

Suggested by: epicplayer40

The goal of this option is to help spawned NPCs's pathfinding by spawning them in navigable areas.

This could be achieved by either snapping preview entities on foreign info_nodes or by passing this option in the spawner structure and to change its spawn position at "run time" (in function vkx_entspawner.run_spawner).

I prefer the first option as it shows to the user what does that option do

Instant respawn issue

Hi, I use this mod a lot for my modes and I was wondering about something strange, I don't know if it's a glitch or not but I'll explain it as well as I can.

Basically, I think the timer for spawning will go off even when you're not in range or there's already an entity that was spawned.

For instance, if you had a zombie spawner, and a zombie has been spawned for 15 seconds (AKA the spawn time):

If you kill that zombie, another one will instantly spawn. If you kill that one, it will take 13 seconds if it had existed for 2.

Is this a glitch or is it intentional?

(COMMENTATOR FORM STEAM)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.