Help - Search - Members - Calendar
Full Version: Knowing weapons holding by a bot
RCBot Forums > RCBot 2 for HL2 > Source
J@nek
Hi,

I'm not a plug-in specialist and don't really know limits of a plug-in. At the moment, I'm trying to identify which weapons a bot is having in its inventory.

I know there is "hasWeapon" but this method is usefull if you are informing a bot of the weapon it has using "addWeapon". My problem is that I never assign weapons to bots by myself as bots don't have specific weapons coz my mod is based on hl2dm (weapons are assigned using GiveDefaultItem in server.dll). Each bot is spawning with a default set of weapons and it is increasing its set of weapons by touching them in battleground.

How can I browse weapons a bot is having to set weapon it has using "setHasWeapon" ?

Thank you in advance
J@nek
I think I found how to do that. It consists on adding an event in my server.dll that the plug-in is able to handle.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.