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

Please someone to tell me where I wrong.
Quote:
{CS_WEAPON_SHIELDGUN, "weapon_shield","models/w_shield.mdl", 0.0, 2200.0, 0.0, 1200.0,
TRUE, TRUE, 2.3,650,
1,1,1,8,8,5,5,TRUE},
The bots don't won to buy shield and thats it.
Someone to help me please.

Last edited by The Storm; 20-10-2004 at 21:16..
  
Reply With Quote
Re: Need some help for shield support
Old
  (#2)
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 - 20-10-2004

There are other POD-bot offsprings here that can handle the CS 1.6 shield, both of which are open source.

Look in the source code of the following bots :
- POD-bot 2.6mm
- YaPB

OT: did you work out the metamod issue already ?



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

Quote:
Originally Posted by Pierre-Marie Baty
OT: did you work out the metamod issue already ?
No, I must firs clean all of the bugs on the bots before add new thinks.
  
Reply With Quote
Re: Need some help for shield support
Old
  (#4)
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 - 21-10-2004

the "CS_WEAPON_SHIELDGUN (1 << 2)" weapon ID actually doesn't exist. I just added it to make them buy the shield.
  
Reply With Quote
Re: Need some help for shield support
Old
  (#5)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Need some help for shield support - 21-10-2004

Quote:
Originally Posted by Whistler
the "CS_WEAPON_SHIELDGUN (1 << 2)" weapon ID actually doesn't exist. I just added it to make them buy the shield.
I Don't know were to add this line.
In to bot.h????
Or to anoder file??????
  
Reply With Quote
Re: Need some help for shield support
Old
  (#6)
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 - 21-10-2004

Look where the other CS_WEAPON_xxx are defined...



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

Quote:
Originally Posted by Pierre-Marie Baty
Look where the other CS_WEAPON_xxx are defined...
I discover that I were allready do that in Bot_Weapons.h

// weapon ID values for Counter-Strike
#define CS_WEAPON_P228 1
#define CS_WEAPON_SHIELDGUN 2
#define CS_WEAPON_SCOUT 3
#define CS_WEAPON_HEGRENADE 4
#define CS_WEAPON_XM1014 5
#define CS_WEAPON_C4 6
#define CS_WEAPON_MAC10 7
#define CS_WEAPON_AUG 8
#define CS_WEAPON_SMOKEGRENADE 9
#define CS_WEAPON_ELITE 10
#define CS_WEAPON_FIVESEVEN 11
#define CS_WEAPON_UMP45 12
#define CS_WEAPON_SG550 13
#define CS_WEAPON_GALIL 14
#define CS_WEAPON_FAMAS 15
#define CS_WEAPON_USP 16
#define CS_WEAPON_GLOCK18 17
#define CS_WEAPON_AWP 18
#define CS_WEAPON_MP5NAVY 19
#define CS_WEAPON_M249 20
#define CS_WEAPON_M3 21
#define CS_WEAPON_M4A1 22
#define CS_WEAPON_TMP 23
#define CS_WEAPON_G3SG1 24
#define CS_WEAPON_FLASHBANG 25
#define CS_WEAPON_DEAGLE 26
#define CS_WEAPON_SG552 27
#define CS_WEAPON_AK47 28
#define CS_WEAPON_KNIFE 29
#define CS_WEAPON_P90 30

but the bots don't buy shiel again.
Some other ideas
  
Reply With Quote
Re: Need some help for shield support
Old
  (#8)
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 - 22-10-2004

well, check your buy code, then ??



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

Oh I get all shield usage code form YAPB and the bots pickup shield, use the shield correctly but they can't buy shield.
I can't fix this problem from 4 days.
Buy code is ok.The bots must buy shield becorce he is defined in bot weapons and in bot_combat.cpp and added as 25 ID in weapon config file but bots can't buy shield.
All other bugs are fixed.
Please help me.
  
Reply With Quote
Re: Need some help for shield support
Old
  (#10)
Huntkillaz
Member
 
Huntkillaz's Avatar
 
Status: Offline
Posts: 594
Join Date: Mar 2004
Location: Middle Earth (New Zealand)
Default Re: Need some help for shield support - 27-10-2004

Quote:
Originally Posted by THE_STORM
Oh I get all shield usage code form YAPB and the bots pickup shield, use the shield correctly but they can't buy shield.
I can't fix this problem from 4 days.
Buy code is ok.The bots must buy shield becorce he is defined in bot weapons and in bot_combat.cpp and added as 25 ID in weapon config file but bots can't buy shield.
All other bugs are fixed.
Please help me.
try pb mm source


●_•
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 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