.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Ideas (http://forums.bots-united.com/forumdisplay.php?f=50)
-   -   Restricting on specific weapons. (http://forums.bots-united.com/showthread.php?t=4830)

woot woot 04-01-2006 23:13

Restricting on specific weapons.
 
I think this has been mentioned, and I know it cannot be done through any other plugin. But, since you can restrict the bots to rifles, or snipers, wouldn't it be possible to restrict them even more? Like only using awp, and nothing else?

I hate when I'm on awp and they use autosnipers v.v players complain too, saying it isn't fair. lol. Would be nice. I also read what PMB said about other plugins ignored by the bots coz they themselves are plugins.

KWo 04-01-2006 23:25

Re: Restricting on specific weapons.
 
Quote:

Originally Posted by podbot mm doc
pb weaponmode (value) - correct value are 1 to 7. This command lets You select the weapon will be used by bots only (they will not buy another type).
  • 1 - Knife only (JasonMode!)
  • 2 - Pistols
  • 3 - Shotguns
  • 4 - Machine Guns
  • 5 - Rifles
  • 6 - Sniper Weapons
  • 7 - All Weapons (Standard)

Just read here.

woot woot 05-01-2006 02:59

Re: Restricting on specific weapons.
 
I don't think you got my idea. I already know they do that, what I'm saying is to go to more specific weapons such as only using an awp and nothing else. No autosnipers.. none of that.

botmeister 05-01-2006 03:27

Re: Restricting on specific weapons.
 
The mean bot manager does allow you to so some specific restrictions.

From the manual ....

====================================
Weapon Restrictions
====================================

These commands work great on maps like shotgun_map, scout_map and
awp_map. They can be real fun on other maps as well.

default minimum access level: Clan Member

NOTE: Weapons spawned with a player will remain available until the
player dies.

Use these commands from console or "say" message:

m_knifewar ......... Knives and nades only
m_nadewar .......... Nades only
m_pistolwar ........ Pistols only
m_lightpistolwar ... Pistols only - deagle removed
m_deaglewar ........ Deagle pistol only
m_glockuspwar ...... Glock + usp pistol only
m_glockwar ......... Glock pistol only
m_uspwar ........... Usp pistol only
m_dual57war ........ Dual vs Five Seven pistols
m_p228war .......... p228 pistol only
m_subwar ........... Submachine guns only
m_lightsubwar ...... Submachine guns only - MP5 Navy and P90 removed
m_uziwar ........... Terr: Glock + MAC-10, CT: USP + TMP
m_umpwar ........... Universal Machine Pistol + Glock or USP
m_p90war ........... P90 submachine gun + Glock or USP
m_mp5war ........... MP5 Navy submachine gun + Glock or USP
m_shotgunwar ....... All shotguns and pistols
m_pumpwar .......... Pump shotgun and pistols - autoshotgun and deagle removed
m_autoshotgunwar ... Autoshotgun and pistols only
m_snipewar ......... All snipe rifles and pistols
m_scoutwar ......... Scout and all pistols
m_lightsnipewar .... All snipe rifles and pistols - AWP removed
m_hksig550snipewar . HK and Sig 550 sniping rifles only with default pistols
m_awpwar ........... AWP and Glock or USP pistols
m_parawar .......... PARA Machine gun and all pistols
m_lightarmswar...... Light weapons only
m_heavyarmswar...... Heavy weapons only and all pistols
m_ak47coltwar....... AK-47 Assault Rifle vs Colt M4A1 Carbine
m_sg522augwar....... SG-522 Commando vs Steyr Aug
m_FamasGalilWar..... Famas and Galil assault rifles and all pistols
m_regularwar ....... All weapons available

These additional weapon bans are available:

m_banawp < on | off >
m_banhenade < on | off >
m_banflash < on | off >
m_bansmoke < on | off >

On = ban in effect
Off = ban not in effect

woot woot 05-01-2006 03:30

Re: Restricting on specific weapons.
 
I've used your mod before ^^.. a lotta fun. Hmm, and you've tried using these against bots coz I can't recall using it when I did have your mod.

botmeister 05-01-2006 05:07

Re: Restricting on specific weapons.
 
Yes it works pretty good but not perfectly because I could not prevent the bots from buying banned weapons directly.

The method I used prevents the banned weapon from being spawned, so when they try and buy a banned weapon, nothing appears. I then force the bots to buy whatever weapons are not banned.

The bots don't know that they can't buy the restricted weapons so when a bot tries to buy the weapon it wastes money on it which puts them at a disadvantage. I never figured out how to give the bots more money which would have solved the problem (I think it can be done).

There may also be an issue with stability because preventing weapons from being spawned may break something along the way.

Despite all this, I found it still works pretty good.

woot woot 05-01-2006 06:43

Re: Restricting on specific weapons.
 
Ohh, nice job then. ^^ I just hope in the future they can implement this to the bots. Is it that hard to be more specific when they can already restrict to shottys or rifles?

KWo 05-01-2006 10:05

Re: Restricting on specific weapons.
 
My reply sticked to that Your part of question:

"Like only using awp, and nothing else? "

I don't think it's not doable to make a weapon restriction. There is a need to add to bots code a cvar which will have some bits responsible for buying/using (it needs work also for pickup) some weapons. If some bit of that cvar is set to 1 - it may means this weapon is banned. So in bot's code such weapon can't be bought or pickuped up according to bit of that cvar. And to control this cvar You can easy write an AMX/AMXX or ClanMod script (this even me - I could do it)

If my C++ coding skill would be at least 10% (now is about 0%), I could do it my-self in bot code...=)

woot woot 05-01-2006 19:58

Re: Restricting on specific weapons.
 
Well, I have no knowledge of that XD so I can for the most part just use mEAnmod. :) Thanks.

KWo 22-03-2006 08:37

Re: Restricting on specific weapons.
 
Quote:

Originally Posted by KWo
If my C++ coding skill would be at least 10% (now is about 0%), I could do it my-self in bot code..

Well - I still don't think my C++ coding skill reached 10%, but the weapon restriction is done in current sources - still in beta testing. :)

Ancient 15-05-2006 00:13

Re: Restricting on specific weapons.
 
Well being able to restrict weapons for bots only like the way Condition Zero has it would be nice.
Like in pod_bot.cfg list the weapons allowed etc... like:
pb_wpon_gilal 0
pb_wpon_m4a 1
pb_wpon_machinegun 0 etc...

Just a thought.

KWo 15-05-2006 08:47

Re: Restricting on specific weapons.
 
Read carefully about weapon restriction in podbot.cfg included in beta zip. You can even control it from console during the game.

Quote:

Originally Posted by podbot.cfg
# Weapons, equipment and ammo restriction (for buying)
# bit numbers meaning - the left one is the 0 in that string 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
pb_restrweapons "00000000000000000000000000"

# 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
pb_restrequipammo "000000000"

If You just want to restrict a shield and awp You need to write:

pb_restrweapons "00000000000000000000010001"

woot woot 16-05-2006 02:53

Re: Restricting on specific weapons.
 
Omg, I think I was restricting wrong then... v.v Because I wanted to restrict shield, I went:

Quote:

pb_restrweapons "000000000000000000000000025" xD
Now I know that it was only 1 or 0... I don't recall getting instructions for it lol. :) At least no errors came up.

KWo 16-05-2006 10:46

Re: Restricting on specific weapons.
 
It's done so to solve easy way the compatibility for weapon restrictions between podbot mm and AMX/AMXX/ClanMod. If You asre using all-in-one beta (with AMX X 1.71) - there is rewritten restrict.sma plugin to work with human players and podbot mm (once the admin decides to ban some weapon/equipement - it is unavailable now for human-players and bots - before it wasn't working for bots at all).

Quote:

Originally Posted by KWo
+ Changed: all settings in podbot.cfg are cvars since now.
+ Changed: addbot is replace by add command (the syntax is the same)
+ Added: access to podbot menu when the game is created on a dedicated server.
+ Changed: Bots detect friend/enemy according to the TeamInfo messages instead checking the model (it should work correctly with such mods as SuperHero, ChickenMod etc). Thanks to T(+)rget (AMX), Bailopan (AMX MOD X) and THE_STORM.
+ Added: support for compatibility with weapon restriction management done by fan mods (as AMX , AMX X, AdminMod, ClanMod) - if weapon is restricted for human-players - bots will not buy that item , too :)
(...)



All times are GMT +2. The time now is 13:39.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.