.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
Bots weapons restriction on awp maps
Old
  (#1)
Jks_84
Member
 
Status: Offline
Posts: 1
Join Date: Jun 2007
Warning Bots weapons restriction on awp maps - 04-06-2007

I would like to know how to restrict weapons for bots on awp map, they have to play only awp !!! what i have to do?


This is the config that i've tested and which doesn't work

Quote:
# This File holds some Tables for buying of weapons
# and configuration of Weapon Prefs for Personalities
#
# The Tables start from the least desired Weapon
# to the best.
# BE EXTREMELY CAREFULL WITH THESE TABLES BECAUSE A WRONG NUMBER
# OF ENTRIES OR A SCREWED UP FORMAT CAN EASILY CRASH POD, THERE'S
# NO ERROR PARSING DONE!

# Numbering of the weapons:
# 0 - KNIFE
# 1 - USP
# 2 - GLOCK18
# 3 - DEAGLE
# 4 - P228
# 5 - ELITE
# 6 - FIVESEVEN
# 7 - M3
# 8 - XM1014
# 9 - MP5NAVY
# 10 - TMP
# 11 - P90
# 12 - MAC10
# 13 - UMP45
# 14 - AK47
# 15 - SG552
# 16 - M4A1
# 17 - GALIL
# 18 - FAMAS
# 19 - AUG
# 20 - SCOUT
# 21 - AWP
# 22 - G3SG1
# 23 - SG550
# 24 - M249
# 25 - SHIELD

# Following are Tables which specify which Team is allowed
# to buy a weapon on a Map. You can also use it to allow/disallow
# Weapons for a Team or a Map/Gamemode (remember that some
# Weapons are team-specific and can't be bought by another team).
# -1 = Disallow Buying for any Team
# 0 = Terrorist Team only
# 1 = CT Team only
# 2 = Can be bought by both Teams
# Standard Weapon Tab for CS & DE Maps
#0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[STANDARD]
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,02,-1,-1,-1,-1


# Weapon Tab for AS Maps
[AS]
#0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,02,-1,-1,-1,-1

# Escape & Knife Arena Maps aren't supported by CS and
# so I don't care about them in POD-Bot neither !

# Some example Tables:
# Pistols Only
#-1,-1,-1,2,2,0,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
# Shotguns Only
#-1,-1,-1,-1,-1,-1,-1,2,2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
# SubMachine-Guns Only
#-1,-1,-1,-1,-1,-1,-1,-1,-1,2,1,2,0,2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1


# The following Tables stores the Weapon Priorities of the Bots depending on
# Personality (it affects buying & picking up better weapons from the
# ground).

# Weapon Priorities for a Normal Standard Bot
#0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[NORMAL]
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,21,-1,-1,-1,-1,-1,-1,-1

# Weapon Priorities for an Agressive Bot
#0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[AGRESSIVE]
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,21,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1

# Weapon Priorities for a Defensive Bot
#0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[DEFENSIVE]
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,21,-1,-1,-1
Ps: the server is a DeathMatch only AWP server with awp & aim maps
77.111.198.174:27015 DEATHMATCH | ONLY AWP | SKILLED | 24/7 | www.playforfun.fr

thanks to you for helping me
  
Reply With Quote
Re: Bots weapons restriction on awp maps
Old
  (#2)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Bots weapons restriction on awp maps - 04-06-2007

Quote:
Originally Posted by docs of podbot mm
IV Weapon/equipment restrictions settings


Note: This feature is absolutely new and it has been requested long time ago at BU forum by the people using AMX/AMXX/ClanMod weapon restriction. The people got frustrated when admin restricted for the players for example awp usgae, but bots still could buy it. Since this version it's possible to follow weapon/equipment restrictions done by those fun mods. There is a need to rewrite a bit restmenu.sma in AMX/AMXX to get cvar/cvars interface - to follow it in some another sma plugin to give the correct info to podbot mm binary. There is also a possibility to control manually weapons availability/restriction. The interface lets You use 2 strings bitwise as "00100..." - 0 means the weapon is available, 1 means the weapon is restricted. There are 2 cvars (as strings) defined for restrictions in podbot mm:

pb_restrweapons (default "00000000000000000000000000")
and
pb_restrequipammo (default "000000000")
The most left bit is numbered as 0, the next one is 1 etc.

The meaning of bits of pb_restrweapons cvar:
Pistols restriction
0 - KNIFE
1 - USP
2 - GLOCK18
3 - DEAGLE
4 - P228
5 - ELITE
6 - FIVESEVEN
Shotgun restrictions
7 - M3
8 - XM1014
SMG restrictions
9 - MP5NAVY
10 - TMP
11 - P90
12 - MAC10
13 - UMP45
Rifles restrictions
14 - AK47
15 - SG552
16 - M4A1
17 - GALIL
18 - FAMAS
19 - AUG
20 - SCOUT
21 - AWP
22 - G3SG1
23 - SG550
Machine Gun restriction
24 - M249
Shield restriction
25 - SHIELD

Exmple restrictions for shield, awp and XM1014:
pb_restrweapons "00000000100000000000010001"

The meaning of bits of pb_restrequipammo cvar:
0 - vest
1 - vest and helmet
2 - flashbang
3 - he grenade
4 - smoke grenade
5 - defuser
6 - night vision googles
7 - primary ammo
8 - secondary ammo

Exmple restrictions for flashbang, primary and secondary ammo:
pb_restrequipammo "001000011"
I hope the example in the docs is sufficiently clearly written.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com