Garry's Mod

Garry's Mod

87 ratings
iRAIDS (RAIDS Modification)
2
3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
64.079 KB
20 Jun @ 3:59am
25 Jul @ 9:44am
35 Change Notes ( view )

Subscribe to download
iRAIDS (RAIDS Modification)

In 1 collection by Scorp
Scorp's Addons
9 items
Description
THIS IS NOT MY ADDON!!!
This is a modification of the RAIDS addon by Trench.
You can find the original addon here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3048046612

About
iRAIDS (short for 'improved RAIDS') is a modification of the original RAIDS addon that fixes some issues present in the original.

Modification
These modifications (so far) include:
  • Spawning NPCs only in buildings
    In the original NPCs would spawn anywhere, this addon checks for a ceiling before spawning to ensure that the NPC spawns either indoors or at least not out in the open.
  • Spawning NPCs more randomly and spread out
    This is more of a fix of the old spawning method. Rather than going through nodes sequentially now the addon will pick nodes randomly, causing the NPCs to spawn more spread out rather than clumped up.
  • NPC patrol option
    Now you can choose to spawn NPCs in patrol mode rather than standing. Toggle it with the iraids_do_patrol convar.
  • Only spawn in one (or more) buildings
    Alongside the "Spawning NPCs only in buildings" feature, you also have the option to only spawn NPCs in a single (or more) buildings. This is most useful for raid/police type gameplay on big maps where only one building is filled with enemies.
  • Spawning near to walls
    This feature spawns NPCs in less exposed areas by trying to find a wall to spawn them next to. Toggle it with the iraids_spawn_next_to_walls convar. Very buggy though, don't recommend using this.
  • Spawning citizens
    You can choose to also spawn citizens instead of rebels with the iraids_spawn_citizens command.
  • Spawning NPCs with custom weapons
    You can now create a list of weapons you want the NPCs to use.
  • Spawning metrocops and antlions
    You can now spawn metrocops and antlions
  • Spawning NPCs in groups
    Makes a set random amount of NPCs spawn in groups next to each other
  • Spawning custom NPCs
    You can create a list of NPCs you want to spawn with the iraids_spawn_custom command. Works much like the custom weapon system (but for NPCs)

About original
If you're not aware, RAIDS is an addon that automatically spawns rebels, zombies or combines when you type in a console command.
This addon was designed to both run as a standalone and alongside the original.
All the commands are the same, just instead of them being prefixed with 'raids_', they are now prefixed with 'iraids_'.

Commands
- iraids_spawn_combine <optional max number | default 64>
- iraids_spawn_metrocops <optional max number | default 64>
- iraids_spawn_rebels <optional max number | default 64>
- iraids_spawn_citizens <optional max number | default 64>
- iraids_spawn_zombies <optional max number | default 64>
- iraids_spawn_antlions <optional max number | default 64>

- iraids_start_combine_assault <optional starting max amount | default 8>
- iraids_start_combine_assault_no_escalation <optional starting max amount | default 8>
- iraids_start_metrocops_assault <optional starting max amount | default 8>
- iraids_start_metrocops_assault_no_escalation <optional starting max amount | default 8>
- iraids_start_rebel_assault <optional starting max amount | default 8>
- iraids_start_rebel_assault_no_escalation <optional starting max amount | default 8>
- iraids_start_zombie_assault <optional starting max amount | default 8>
- iraids_start_zombie_assault_no_escalation <optional starting max amount | default 8>
- iraids_start_antlion_assault <optional starting max amount | default 8>
- iraids_start_antlion_assault_no_escalation <optional starting max amount | default 8>
- iraids_stop_assault

Modification commands
- iraids_indoor_only <0 to allow spawning anywhere, 1 to only allow spawning in buildings | default 1>
- iraids_do_patrol <0 for no patrolling, 1 for patrolling | default 0>
- iraids_spawn_next_to_walls <0 to disable, 1 to spawn near walls | default 0>

Modification commands (per-building spawning)
This allows you to spawn NPCs in a set amount of buildings.
To begin using this feature you must either generate areas manually by using iraids_generate_areas or enable auto area generation by running iraids_auto_generate_areas 1.
After generating areas you can spawn NPCs in specific buildings by using iraids_spawn_<type>_area <npc count> <building type>

- iraids_generate_areas
- iraids_auto_generate_areas <whether to auto-generate areas | default 0>
- iraids_min_area_nodes <optional minimum number | default 15>
- iraids_areatest (test command, generates babies on every node in largest area)

- iraids_spawn_combine_area <enemy count | default 64> <0 for random area, 1 for biggest area, 2 and above for multiple random areas>
- iraids_spawn_metrocops_area <enemy count | default 64> <0 for random area, 1 for biggest area, 2 and above for multiple random areas>
- iraids_spawn_rebels_area <enemy count | default 64> <0 for random area, 1 for biggest area, 2 and above for multiple random areas>
- iraids_spawn_citizens_area <enemy count | default 64> <0 for random area, 1 for biggest area, 2 and above for multiple random areas>
- iraids_spawn_zombies_area <enemy count | default 64> <0 for random area, 1 for biggest area, 2 and above for multiple random areas>
- iraids_spawn_antlions_area <enemy count | default 64> <0 for random area, 1 for biggest area, 2 and above for multiple random areas>

Modification commands (custom weapons)
This allows you to spawn NPCs with weapons from a custom list.

- iraids_spawn_with_custom_weapons <whether to enable this feature | default 0>
- iraids_available_weapons: prints all available weapon classes
- iraids_custom_weapons: prints all weapons in the current custom weapon list
- iraids_clear_custom_weapons: clears the current custom weapon list
- iraids_add_custom_weapon <weapon class name>
- iraids_remove_custom_weapon <weapon class name or index>

Modification commands (custom npcs)
This allows you to spawn NPCs from a custom list

- iraids_customnpc_with_customwep <whether custom npcs should spawn with custom weapons | default 0>
- iraids_custom_npcs: prints all NPCs in the current custom NPC list
- iraids_clear_custom_npcs: clears the current custom NPC list
- iraids_add_custom_npc <npc class name>
- iraids_remove_custom_npc <npc class name or index>

Modification commands (groups)
This allows you to spawn NPCs in groups

- iraids_spawn_groups <whether to enable | default 0>
- iraids_min_group_members <minimum NPCs per group | default 1>
- iraids_max_group_members <maximum NPCs per group | default 5>
- iraids_max_group_distance <maximum radius of group spawning | default 250>

Other addons
If you want citizens and rebels to have better reaction times, get my ReadyNPCs addon:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3504508595

If you want to have a tracker for hostile NPCs, use this:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3505528934
43 Comments
FireworkJumper 14 hours ago 
I can only add half life npcs to the custom list right? because every time I try to spawn npcs from other addons I keep getting an errorr
Scorp  [author] 28 Jul @ 11:45am 
@G0JPG4 The addon may not work well on weaker systems since it utilizes a bunch of math, raycasting and pathfinding to spawn NPCs. Try spawning just 1 NPC on a small, well noded map, then move up to see what your PC can handle.
Scorp  [author] 28 Jul @ 11:44am 
@FireworkJumper If you mean only spawning shotgunners then not really. Shotgunners are a skin of the combines, not separate classes, though you can spawn NPCs with specific weapons by using the custom weapons feature.
FireworkJumper 27 Jul @ 11:29am 
what if I want to spawn different classes of combine and not just soldiers?
G0JPG4 26 Jul @ 5:12pm 
when i spawn any npc (i think) with the addon my gmod freezes
Scorp  [author] 25 Jul @ 9:46am 
Sorry @The Man behind The Taco, I was going to fix that but got carried away with work and forgot. I fixed the issue with custom NPCs not getting removed and also fixed removal by index. Also @deded6750, I've added that too, you can spawn many different assaults at once. Just be warned, most will fight each other (for example combines and rebels).
elkaylk 24 Jul @ 6:48pm 
im trying to remove the npc but it won't remove it. it keeps giving me errors. also am i able to make my custom npcs seperate so i can spawn one custom npc then the other?
Saeletra 23 Jul @ 11:46am 
Add a random chance for patrols instead of all the NPCs going on patrol mode if possible
deded6750 21 Jul @ 7:56am 
Could you make it so you can do multiple raids at once? like mixing combine, metrocops + antlions and zombies all at once
The Man behind The Taco 16 Jul @ 11:45pm 
hey dude, can you fix problem with removing custom npcs? like when i remove 1, it says that he`s removed but when i check list or start a raid they still appear. Can you fix that please?