.:: 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. :)


All times are GMT +2. The time now is 15:21.

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