Garry's Mod

Garry's Mod

381 ratings
Zombie Master AI
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
9.979 KB
Jan 11, 2018 @ 3:38am
Jan 22, 2018 @ 1:49am
12 Change Notes ( view )

Subscribe to download
Zombie Master AI

Description
The AI:

This mod allows you to play Zombie Master solo, as the AI is the ZM. This REQUIRES the Zombie Master gamemode.

The AI has a slight personality so each time you play the bot could do different things, such as spawning more zombies at a given time, then other times or activating traps more often... Currently the bot has unlimimted points and can spawn, use, anything.

The zombie spawning limit for the AI depends on the number of survivors.

It's a basic bot don't expect too much, also my first mod for gmod. Feedback is welcomed, good or bad.

What can the AI do?

- Use traps
- Spawn all types of zombies
- Command zombies
- Kill Zombies (No players are near them)
- Use Explosion

How to use?

Make sure you're on a server, could be local anything. The bot is a player so it need a slot to be able to join.
Once you have the bot enabled and start a game the bot will join and go Zombie Master by default.

You then need to wait a couple seconds for the round to start.

Console Commands:
Commands you may use:
zm_ai_enabled - Disables or Enables the bot. Toggle
zm_ai_force_start_round - Forces the round to start/restart
zm_ai_max_zombies_per_player - Max amount of zombies the AI can spawn per player. Default 16

Other Commands:
zm_ai_speed - Changes bots global speed. Default: 1
zm_ai_debug - Shows debug log in chat of what bot is doing and prints to console for debug reasons. Toggle
zm_ai_dynamic_traps - If traps stats are generated as you go or all generated at round start. Default: 0
zm_ai_command_delay - Changes the rate at which it commands zombies. Default: 1
zm_ai_enable_force_start - Stops rounds from being forced when bot joins. Toggle
zm_ai_zombie_spawn_delay - Rate at which zombies spawn. Default: 3
zm_ai_min_zombie_delete_dis - If zombies go over this distance from players they get deleted. Default: 3000
zm_ai_max_zombie_spawn_dis - If a player is within this distance the AI spawns zombies. Default: 3000
zm_ai_move_ply_to_last_spawn - Used for debugging.
zm_ai_min_distance_to_act_trap - Min distance player has to be for trap to be activated. Default 92
zm_ai_max_distance_to_act_trap - Max distance player can be before the AI won't activate the trap. Default: 224

What maps can I use it on?

You should be able to use the AI on any map, it just depending on how it was designed. Some may work fine, other not so much...

Some maps the AI may never use a trap on because the point to trigger it is to far away or in a odd place, same with spawns. Theses maps can be made to work, but require my input to fix these issues. so, if you find a map where the AI never uses a trap or uses it too much or even a map that does not work at all. Send me that map and what trap is the issue. I'll see if I can get it sorted.

The AI can function without navmesh, but the zombies will need it.

Online:

I have not tested this with other players other then bots, so I don't know how well it will function. It could have issues with commanding the zombies.

Credits:
Bradenm1 - Scripting the AI
HG | Forrest Mark X - Porting Zombie Master to Garrys Mod.

Source Code:
https://github.com/Bradenm1/Zombie-master-ai

Thanks.
77 Comments
mickey Oct 19, 2024 @ 1:35pm 
zm_ai_enabled zm_ai_force_start_round
T-DAWGthedawg101 Jul 11, 2024 @ 11:54pm 
This is reportable: Look For the Lower Case 'L' And You
Will Be Kissed Tomorrow:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLlLLLLLLLLLLLLLLLLLLLLL LLLLL
*Now Look For The Q And Your Wish
Will Come True:
... ... ... ... ... OOOOOOOOOOOOOOOOOOOQOOOOOOOOOOOOOOOOOOOOOOOOO O.. .OOOOOOOO
*This Is Really Hard, Now Find The 'N':
MMMMMMMMMMMMMMMMMMMMMMMMMNMM
*Now Find The Mistake:
ABCDEFGHIJKLNMOPQRSTUVWQYZ
*Something You Really Want, After the
countdown!!!!!
10 9 8 7 6 5 4 3 2 1 Now Close Your
Eyes And Make A Wish! ;*;*;*;*;*;* Now
Paste This On 9 pages And Your Wish
Will Come True! Hurry, You Have 20
minutes! Or What You Wished For Will
Be The Opposite
blayt_man Apr 6, 2024 @ 7:24pm 
nice
Officer Recks Mar 24, 2024 @ 2:32pm 
how to use?
Help Dec 12, 2023 @ 10:21pm 
Mall parking fix
guppy Dec 1, 2023 @ 7:36am 
i want human bots?
Gordon, GORDAN! Nov 8, 2023 @ 5:46pm 
I wonder if You could port the weapons to Sandbox?
Alexandre76 Jul 9, 2023 @ 10:06pm 
looks like this addon is outdated now :/
M∆ciek Dec 14, 2021 @ 9:35am 
is bots can join human true or false?
lawnmower child Oct 16, 2021 @ 9:48pm 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).