.:: 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
Making bots drop weapons
Old
  (#1)
two_masks
Guest
 
Status:
Posts: n/a
Default Making bots drop weapons - 29-04-2004

Hey everyone,

Is there a constant defined anywhere for the button that makes a character drop their weapon (in the same way that IN_ATTACK causes the trigger to be pulled)?

Thanks,

JB
  
Reply With Quote
Re: Making bots drop weapons
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Making bots drop weapons - 29-04-2004

or you can force a client to run a command.. such as "drop"
it should work for bots too right?
  
Reply With Quote
Re: Making bots drop weapons
Old
  (#3)
two_masks
Guest
 
Status:
Posts: n/a
Default Re: Making bots drop weapons - 30-04-2004

Can you explain what you mean? Maybe a code snippet?

Thanks a lot,

JB
  
Reply With Quote
Re: Making bots drop weapons
Old
  (#4)
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: Making bots drop weapons - 30-04-2004

Yes, it's a client command.

Use FakeClientCommand (pEdict, "drop\n");

or FakeClientCommand (pEdict, "drop", NULL, NULL); if you're using botman's FakeClientCommand()



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
Reply


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