.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   IvPBot (http://forums.bots-united.com/forumdisplay.php?f=39)
-   -   Weapon Buy (http://forums.bots-united.com/showthread.php?t=1269)

justinone 26-08-2005 23:28

Re: Weapon Buy
 
OK so i know how to do the AK and M4 thing, but can somebody tell me how to stop the bots from picking up weapons on the ground??? or even better stop them picking up enemy weapons off the ground???

also i, was wondering why when i edited my botweapon.cfg,......

# Weapon Priorities for a Normal Standard Bot
[NORMAL]

0,1,2,3,4,5,6,7,8,18,9,14,23,10,24,22,19,20,21,17, 14,23,13,12,16

13= p90 12= mp5 16= M4A1 why do bots only pick M4A1 after a few rounds and not pick the MP5 or P90???

ThAnKs>!!

eM-Viper 03-11-2005 17:14

Re: Weapon Buy
 
I would like to know how the botweapons.cfg is read by the bot plugin. i notice [STANDARD] and [AS]. I am assuming that standard is read threw a variable that is set in the map, and same with as insteas of reading the prefix of the map. so that only those maps are supported and cannot make custom weapon restriction configs. it would be nice if u can add [awp_] and then all maps with the prefix of awp_ get a certain weapon restriction (what i tried and found out that doesnt work so well :P). I did this for orc glove in the wc3ft plugin
Code:

#if MOD ==0
                new mapname[32]
                get_mapname(mapname,31)
                if (containi(mapname,"aim_")!=-1 || containi(mapname,"air")!=-1 || containi(mapname,"awp_")!=-1 || containi(mapname,"cars")!=-1 || containi(mapname,"fun")!=-1 || containi(mapname,"fy_")!=-1 || containi(mapname,"ka_")!=-1 || containi(mapname,"scout")!=-1 || containi(mapname,"ship")!=-1 || containi(mapname,"cs_pumpo")!=-1 || containi(mapname,"cs_deagle5")!=-1){
                        g_givePistol=false
                        if (iCvar[FT_NO_GLOVES_ON_KA])
                                g_giveHE=false
                        else
                                g_giveHE=true
                }
                else{
                        g_giveHE=true
                        g_givePistol=true
                }
                if(iCvar[FT_NO_ORCNADES]){
                        if (containi(mapname,"ka_")!=-1 || containi(mapname,"jail_riot")!=-1 || containi(mapname,"aim_")!=-1 || containi(mapname,"awp_")!=-1 || containi(mapname,"scout")!=-1)
                                g_notAllowHE=true
                        else
                                g_notAllowHE=false
                }
        #endif
       
        return PLUGIN_CONTINUE
}

I dont have the source code to look at :P dont know where to get it, I did some how get an older version but I dont have a means to compile it correctly. Any help would be apreciated. Thanks.


All times are GMT +2. The time now is 10:41.

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