AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Control Bots (https://forums.alliedmods.net/showthread.php?t=336548)

SoulWeaver16 03-23-2022 06:52

Re: Control Bots
 
I use Czero and I have many plugins and I can use it normally.

Siska1 03-27-2022 16:50

Re: Control Bots
 
https://i.imgur.com/TjWS4ls.jpg
In fact, I forgot to ask you the most important thing.
Which bots can control this plugin ?
Because I use yapb and when press E nothing happen...

EFFx 03-27-2022 16:59

Re: Control Bots
 
I tested this plugin with podbots. To control, first of all you must be dead. After dying, you must change to first person view as well and then press the E button. By default you can only control bots from the same team as yours, can be changed using the cvar that is shown in the main post.

Siska1 03-27-2022 17:39

Re: Control Bots
 
Quote:

Originally Posted by EFFx (Post 2775349)
I tested this plugin with podbots. To control, first of all you must be dead. After dying, you must change to first person view as well and then press the E button. By default you can only control bots from the same team as yours, can be changed using the cvar that is shown in the main post.

Maybe you will be able to test with yapb bots ?

EFFx 03-27-2022 18:09

Re: Control Bots
 
Well, the plugin uses is_user_bot native to detect bots, if the player has "BOT" as authid, it'll be controlable. Does it make any difference between yapb and podbots? I'm not familiar with this.

Siska1 03-27-2022 18:33

Re: Control Bots
 
I found the problem. It turns out I have another plugin that uses "E".
Sorry to bother you. Now I will think about how I can possibly use both...
Can the button be changed?

EFFx 03-27-2022 18:41

Re: Control Bots
 
You did not ^-^.
For button change, you have to do it manually on line 229:

PHP Code:

if((iButton IN_USE) && (pev(iPlayerpev_iuser1) == OBS_IN_EYE)) 

hlsdk_const.inc:

PHP Code:

#define IN_ATTACK                       (1<<0)
#define IN_JUMP                         (1<<1)
#define IN_DUCK                         (1<<2)
#define IN_FORWARD                      (1<<3)
#define IN_BACK                         (1<<4)
#define IN_USE                          (1<<5)
#define IN_CANCEL                       (1<<6)
#define IN_LEFT                         (1<<7)
#define IN_RIGHT                        (1<<8)
#define IN_MOVELEFT                     (1<<9)
#define IN_MOVERIGHT                    (1<<10)
#define IN_ATTACK2                      (1<<11)
#define IN_RUN                          (1<<12)
#define IN_RELOAD                       (1<<13)
#define IN_ALT1                         (1<<14)
#define IN_SCORE                        (1<<15)     // Used by client.dll for when scoreboard is held down 


Siska1 03-27-2022 19:01

Re: Control Bots
 
Amazing plugin, thank you very much!

EFFx 03-27-2022 19:17

Re: Control Bots
 
Quote:

Originally Posted by Siska1 (Post 2775368)
Amazing plugin, thank you very much!

Happy to read that, I appreciate your words.

DruGzOG 03-28-2022 09:17

Re: Control Bots
 
Great plugin, definitely a fun addon for a mod I've been working with, which will make things easier :D


All times are GMT -4. The time now is 06:51.

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