IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Knowing weapons holding by a bot
J@nek
post Aug 9 2009, 08:20 PM
Post #1


Member
**

Group: Members
Posts: 19
Joined: 18-May 09
Member No.: 1,541



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
J@nek
post Aug 9 2009, 08:49 PM
Post #2


Member
**

Group: Members
Posts: 19
Joined: 18-May 09
Member No.: 1,541



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 10:24 AM