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

The Storm 20-10-2004 20:12

Need some help for shield support
 
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.

Pierre-Marie Baty 20-10-2004 21:57

Re: Need some help for shield support
 
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 ?

The Storm 20-10-2004 22:32

Re: Need some help for shield support
 
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.

Whistler 21-10-2004 12:24

Re: Need some help for shield support
 
the "CS_WEAPON_SHIELDGUN (1 << 2)" weapon ID actually doesn't exist. I just added it to make them buy the shield.

The Storm 21-10-2004 18:04

Re: Need some help for shield support
 
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??????

Pierre-Marie Baty 21-10-2004 22:50

Re: Need some help for shield support
 
Look where the other CS_WEAPON_xxx are defined...

The Storm 22-10-2004 00:07

Re: Need some help for shield support
 
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

Pierre-Marie Baty 22-10-2004 04:11

Re: Need some help for shield support
 
well, check your buy code, then ??

The Storm 27-10-2004 00:24

Re: Need some help for shield support
 
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.

Huntkillaz 27-10-2004 00:53

Re: Need some help for shield support
 
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


All times are GMT +2. The time now is 14:59.

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