.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Need some help for shield support (http://forums.bots-united.com/showthread.php?t=2820)

sPlOrYgOn 28-10-2004 02:25

Re: Need some help for shield support
 
Code:

typedef struct
{
  int iId; // the weapon ID value
  char weapon_name[64]; // name of the weapon when selecting it
  char model_name[64]; // Model Name to separate CS Weapons
  char buy_shortcut[64]; // Buy Shortcut (CS 1.6 specific)
  char buy_command[64]; // Buy Script to get this Weapon (equivalent of the above but for CS 1.5)
  float primary_min_distance; // 0 = no minimum
  float primary_max_distance; // 9999 = no maximum
  float secondary_min_distance; // 0 = no minimum
  float secondary_max_distance; // 9999 = no maximum
  bool  can_use_underwater; // can use this weapon underwater
  bool  primary_fire_hold; // hold down primary fire button to use?
  float primary_charge_delay; // time to charge weapon
  int iPrice; // Price when buying
  int min_primary_ammo;
  int iTeamStandard; // Used by Team (Number) (standard map)
  int iTeamAS; // Used by Team (AS map)
  bool  bShootsThru; // Can shoot thru Walls
} bot_weapon_select_t;

Theres the one from PBMM.. lets hope LN didn't change anything and it should be fine :D
[edit]
What I suggest is just force them to buy shield and make a game with mp_startmoney 16000 or something...
if nothing has changed the function is probably called BotBuyStuff
[/edit]

Pierre-Marie Baty 28-10-2004 14:50

Re: Need some help for shield support
 
nope Splo, that is the one for PB2.6mm, but it's different in the old podbot, I know it for I changed the layout of this table myself, quite a lot.

It must be different in EPODbot. But I don't have the original podbot source on my computer right now, so I can't check.

The Storm 28-10-2004 20:26

Re: Need some help for shield support
 
Whistler can help us.
He make E[POD]bot for CS 1.6, CS_WEAPON_FAMAS and CS_WEAPON GALIL completeble.
I think that he will know for whats are the numbers.
So we must wait for help from him.

sPlOrYgOn 29-10-2004 02:20

Re: Need some help for shield support
 
then how about this one from podbot 2.6...
Code:

typedef struct
{
  int iId;  // the weapon ID value
  char  weapon_name[64];  // name of the weapon when selecting it
  char  model_name[64];        // Model Name to separate CS Weapons
  float primary_min_distance;  // 0 = no minimum
  float primary_max_distance;  // 9999 = no maximum
  float secondary_min_distance; // 0 = no minimum
  float secondary_max_distance; // 9999 = no maximum
  bool  can_use_underwater;    // can use this weapon underwater
  bool  primary_fire_hold;      // hold down primary fire button to use?
  float primary_charge_delay;  // time to charge weapon
  int  iPrice;                                // Price when buying
  int        min_primary_ammo;
  int  iTeamStandard;                        // Used by Team (Number) (standard map)
  int  iTeamAS;                                // Used by Team (AS map)
  int  iBuyGroup;                                // Group in Buy Menu (standard map)
  int  iBuySelect;                        // Select Item in Buy Menu (standard map)
  bool  bShootsThru;                        // Can shoot thru Walls
} bot_weapon_select_t;


The Storm 29-10-2004 10:57

Re: Need some help for shield support
 
sPlOrYgOn this code will not help.
On E[POD]bot the code is same as that code that you are give to me in your last post.

Pierre-Marie Baty 29-10-2004 11:31

Re: Need some help for shield support
 
*sigh* 9_9

that's just what we were asking dude...
do you understand the relation between this declaration and the array you posted, at least ?

Now if you want us to help you would you mind post the bit of code that references this array ? 9_9
Do you understand what we are saying ?

Whistler 29-10-2004 11:31

Re: Need some help for shield support
 
the number seems to be correct, I think there's something wrong with somewhere else in your code

The Storm 29-10-2004 19:10

Re: Need some help for shield support
 
Quote:

Originally Posted by Pierre-Marie Baty
Do you understand what we are saying ?

No! Sorry but I now learning C++ and I'm a new bot coder.
:'(
Can you tell me what part of the code you want becorse I don't understand what do you mean in your last post.
I'm very sorry for this stuped qustions but I'm new.

sPlOrYgOn 30-10-2004 02:23

Re: Need some help for shield support
 
give the code like what I did...
find the structure called "bot_weapon_select_t" in epb and post it here..
within [ code] [ /code] tags..

The Storm 30-10-2004 11:23

Re: Need some help for shield support
 
Quote:

Code:

typedef struct
{
int iId;  // the weapon ID value
  char  weapon_name[64];  // name of the weapon when selecting it
  char  model_name[64]; // Model Name to separate CS Weapons
  float primary_min_distance;  // 0 = no minimum
  float primary_max_distance;  // 9999 = no maximum
  float secondary_min_distance; // 0 = no minimum
  float secondary_max_distance; // 9999 = no maximum
  bool  can_use_underwater;        // can use this weapon underwater
  bool  primary_fire_hold;          // hold down primary fire button to use?
  float primary_charge_delay;  // time to charge weapon
  int  iPrice;        // Price when buying
  int  min_primary_ammo;
  int  iTeamStandard;        // Used by Team (Number) (standard map)
  int  iTeamAS;        // Used by Team (AS map)
  int  iBuyGroup;        // Group in Buy Menu (standard map)
  int  iBuySelect;        // Select Item in Buy Menu (standard map)
  // Whistler: added for Cs 1.6
  int  iNewBuySelectT;
  int  iNewBuySelectCT;
  bool  bShootsThru;        // Can shoot thru Walls
} bot_weapon_select_t;


So there is the code.


All times are GMT +2. The time now is 02:43.

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