Garry's Mod

Garry's Mod

30 ratings
Tood's NPC Drop Pod Tool v4
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
188.763 KB
18 Jul, 2020 @ 4:52pm
14 Dec, 2023 @ 12:29pm
5 Change Notes ( view )

Subscribe to download
Tood's NPC Drop Pod Tool v4

Description


ALL SUPPORT IS NOW HANDLED VIA MY NEW DISCORD: discord.gg/YSzU6MY2Yb

Tood's NPC Drop Pod Tool.

- NPC Dispenser/Drop Pod that spawns in NPCs after landing.
- Destructable Dispenser/Drop Pod.
- Class, Models, HP, weapons etc all controlled by the player using the in-game configurable tool menu.

Future Plans:
- More tool options? I've ran out of ideas so if you want a tool feature then drop a suggestion below.
_______________________________________________________________



Tood - Adding:
- Destructable dispensers/drop pods.
- NPC spawning automatically from the dispenser/drop pod once landed.
- In-game configurable tool menu.
AussiWozzi - For the original droid dispensers located here
_______________________________________________________________



In-game configurable tool menu.
- NPC Model Field: Copy an NPC mdl link from your spawnlist and paste it into the field to set the model of the NPCs that spawn from the dispenser/drop pod.
- Dispenser Model Field: Copy an mdl link of any prop from your spawnlist and paste it into the field to set the model of the dispenser/drop pod.
- NPC Weapon Field: Copy a weapon class from the weapons tab in your spawnlist and paste it into the field to give the NPCs that spawn from the dispenser/drop pod to give them that weapon.
- NPC Health Slider: Move the slider left or right to set the health of the NPCs that spawn from the dispenser/drop pod.
- Min Spawn Slider: Move the slider left or right to set the minimum time it takes for NPCs to spawn in.
- Max Spawn Slider: Move the slider left or right to set the max time it takes for NPCs to randomly spawn in or how long it takes for the last NPC to spawn in.
- Dispenser Health Slider: Move the slider left or right to set the health of the dispenser/drop pod.
- NPC Amount Slider: Move the slider left or right to choose how many NPCs you want to spawn in from the dispenser/drop pod.
- NPC Weapon Proficiency List Box: Choose how well the NPCs aim is with the weapons you give them on the tool. (v2)
- Presets: You can now save the values you choose to custom presets! Simply click on the green + symbol in the top right of the tool menu to save the CURRENT values you have set on the tool. Click the wrench icon to view all of your saved presets and you can further edit your saved presets via the editor. (v2)
- NPC Class Field: You can now use custom NPCs rather than just having the option to change the NPCs model and using the default Half-Life hostile NPC class. (v3)
- NPC Model Field: The model field is now optional, leave this field blank if you would like to use your NPCs default model or paste a NPC model path to override the NPCs default model. (v3)
- NPC Relationship List Box: You can now choose if the NPCs from the drop pod should be hostile or friendly towards players and NPCs. (v3)
- Right-Click: Simple little extra feature, right click on any NPC to get the NPCs class if you want to avoid looking through your lists of different NPCs in your spawnmenu. (v3)
_______________________________________________________________



You have full permission to edit my code to preference but must be kept at personal use only for your own server.

You do not have permission to reupload this or claim this script as your own.
If you wish to use my script in another script then do not merge the files with your own, simply add my script as "Required Content".
_______________________________________________________________

Update v2

- NPC Weapon Proficiency added into the tool menu.
- Presets now added in to the tool allowing you to save your tool value choices.
- A default preset added in if anyone decides not to change the tool values.
- A few default values increased.
- A few min & max values increased to avoid drop pod exploding on collide.
- Cleaned up a few lines of code.
_______________________________________________________________

Update v3

Check out the 2nd attached YouTube video to see the new features in action and how they work!

- Added NPC Class field added to the tool menu to allow users to use their own custom NPCs if they have any.
- Reworked NPC Model code to allow the user to have the option of using the NPCs default model or use a custom model.
- NPC Relationships now added to the tool menu.
- Spawning code cleaned up, now stored in a custom function then called on collide.
_______________________________________________________________

Update v4

v4 update YouTube video is attached.

- NPC position code updated.
- Drop Pod spawn height tool option added.
- Repeat NPC spawning tool option added.
- Tool feature added to enable/disable repeat NPC spawning.

Update v4.1 Patch
- Updated the NPC spawn position code, now searches a bigger area for a position to spawn and also updated the fallback spawn position for the NPC's.
- Props/entities are no longer removed when the drop pod collides.
- Default "minimum" spawn height for the drop pod increased (some models spawn underground when spawned at Vector( 0, 0, 0 )).
_______________________________________________________________

Want to donate and support my Development Progression? Click the image below <3
[paypal.me]
_______________________________________________________________

If you have any questions, comments or concerns then drop them down below and I'll be more than willing to help you out however I can.
Feel free to drop a like if you enjoy this addon and if you have any suggestions or bug reports then please use the designated discussion posts.
Enjoy!!
14 Comments
Tood  [author] 22 Jun @ 12:19pm 
Join my discord and post a clip of the bug and of your tool options discord.gg/YSzU6MY2Yb
ThatLobsterCrab 17 Jun @ 5:03pm 
There seems to be an issue where all NPCs spawned shoot out rockets?
Tood  [author] 15 Jun @ 5:47pm 
Make sure if you are using the model field then to use an NPC model and not a player model. Also make sure the class of NPC you are using isn't nextbot because support for that hasn't been added yet
Thanos Chungus 14 Jun @ 5:07am 
Anyone else get an issue where NPC's spawn but have no collisions and stuck in the air floating T-pose?
Xainoxy 20 May, 2024 @ 1:40pm 
Hello i got this error when using the SB_Advanced_NextBot base
[sb_advanced_nextbots] addons/sb_advanced_nextbots/lua/entities/sb_advanced_nextbot_base/enemy.lua:45: attempt to index field 'm_EntityRelationships' (a nil value)
1. SetEntityRelationship - addons/sb_advanced_nextbots/lua/entities/sb_advanced_nextbot_base/enemy.lua:45
2. AddEntityRelationship - addons/sb_advanced_nextbots/lua/entities/sb_advanced_nextbot_base/init.lua:297
3. unknown - lua/entities/toods_dispenser/init.lua:180

Nextbot base : https://github.com/ShadowBonnieRUS/GMOD-SB_Advanced_Nextbots_Base
Tempest_TMD 14 Jul, 2023 @ 11:37am 
Is it possible to make this an entity as well so it functions with entity spawner mods?
Antiderivatives 8 Apr, 2023 @ 9:52am 
Also, is there any way to make it nextbot npc compatible?
Antiderivatives 8 Apr, 2023 @ 9:50am 
A drop ship feature would be neat.
Tood  [author] 23 Feb, 2021 @ 6:43am 
Not using my tool. You can check the Garry's Mod wiki
296cherry 22 Feb, 2021 @ 8:08pm 
Is there an easy way to get the model name of an npc?