.:: 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
Re: Hi, thanks and help!
Old
  (#11)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Hi, thanks and help! - 02-07-2005

I ran into this a while ago when making a new gorge res stealing plugin for ns, the old one checked the current weapon id and if edict_t->v.button had IN_ATTACK then did whatever it needed to do.
My goal was to use something more reliable, what I did was hook pfnPrecacheEvent and stored the id for "events/healspray.sc".
Then, I hooked pfnPlaybackEvent and checked the event id against the one i stored. If they matched then you could be sure the weapon was actually fired.

I don't know if it works the same way in DMC but it should, good luck with your bot though

Last edited by Lazy; 02-07-2005 at 07:46..
  
Reply With Quote
Re: Hi, thanks and help!
Old
  (#12)
mfrx
Member
 
Status: Offline
Posts: 13
Join Date: Jun 2005
Default Re: Hi, thanks and help! - 11-07-2005

Sorry for my late reply - but thanks it seems to be workng a treat

Just got to tidy it up a bit now
  
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