Raised This Month: $ Target: $400
 0% 

[HowTo] Register CZ bots with Hamsandwich


Post New Thread Reply   
 
Thread Tools Display Modes
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-27-2013 , 19:15   Re: [HowTo] Register CZ bots with Hamsandwich
Reply With Quote #11

Quote:
Originally Posted by Arkshine View Post
@DeagLe.Studio, No idea what you're talking about.
I mean check when player put in server, then check if he is a bot then register hambots with RegisterHamFromEntity.
TheDS1337 is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-28-2013 , 01:58   Re: [HowTo] Register CZ bots with Hamsandwich
Reply With Quote #12

First post updated. Now it should work with RegisterHam used at any time and you don't need amxx plugin anymore. Also I'm not sure how IsCzBot(id) function from the plugin was supposed to identify cz bots, so I skipped it. I tried to run it with both cz bots and pod bot mm using simple test plugin and there were no problems. I didn't do many tests, so anyone interested, test it to see if you can find any bugs.
__________________
Impossible is Nothing
Sylwester is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 06-28-2013 , 08:24   Re: [HowTo] Register CZ bots with Hamsandwich
Reply With Quote #13

Quote:
Originally Posted by Arkshine View Post
@Sylwester, that's cool ; and I will implement it for sure in the updated Ham.
Cool, nice to hear this.
yokomo is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-29-2013 , 03:12   Re: [HowTo] Register CZ bots with Hamsandwich
Reply With Quote #14

Another update with some minor improvements and I also applied my changes to updated version.
Attached Files
File Type: zip hamsandwich_1.4.1_updated_src_v4.zip (134.1 KB, 90 views)
File Type: dll hamsandwich_amxx.dll (270.0 KB, 81 views)
__________________
Impossible is Nothing

Last edited by Sylwester; 07-16-2013 at 06:38. Reason: update #4, forgot to set meta_result
Sylwester is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-29-2013 , 03:25   Re: [HowTo] Register CZ bots with Hamsandwich
Reply With Quote #15

Just pointing 2 things : std lib has to be avoided (replacements can be found in amxx, like CList.h, for example) and the entity not using "player" may not only for CZ bots so naming should be more generic. Easy to change but just saying.
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 06-30-2013 , 01:03   Re: [HowTo] Register CZ bots with Hamsandwich
Reply With Quote #16

Quote:
Originally Posted by Arkshine View Post
Just pointing 2 things : std lib has to be avoided (replacements can be found in amxx, like CList.h, for example) and the entity not using "player" may not only for CZ bots so naming should be more generic. Easy to change but just saying.
So is the attachment above is safe to use on server? or need to wait for your version?
yokomo is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-30-2013 , 09:01   Re: [HowTo] Register CZ bots with Hamsandwich
Reply With Quote #17

It didn't crash my server so it should be fine. The point is that someone should let it run on a proper server to see if there are any problems before it can be added to updated version (I only did some basic tests).

Quote:
Originally Posted by Arkshine View Post
Just pointing 2 things : std lib has to be avoided (replacements can be found in amxx, like CList.h, for example) and the entity not using "player" may not only for CZ bots so naming should be more generic. Easy to change but just saying.
I changed std::list to CVector. As for naming, I'll leave it as it is. You can change it to what you think is the most appropriate when you add it to updated ham.
__________________
Impossible is Nothing
Sylwester is offline
Reply



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 19:52.


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