Absurd Minds

More than 100 years without a motto.
It is currently 28 Mar 2024 16:20

All times are UTC-04:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 10 Aug 2011 10:07 
Offline
User avatar

Joined: 31 Jan 2011 22:59
Posts: 462
How to customize bots for CZ/1.6 Servers

I found out - when trying to explain this to Serialp0rt when I was teaching him how to edit the bots for the Bones server - that editing bots is not particularly easy to "get." For starters the file is called "botprofile.db" if you have a cz server, if not you'll need to download this file then put it on your 1.6 server.

First of all, everybody here has the information I'm about to tell you at your disposal to read in your files, however, It's quite challenging to understand without REALLY looking at it, so that's why I'm posting this.

Alright, first of all, I'm simply going to list the different variables that you have to edit.

"Name" The Bots name can be anything it wants. Ex. -Tyler- Serialp0rt Anubis Joe Sachi QuickDraw Exe Panda would ALL WORK, but The Smurf would not. WHY not? Because there's a space in the name. You can fix this though by adding quotation marks.
The Smurf is not a valid bot name - you'll get a critical error, but "The Smurf" is acceptable. Likewise Serialp0rt is Tyler's bitch wouldnt work, but "Serialp0rt is Tyler's bitch" WOULD work. (Sorry serial, you know I had to. Still love ya !)

"Skill" - most simply defined as the accuracy of bots. A "skill = 50" means that a bot will hit you 50/100 times which - in reality - is misleading. If your shooting at him while he's shooting, or bullets simple don't reg, or if you moving, all these factor into accuracy.
A better - more specific - way to explain this is, if your standing completely still as is the bot, he'll hit you 50/ 100 times.

"Aggression" Don't get the wrong impression here. You WANT aggression high if you want better bots. Don't think that just because you give your bots an "aggression = 80" that 80% of the time he'll be running around madly. Actually, a bot with an high aggression will know things like : taking out a knife to run faster. Reacting when he hears someone running, and more. However, a more aggressive bot is more likely to run off by himself.

"ReactionTime" Pretty basic concept. Your variable will determine how long it will take for the bot to realize that he's "seen" you - c'mon bots can't see ! - . The average HUMAN reaction time is somewhere between .25 and .4 seconds.

"Attack Delay" How long it will take the bot to fire once he's acknowledged your presence, AND situated his crosshairs on a point of your body or NEAR it. An attack delay of 0 would mean that as soon as he sees you he'll fire. BUT YOU DONT WAN'T THAT. This will make the bots skill bitterly irrelevant, as he'll be madly spraying everywhere. Make it at least .15 for human- accurate results. The near part is what gets you in trouble because if your strafeing, and his crosshairs hit you, hell start shooting with a delay of 0. So, a delay of .15 will mean if your out of his crosshairs before the .15 mark, he won't fire.

"Teamwork" Mostly regarding how well they listen to Radio commands, but also if they'll do little things like: cover you if you have the bomb, are planting/defusing the bomb, reloading, follow you and COPY you (ex. walk when you walk AT THE SPOT you started walking).

"Weapon Preference" If they had the money, which would be the first gun they'd buy. The second? Third? Pistols? Grenades? Defuse Kits?

"Cost" Only relevant in the case that your making a mission pack, but I'll explain it anyways. Basically "cost" is how many points the bot is worth. For example, the most overpowered bot in all of story mode , Maverick, is worth a 3 cost/ 3 points to add to your team.

"Difficulty" Relevant MOSTLY to those making a mission pack. Difficulty refers to which mode the bot will appear on. Ex - a bot with a difficulty = hard will appear soley on the Hard part of the campaign. It's still important for servers though because if you want to add an "expert" bot then the bot must first have a difficulty or "expert" before it has a chance of being selected.

"VoicePitch" From 1- 120. How high (60-120) or deep (1-59) is the bot's "voice."

"Skin" Which skin will they wear . Ex - a terrorist with the skin = 3 will be wearing the Arctic Avenger outfit /attire /skin.


And that it for variables.

Example Bot:

-Tyler- / / this would be the name, name cannot include spaces, this part would //not be rendered because of the slashes, so, if you want to leave notes, you may.
Skill = 100
Aggression = 60
Reaction Time = .2
AttackDelay = .1
Teamwork = 92.23537247964224577878892413213254321332545232345
Weapon Preference = awp m4a1 ak47
Cost = 0 / / only change this number from 0 in the case that your making a mission pack.
Difficulty = Expert // this DOES matter because when your in the bot menu, if you //want to add a expert bot, then there's a chance it will pick -Tyler- , however, -Tyler- //would only appear on Expert difficulty in the case that we're making a mission pack.
Voicepitch = 70



STOP
I'm sure that you've been wondering, " is there a way to regulate which team the bot will be on?" And the answer is yes, if your making a mission pack, but because this is strictly a tutorial on how to edit the bots on your server, no. There's is no way to make a bot join a specific team, unless -of course- you use RCON.


OK KEEP GOING

Now repeatedly defining almost 10 variables 30 something odd times would be pointless, so there are shortcuts you can use called Templates.
Let's first make some. We'll have 3 weapon templates:




Template Sniper
WeaponPreference = awp
WeaponPreference = sg550
WeaponPreference = g3sg1
WeaponPreference = scout
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End
Template Rifle
WeaponPreference = m4a1
WeaponPreference = ak47
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template RifleT
WeaponPreference = ak47
WeaponPreference = m4a1
WeaponPreference = galil
WeaponPreference = famas
WeaponPreference = mp5
End

And four SKILL templates:

Template MegaBeast
Skill = 100
Aggression = 100
ReactionTime = 0.2
Cost = 4
Difficulty = EXPERT
VoicePitch = 85
End

Template Elite
Skill = 90
Aggression = 90
ReactionTime = 0.2
Cost = 4
Difficulty = EXPERT
VoicePitch = 88
End

Template Trash
Skill = 80
Aggression = 80
ReactionTime = 0.25
Cost = 3
Difficulty = HARD
VoicePitch = 92
End

Template Newbie
Skill = 75
Aggression = 75
ReactionTime = 0.25
Cost = 3
Difficulty = HARD
VoicePitch = 94
End


Obviously you would want MUCH more templates, but these will work for examples.
Now we can make bots in the blink of an eye. To do so, simply put what templates you want before the name of the bot.
Example A:

Elite+Sniper -Tyler-
Skin = 3
Voicepitch = 70
End

And ta-da. That's it.

"Elite" gave -Tyler- it's skill.
Skill = 100
Aggression = 100
ReactionTime = 0.2
Cost = 4
Difficulty = EXPERT
And "Sniper" gave it it's weapon preference :
WeaponPreference = awp
WeaponPreference = sg550
WeaponPreference = g3sg1
WeaponPreference = scout Obviously you would want MUCH more templates, but these will work for examples.
Now we can make bots in the blink of an eye. To do so, simply put what templates you want before the name of the bot.
Example A:

Elite+Sniper -Tyler-
Skin = 3
Voicepitch = 70
End

And ta-da. That's it.

"Elite" gave -Tyler- it's skill.
Skill = 100
Aggression = 100
ReactionTime = 0.2
Cost = 4
Difficulty = EXPERT
And "Sniper" gave it it's weapon preference :
WeaponPreference = awp
WeaponPreference = sg550
WeaponPreference = g3sg1
WeaponPreference = scout
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5

So all that was left to define was it's skin and voicepitch. Not bad.



Example B(ad):

Newbie+Rifle Serialp0rt
Skin = 2 //I mean black, wait White.
Voicepitch = 120 // and people say III sound girlish when speaking, sheesh.

Example C:

MegaBeast+RifleT Anubis
Skin = 1 // cause shes Number 1
Voicepich = // well, all these are male voice... so it's better to make her a mute. //Wait, do bots have genders?


And hopefully you've caught on by now.

Anyways, you must have BOTH the templates AND the bots in the SAME database file. In the next post, Ill just copy and paste the inner part of the file, so that you guys can use it - assuming you can't find it. With all this in mind, you should now be able to edit any bot/ template or MAKE any bot/template that you would like too.

Just post any questions below, and happy server setting.


Last edited by -Tyler- on 10 Aug 2011 10:20, edited 1 time in total.

Top
   
PostPosted: 10 Aug 2011 10:15 
Offline
User avatar

Joined: 31 Jan 2011 22:59
Posts: 462
Template Rifle
WeaponPreference = m4a1
WeaponPreference = ak47
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template RifleT
WeaponPreference = ak47
WeaponPreference = m4a1
WeaponPreference = galil
WeaponPreference = famas
WeaponPreference = mp5
End

Template Punch
WeaponPreference = aug
WeaponPreference = sg552
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template PunchT
WeaponPreference = aug
WeaponPreference = sg552
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template Sniper
WeaponPreference = awp
WeaponPreference = sg550
WeaponPreference = g3sg1
WeaponPreference = scout
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template Power
WeaponPreference = m249
WeaponPreference = xm1014
WeaponPreference = m3
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template Shotgun
WeaponPreference = xm1014
WeaponPreference = m3
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template Shield
WeaponPreference = shield
WeaponPreference = m4a1 // in case shield is disallowed
WeaponPreference = ak47
WeaponPreference = famas
WeaponPreference = galil
WeaponPreference = mp5
End

Template Spray
WeaponPreference = p90
WeaponPreference = tmp
WeaponPreference = mac10
WeaponPreference = mp5
End


// skill templates
Template Elite
Skill = 100
Aggression = 100
ReactionTime = 0.2
Cost = 4
Difficulty = EXPERT
VoicePitch = 85
End

Template Expert
Skill = 90
Aggression = 90
ReactionTime = 0.2
Cost = 4
Difficulty = EXPERT
VoicePitch = 88
End

Template VeryHard
Skill = 80
Aggression = 80
ReactionTime = 0.25
Cost = 3
Difficulty = HARD
VoicePitch = 92
End

Template Hard
Skill = 75
Aggression = 75
ReactionTime = 0.25
Cost = 3
Difficulty = HARD
VoicePitch = 94
End

Template Tough
Skill = 60
Aggression = 60
ReactionTime = 0.3
AttackDelay = 0.35
Cost = 2
Difficulty = NORMAL+HARD
VoicePitch = 96
End

Template Normal
Skill = 50
Aggression = 50
ReactionTime = 0.4
AttackDelay = 0.7
Cost = 2
Difficulty = NORMAL
End

Template Fair
Skill = 25
Aggression = 30
ReactionTime = 0.4
AttackDelay = 1.0
Cost = 1
Difficulty = EASY+NORMAL
VoicePitch = 105
End

Template Easy
Skill = 0
Aggression = 20
ReactionTime = 0.5
AttackDelay = 1.5
Cost = 1
Difficulty = EASY
VoicePitch = 110
End


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC-04:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited