Garry's Mod

Garry's Mod

411 ratings
Auto NPC Championship
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Cartoon, Comic, Fun
File Size
Posted
Updated
22.148 KB
21 Feb, 2023 @ 1:16pm
2 Jun, 2023 @ 7:25pm
3 Change Notes ( view )

Subscribe to download
Auto NPC Championship

In 1 collection by StrawWagen
My Bigger Projects
30 items
Description
Automatically fights npcs in a structured championship!
This can automatically test WIP npcs, fights are also just fun to watch, lol.

Reads npcs as you spawn them.
Then creates a unique fight between each npc spawned.
Each npc's wins/losses are recorded and displayed at the end!
Think dwarf fortress arena mode!


HOW TO USE?
  1. Run the command "npcdeathmatch_advance"
  2. Place npcs from your spawnmenu
  3. Run the command again.
  4. Watch!
When all of the fights have been exhausted, a list of every fighter's score is printed to console.
Fighters gain score when they are the last valid/alive npc, and conversely lose score when they are not.



MORE COMMANDS!
  • "npcdeathmatch_setcenter" overrides the center of the deathmatch
  • "npcdeathmatch_spawnradius" radius to search for spawnpoints on the navmesh
  • "npcdeathmatch_blockselffights" block fights between npcs of same class
  • "npcdeathmatch_timeoutlength" 'length' that the timeout lasts, default 1000
  • "npcdeathmatch_testonlyfirst" only create fights that include the first npc spawned
  • "npcdeathmatch_damagefilter" only take damage from the other figher, eg; poison zombie throwing headcrabs


Any questions? Make sure to watch a bit of the second video!
It's an entire fight, but the first ~1 minute shows exactly how to start an auto deathmatch.

Requires a navmesh! Have fun!
Popular Discussions View All (1)
2
15 Aug @ 3:23pm
An idea
Lil' X-Treme
81 Comments
Cyrale 7 Jul @ 11:45am 
can you you add more type of deathmatchs?
Nesigmohka1 22 May @ 5:58am 
HIM
magrinhomtts 1 Jan @ 12:12pm 
like 2v2 4v4 and etc.. or free for all
magrinhomtts 1 Jan @ 12:11pm 
make add more npcs in battlel please
Ravenlover 16 Sep, 2024 @ 8:42pm 
Looking at the thumbnail I hear the king of the hill beginning theme
zeroncosmos 17 Aug, 2024 @ 10:30am 
That is intended behaver, every npc you try to spawn will go on a list instead, you'll have to use the command again after you put down the npcs you want to see fight.
Rustyloot отец 15 Aug, 2024 @ 5:20am 
everytime i type the command i cant spawn the npcs pls help
zeroncosmos 14 Aug, 2024 @ 5:25pm 
I tried to have the same character with different weapons but it ended instantly
A Reflective Sphere 12 Aug, 2024 @ 6:29am 
bro this addon is great :physgun:
BALLING🏀 8 Jul, 2024 @ 1:05pm 
when i do it it does not work pls
fix it