.:: 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 ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Re: Need some help for shield support
Old
  (#21)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Need some help for shield support - 28-10-2004

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
[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]

Last edited by sPlOrYgOn; 28-10-2004 at 02:29..
  
Reply With Quote
Re: Need some help for shield support
Old
  (#22)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Need some help for shield support - 28-10-2004

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.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Need some help for shield support
Old
  (#23)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Need some help for shield support - 28-10-2004

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.
  
Reply With Quote
Re: Need some help for shield support
Old
  (#24)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Need some help for shield support - 29-10-2004

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;
  
Reply With Quote
Re: Need some help for shield support
Old
  (#25)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Need some help for shield support - 29-10-2004

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.
  
Reply With Quote
Re: Need some help for shield support
Old
  (#26)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Need some help for shield support - 29-10-2004

*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 ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."

Last edited by Pierre-Marie Baty; 29-10-2004 at 11:33..
  
Reply With Quote
Re: Need some help for shield support
Old
  (#27)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Need some help for shield support - 29-10-2004

the number seems to be correct, I think there's something wrong with somewhere else in your code
  
Reply With Quote
Re: Need some help for shield support
Old
  (#28)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Need some help for shield support - 29-10-2004

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.
  
Reply With Quote
Re: Need some help for shield support
Old
  (#29)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Need some help for shield support - 30-10-2004

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..
  
Reply With Quote
Re: Need some help for shield support
Old
  (#30)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Need some help for shield support - 30-10-2004

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