Adding another bot skill to Quake 3


#1

I’m currently trying to add an additional bot skill to Quake 3. It’ll be “You Will Never Win!” mode, where everyone’s bot skill is maxed out. I’m having trouble figuring out where exactly the code for the bot skills lay. I’ve already done the UI for the new bot skill, it just needs a new sound/skill image. Mind helping me out with this, guys?


#2

Maximum slill is already there: Bot skill 5 = max, = ‘Nightmare’.
The values for the bot’s skill resides in their specific bot files (e.g.: botfiles/bots/grunt_c.c etc.)


#3

It’s easy to add another bot skill however. I’ll probably go ahead & do that, actually.


#4

Why are you asking then?


#5

Because I wasn’t sure if there was somewhere I was missing in the UI or not, I’ve already got the text ready to go. I’ll show off the new bot skill when I get it all done. It’ll also include grammatically corrected chatfiles for every character in Q3 (due to there being noticeable grammatical errors in everyone’s chatfiles). I also plan to use the new skill in single player.


#6

I have neverwin.wav done. It was taken from https://www.freesound.org/people/gabemiller74/sounds/155633, so if you want to listen to it, then you may go there if you wish. I think it (very eerily) fits Q3 & the description of “You will never win!”.


#7

And of course, a compilation error ends up happening. I’ll go ahead & post the code on github, gimme a second…
Here’s the code: https://github.com/coltongit/mint-arena-you-will-never-win
So what happens is “You Will Never Win!” apparently isn’t a pointer, & I’m not sure how to make it a pointer. I looked through the UI code to figure it out, but I have a nagging suspicion that what I’m looking for is in cgame instead. Can you help me figure it out, @KuehnhammerTobias?


#8

static const char *botSkill_list[] = {
	"I Can Win",
	"Bring It On",
	"Hurt Me Plenty",
	"Hardcore",
	"Nightmare!",
	"You Will Never Win!"
	NULL
};

You’re missing a comma after “You Will Never Win!”.


#9

Just a dern comma did that? Geez…


#10

And what skill will bots have then? I mean, Nightmare is alread skill 5, so you need new botfiles with skill 6?


#11

The bots will be maxed out in every level with skill 6. Things are only gonna get fun around here…


#12

Sorry to ask again, but what do you mean with ‘maxed out’?


#13

All the bots are unstoppable. Even without bot_challenge they are a nightmare to defeat. They’ll even hit you when they aren’t even at the corner yet. That’s how good they are.


#14

I get “WARNING: out of range shader” when I try to use the new difficulty & also, the bots go back to their skill 5 botfiles. How exactly do you think that should be fixed? I’ve updated the code, so you could go ahead & see it in action for yourself.


#15

Quick check:

  1. Iirc, g_spSkill has Com_Clamp. (this means it ranges from 1-5), you try to set it to > 5.
  2. Bot skill is float, you can add bots with skill, 2.4, or 3.7, or 4.4, or whatever, but not more than 5 or so.
  3. As already said, there is NO skill 6 for bots (inside the botfiles), so I don’t know what you want to access?
  4. BTW, you also removed the bots handicap.

#16

I thought they didn’t need it & it also makes them slightly harder on those difficulties. That change was intentional @KuehnhammerTobias. And also, yes, I’m making the skill 6 for the botfiles, so no need to worry about that at this point in time. And how do you increase the clamp anyway?