.:: 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 ::. > Cyborg Factory > POD-Bot mm > Bug Reports
Bug Reports Post any bug you experience with the latest release of this bot here

Reply
 
Thread Tools
Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#1)
AlexBreems
Member
 
Status: Offline
Posts: 55
Join Date: Feb 2008
Default Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 30-04-2008

Bot do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" (I give a command in "DeathMsg")

I use PodBotMM V3B19f

It's a bug???

Last edited by AlexBreems; 30-04-2008 at 21:41..
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#2)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 01-05-2008

Why do You need to clean this in DeathMessage? It should be cleaned anyway by CS engine, when the bot/player is dead. Attach the code of all Your plugin, than we can talk a bit more detailed. More than likely metamod is blocking this message so it cannot be reached by a bot (so the bot doesn't know anything about Your message concerning the defuser).
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#3)
AlexBreems
Member
 
Status: Offline
Posts: 55
Join Date: Feb 2008
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 01-05-2008

I do it that Defuse Kit did not drop out after death
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#4)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 01-05-2008

Really? lol
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#5)
AlexBreems
Member
 
Status: Offline
Posts: 55
Join Date: Feb 2008
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 01-05-2008

The same principle of work in the relation "Defuse Kit" at a plugin "No Weapon Drop" by VEN

Bold font a piece from a plugin responsible for it:

public event_death() {
new id = read_data(2)
if (!(get_pcvar_num(g_pcvar_state) & FLAG_DEAD) || !(get_pcvar_num(g_pcvar_teams) & FLAG_CT) || !cs_get_user_defuse(id))
return

if (CONTAIN_FLAG_OF_INDEX(get_pcvar_num(g_pcvar_allow ), DEFUSER))
return

cs_set_user_defuse(id, 0)
set_pev(id, pev_body, 0) // backward compatibility

}
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#6)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 02-05-2008

And I believe that one is also not working with metamod bots (because of the same reasons).
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#7)
AlexBreems
Member
 
Status: Offline
Posts: 55
Join Date: Feb 2008
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 02-05-2008

You consider that a problem not in PodBotMM and in Metamod?
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#8)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 02-05-2008

Eaxctly - if the bot code cannot see the messages blocked by metamod, what I can do with this in bot code?
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#9)
AlexBreems
Member
 
Status: Offline
Posts: 55
Join Date: Feb 2008
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 02-05-2008

I have found a way out (bold font):

public event_death() {
new id = read_data(2)
if (!(get_pcvar_num(g_pcvar_state) & FLAG_DEAD) || !(get_pcvar_num(g_pcvar_teams) & FLAG_CT) || !cs_get_user_defuse(id))
return

if (CONTAIN_FLAG_OF_INDEX(get_pcvar_num(g_pcvar_allow ), DEFUSER))
return

cs_set_user_defuse(id, 0)
set_pev(id, pev_body, 0) // backward compatibility
set_task(0.1, "task", id)
}

public task(id) {
cs_set_user_defuse(id, 1)
}
  
Reply With Quote
Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)"
Old
  (#10)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Do not buy Defuse Kit after AMXX command "cs_set_user_defuse (id, 0)" - 02-05-2008

So that means Your plugin was just too fast - it was adding the defuser to the dead bot right before CS engine was reseting it. Now You delayed and it works. Good to know the trick.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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