AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [L4D(2)] Take Over Bot (https://forums.alliedmods.net/showthread.php?t=83869)

Matthias Vance 01-16-2009 19:30

[L4D(2)] Take Over Bot
 
3 Attachment(s)
Plugin features:
  • Take over survivor bot when you die.
  • Added a CVAR (tob_respawn_time) that enables you to configure the respawn time

Note:
  • You should put the .txt file in your gamedata directory!
  • Taking over infected bots is not possible at this moment, since we cannot SDKCall Director functions (L4D)

LS,

Here is my first public plugin that I release on this forums.

It basically lets you take over a survivor bot when you die and before it does that it will give a message to the player. It also lets you spectate the bot a few seconds before.

Kind regards,

Matthias Vance

KawMAN 01-16-2009 19:38

Re: [L4D] Take Over Bot
 
sb_takecontrol <bot_name>, where <bot_name> is zoey louis francis or bill. This cmd have cheat flag but work fine.

Matthias Vance 01-16-2009 19:39

Re: [L4D] Take Over Bot
 
I don't want players to be able to use commands, this will give the first player that dies control of the available bot.

KawMAN 01-16-2009 19:41

Re: [L4D] Take Over Bot
 
Maybe you sholud change sdk call to Fake Client Command

new String:command[] = "sb_takecontrol";
new flags = GetCommandFlags(command);
SetCommandFlags(command, flags & ~FCVAR_CHEAT);
FakeClientCommand(client, "sb_takecontrol bill");
SetCommandFlags(command, flags);

RAAP 01-16-2009 20:10

Re: [L4D] Take Over Bot
 
Will this work in both VS and COOP???

Matthias Vance 01-17-2009 06:49

Re: [L4D] Take Over Bot
 
Quote:

Originally Posted by KawMAN (Post 745466)
Maybe you sholud change sdk call to Fake Client Command

I don't like using commands for stuff that's totally unnecessary. I consider it as a hack. Thanks for sharing your opinion though.

Quote:

Originally Posted by RAAP (Post 745484)
Will this work in both VS and COOP???

Yes it will! :D, there is one problem though .. if all survivors die (on either VS or COOP), and there is one bot left, nobody will be able to take this bot because the round will end.

KawMAN 01-17-2009 07:49

Re: [L4D] Take Over Bot
 
Quote:

Originally Posted by Matthias Vance (Post 745641)
Yes it will! :D, there is one problem though .. if all survivors die (on either VS or COOP), and there is one bot left, nobody will be able to take this bot because the round will end.

try to change sb_all_bot_team to 1

Matthias Vance 01-17-2009 07:53

Re: [L4D] Take Over Bot
 
Quote:

Originally Posted by KawMAN (Post 745662)
try to change sb_all_bot_team to 1

That's actually a good idea, but it affects other situations. I will look into it after this weekend!

DevilsReject 01-18-2009 15:52

Re: [L4D] Take Over Bot
 
why cant this be made to work with the add bots plugin and then have it made so that real people could take over those bots?
can you combine the 2? or mod this one so that people could join and take over bots?

Matthias Vance 01-18-2009 16:33

Re: [L4D] Take Over Bot
 
Yeah I could make that work. Will look into this during the following week!

Regards,

Matthias


All times are GMT -4. The time now is 16:43.

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