[TF2] Need help re-creating sv_cheats "bot" command
Hello, I am trying to re-create most cheat commands so that they can be used without having to set sv_cheats to 1 and disabling achievements. Removing FCVAR_NOTIFY and FCVAR_REPLICATED from sv_cheats and toggling it will still disable achievements.
I am currently having trouble with the "bot" command. It uses "-team" or "-name" etc to determine the value for the argument and I am unsure on how to do that with SourcePawn.
So far I have this CommandListener:
If anyone can help or know an easier way, I would appreciate it. Thanks. |
Re: [TF2] Need help re-creating sv_cheats "bot" command
take a look at https://sm.alliedmods.net/new-api/console/GetCmdArg it might help you.
|
Re: [TF2] Need help re-creating sv_cheats "bot" command
Quote:
GetCmdArg(1, sName, sizeof(sName)); will only get "-name". Thanks for trying to help. |
Re: [TF2] Need help re-creating sv_cheats "bot" command
Quote:
|
Re: [TF2] Need help re-creating sv_cheats "bot" command
Quote:
|
Re: [TF2] Need help re-creating sv_cheats "bot" command
Quote:
PHP Code:
|
Re: [TF2] Need help re-creating sv_cheats "bot" command
Quote:
|
Re: [TF2] Need help re-creating sv_cheats "bot" command
Btw, appearently an AI bot or puppet bot is a fake client but not the other way around? For example wasn't able to use bot_changeclass (removed FCVAR_CHEAT on the command) on the bot I created. "No bot with name Bot01".
|
All times are GMT -4. The time now is 15:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.