Raised This Month: $ Target: $400
 0% 

Remove bomb from a bot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 02-21-2006 , 13:07   Remove bomb from a bot
Reply With Quote #1

How to let a bot drop the bomb.

Thanks,
Ramon
__________________
Um, hi.
Ramono is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 02-21-2006 , 16:58  
Reply With Quote #2

try this:
Code:
engclient_cmd(bot,"drop","weapon_c4");
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-21-2006 , 21:14  
Reply With Quote #3

Rumor has it that this is the better way:
Code:
client_cmd(bot,"drop","weapon_c4");
Brad is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 02-21-2006 , 21:16  
Reply With Quote #4

I don't believe client_cmds work on bots, if they do, not all bots. engclient_cmd might work though. Not TOO sure.

However, could be wrong, this is my knowledge of bots and executing commands on their "consoles"
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-21-2006 , 21:44  
Reply With Quote #5

You're saying "Rumor" is wrong?!?
Brad is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 02-21-2006 , 21:56  
Reply With Quote #6

from what i can tell this is how it works:

client_cmd: tells the client to run a command, which then goes to the server
engclient_cmd: tells the server directly that the client has run a command

since bots don't have clients, you cannot route commands through them (client_cmd), thus you have to just tell the server that they did it anyway (engclient_cmd).
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 02-22-2006 , 08:39  
Reply With Quote #7

Quote:
Originally Posted by Kraugh
try this:
Code:
engclient_cmd(bot,"drop","weapon_c4");
Nope, this doesnt work.
__________________
Um, hi.
Ramono is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 02-22-2006 , 09:19  
Reply With Quote #8

This is kind of complicated by you could slay the bot and then revive it.
Jordan is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 02-22-2006 , 10:08  
Reply With Quote #9

Tought of that b4 you
http://forums.alliedmods.net/showthread.php?t=24423
Ill use this untill i find another way.
__________________
Um, hi.
Ramono is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 02-22-2006 , 11:17  
Reply With Quote #10

Actually, now that I think of this, what Kraugh said should definetly work, because I used that in my own plugin and it works for whoever.
Jordan is offline
Reply


Thread Tools
Display Modes

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


All times are GMT -4. The time now is 20:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode