Garry's Mod

Garry's Mod

Not enough ratings
[GAMEMODE] AI Battle (BETA)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Fun
File Size
Posted
Updated
1.207 MB
12 May @ 12:23pm
20 May @ 10:03am
4 Change Notes ( view )

Subscribe to download
[GAMEMODE] AI Battle (BETA)

Description
AI BATTLE

WHY BETA?

The main reason this is still a beta version is that, at this stage, AI is too dumb to create truly interesting challenges—at least free models. Plus, it's too slow—again, at least free models. You have to wait about a minute to get a challenge, and even then, it's far from perfect.

DESCRIPTION:

In this game mode, levels are created by real AI. No procedural generation—only AI. This has been made possible thanks to OpenRouter API. OpenRouter provides free access to multiple models and has a pretty large quota (about 50 requests for free models). 50 requests are more than enough for gameplay. I only hit the limit once while developing this mode, and you can bypass it simply by creating a second account.

INSTRUCTIONS:

You need to obtain an API KEY Groq[groq.com] or OpenRouter[openrouter.ai] (default: Groq). Then, you must select a model or use the default one (deepseek-r1-distill-llama-70b). Below is a table of available ConVar settings in this mode:


Setting
Description

apikey
Your API key. You can find it at:
For Groq[groq.com]
For OpenRouter[openrouter.ai]

apimodel
Your AI model (default: deepseek-r1-distill-llama-70b). Where to find model names:
For Groq[console.groq.com]
For OpenRouter[openrouter.ai]

apiprovider
Either "openrouter" or "groq". Determines where your request will be sent (default: Groq)

friendlyfire
Can you damage teammates? (default: zero)

roundtime
Round duration in seconds. If time runs out before all NPCs are eliminated, players lose

postroundtime
Post-round duration in seconds


AUTHORS:

boblikut — lead developer
OpenRouter, Groq — awesome free AI APIs

P.S.

If you try paid models and get significantly better results than free ones, please share them in Garry's Mod Republic[discord.gg]. Even if you achieve great results with free models, feel free to send them there—we'd love to see them!
Also, join Garry's Mod Republic[discord.gg] if you want to find teammates for this mode.

P.P.S

Previously, OpenRouter was the main provider (if you can call it that), but I was recommended Groq, which turned out to be much faster while maintaining decent quality. However, you can still switch back to OpenRouter—just make sure to specify a model from OpenRouter rather than Groq.
16 Comments
ttimofeyka 1 Jun @ 5:47am 
Можешь добавить OpenAI Compatible провайдер, чтобы можно было напрямую ссылку указывать на другие сервисы?
boblikut  [author] 23 May @ 12:41pm 
Ну, да. Каждый игрок в гмоде имеет локальный сервак с запущенной моделькой просто, чтобы поиграть 5 минут с аддоном и забыть. Если ты такой умный, то можешь сам распаковать аддон и поменять запрос как тебе хочется
lordkeker31 23 May @ 9:53am 
вот почему все разрабы, работающие с ИИ такие? Нельзя вместо apiprovider просто указывать адрес сервера с ИИ, может у меня локально нейронка запущена, кто знает?
boblikut  [author] 19 May @ 11:19pm 
So. I some explored Groq documentation. Look good. I'll test it today. If this will really better than openrouter i'll switch to Groq
regunkyle 19 May @ 1:21pm 
ok.
boblikut  [author] 19 May @ 5:57am 
In any case i will not switch from OpenRouter. + OpenRouter more simple for user
regunkyle 18 May @ 3:13pm 
i meant Groq
regunkyle 18 May @ 3:12pm 
hey you should try Grok its completely free.
1kkthebest 18 May @ 2:38am 
ok thanks :), also i just deleted the comment by accident, but i did the command, English 1, and that fixed it
boblikut  [author] 18 May @ 2:35am 
Oh. All this time i used russian prompt... I just confused varibels names... I'll fix it today. This was should be English. But in general name and description of challenge no so much intresting. But i'll fix it. Exists some more bugs and i'll fix it in the same update