![]() |
Bots don't switch to given weapon after stripping
I am working on a mod which players can strip eachother's weapons. It strips all weapons and gives a knife but bots doesn't use the given knife.
|
Re: Bots don't switch to given weapon after stripping
So - if they are not using weapons (since You were stripped them from the bots) - what is the weapon they are using then?
How the hell they should know they don't have any weapon (since they believe they switched to - for example - ak47 and they didn't drop it)? Another thing - whenever You want to post a bug, You have to write the exact version number of the bot You are using. Since the new beta is available every few days, saying something like "the latest version" would tell me nothing... |
Re: Bots don't switch to given weapon after stripping
I am using version V3B19d and AMX Mod X 1.80. When I strip and give knife, their hands stand like they are using the weapon before getting stripped, but they don't have a weapon:
http://c.imagehost.org/t/0592/hl_200...3-11-52-53.jpg |
Re: Bots don't switch to given weapon after stripping
What is the method of stripping weapons You are using?
Are You clearing the right bit in the edict structure (pEdict->v.weapons)? Use also the command (to force them to use knife): FakeClientCommand (pEdict, "weapon_knife") You can check in podbot mm dll.cpp How does the function FakeClientCommand look like. Eventually You can check the source code of AMX X - it's similar method. |
Re: Bots don't switch to given weapon after stripping
It looks like "weapon_knife" works. Thanks for the tip, but it would be nicer if they switched to what they have.
|
Re: Bots don't switch to given weapon after stripping
But they aren't aware You have stripped their weapon. They believe - once they have switched to the selected weapon, they have it until droping it or dieing.
|
Re: Bots don't switch to given weapon after stripping
Quote:
|
Re: Bots don't switch to given weapon after stripping
When You are forcing the bot to dropping the weapon, the game engine automatically equipping the bot with a worse weapon (secondary or knife). The message about the current weapon is sent to the bot, so the bot knows what the weapon does he have.
|
Re: Bots don't switch to given weapon after stripping
Thanks a lot for your help.
|
All times are GMT +2. The time now is 02:54. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.