English Bot Possession Script (Update 2) icon

19 comments
30.04.15 10:46:25 am
like 9 like it!
3 kb, 142 Downloads
Bowlinghead
User
Offline Off
Hello community,

This is the release of a new script which allows you to control a bot whenever you are dead (pretty much the same as in CS:GO).
Thank you, user sayori, for this idea.

Feel free to upload a better version or edit this.
Known bugs:
- when you control an opponent´s bot you will stay on the enemy team (reported by user WexDex)
- you do not get the visual skin of the bot when you control him (reported by user Seekay)
- you do not get special items if you control the bot (like the nightvision) because these are unequipable (console will say that it can lead to problems) - except the bomb (reported by user Seekay)

∗ New updates includes ∗
v2 • added: if you control a bot then every award (like a kill) goes to the bot. (reported by user VADemon )
v2 • a better weapon change system
v3 • optimization stuff
v3 • fixed bomb/flag bug (reported by user Seekay )
v3 • fixed bug where you can´t control bot even when the chat says you do (reported by user Seekay )

> How does it work:
Just press [F2] (or serveraction key 1) to get control.
Of course this only works if there is a living bot and you are dead!
You will respawn with the bot´s values (health, weapons, etc).
Note: Everything you do doesn´t affect your stats and you only can control one bot per round!

> Can I edit it?
Yes, you can do whatever you want. It makes me happy if you use it . I tried to explain my script (--comments) as best as I can.
Alternative you can delete the whole botctrl_serveraction function and use your own event. Just include my script and call botctrl_controlbot(id) (id = player id). This function returns false if there is no bot and true if player is a bot now.
Do it on a similiar way I did.

Note: if you save the player score in a .txt file (or similiar) and the player leaves while he is a bot his stats might get corrupted!

Easy edit: open the file and go to 'team_sens' (CTRL+F -> "team_sens"). Edit this variable to choose if the player is able to control bots of the other team.
Set it to 'true' if the players are only able to control bots of their own team (e.g.: competitive) and set it to 'false' if the players are able to control all bots (e.g.: casual).

> I found a bug or I want to contact you:
You can write a comment below or send me a message.
This is the 2nd updated version.
I like all kinds of feedback!

> How to install?
You have three options:
• Autorun - fast easy and most recommend:
     .1 go to \Counter Strike 2D\sys\lua\autorun\ and extract botcontrol.lua.

• Manual - slow but you have a better overview of your script:
     .1 go to \Counter Strike 2D\sys\lua\ and extract botcontrol.lua
     .2 open CS2D -> New Game -> More Settings -> mp_luaserver = botcontrol.lua -> Apply

• Server.lua - slow but you have a better overview of your multiple scripts:
     .1 go to \Counter Strike 2D\sys\lua\ and extract botcontrol.lua
     .2 open server.lua and add a new line dofile(sys/lua/botcontrol.lua)

Thanks for reading.
image
edited 12×, last 02.08.16 01:58:24 pm
ok This file has been reviewed and approved by EngiN33R (03.12.15 08:52:47 pm)

Comments

19 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
26.08.16 01:21:15 pm
like I like it!
Up
kerker
User
Offline Off
Useful. I like it.
10.08.15 04:57:12 pm
Up
goldfish
GAME BANNED
Offline Off
Oh no...Sorry but I stabbed them to death,ILL BUY NEW ONES I promise,don't hurt me!
This script is good. (again)
31.05.15 06:43:58 pm
like I like it!
Up
xsiN
User
Offline Off
I agree with StabStabStab but there's only one problem..where's my stolen watermelons?
30.05.15 05:46:07 pm
Up
goldfish
GAME BANNED
Offline Off
Pro gaming network i see u everywhere saying OH I dont liek dis oh no i see something cool i will just hate on it because i cant make anything better wuaa
If u dont have anything nice to say then dont say anything.
Other than that this script is good!

dont like sorry this rubbish
16.05.15 07:39:30 pm
Up
XingGove
COMMUNITY BANNED
Offline Off
Very bad but IS a sh*t.


don't like sorry
02.05.15 03:11:34 pm
like I like it!
Up
XoOt
Super User
Offline Off
user Bowlinghead has written:
you do not get special items if you control the bot (like the nightvision) because these are unequipable (console will say that it can lead to problems)


How about spawning the items at the last position of the bot. When the player spawns on it he will get them anyways.
02.05.15 06:11:22 am
like I like it!
Up
J192
User
Offline Off
There are still a lot of problems, one of which user Seekay stated.
Still, I like the effort and thought you have put into this, and it nearly mimics CS:GO's bot control feature.
02.05.15 12:58:59 am
like I like it!
Up
Seekay
Reviewer
Offline Off
Taking control over a T bot who plants a bomb will make the bomb disappear. I suppose that's because "you do not get special items". That's a problem which needs to be fixed, though. Maybe place a bomb at the same spot? You just gotta pick it up, then.

Also, sometimes it just doesn't work. I could spam F2 and it would say I already gained control over a bot, but I didn't, I was dead. No idea how I did that, though.

Not the best implementation, but I like the idea, wish DC could implement his own, better version of it as a feature in a future update, right after he gives the burning turtle from Stranded II its well deserved comeback.
01.05.15 11:16:58 pm
like I like it!
Up
THEMUD
User
Offline Off
Very nice, impressive making. You have just done a nice thing man.
01.05.15 03:56:47 pm
Up
Bowlinghead
User
Offline Off
Thank you for your feedback!

@user VADemon:
Thanks for saying. Didn´t thought about that and I fixed it.
Now, if you control a bot everything you do will be awarded for the bot. (You get your old stats at the start of the next round!)

@user Pseudon:
Sorry for that confusing name. I changed it!
01.05.15 03:53:02 pm
Up
G3tWr3ck3d
User
Offline Off
This just spawns you at the position of the bot, and kills the bot. And woow! You took control of it. LMAO. Hell no
01.05.15 03:01:26 pm
Up
Pseudon
User
Offline Off
For a moment I've really thought you have made a bot control script... You scared me for a second.
This is easy, unoriginal, but not useless. Still the name is confusing as it was for me, I would be more for... Bots Possession Script.
30.04.15 10:46:18 pm
Up
VADemon
User
Offline Off
I don't wanna know how many bugs it has. First, what comes into my mind is the round restart and gained money/points.
30.04.15 08:56:59 pm
Up
XingGove
COMMUNITY BANNED
Offline Off
me don't liked this files all bad!


don't like sorry
30.04.15 03:44:14 pm
like I like it!
Up
sayori
User
Offline Off
Im realy suprised that someone used my idea. Thank ya @user Bowlinghead:
30.04.15 03:43:13 pm
like I like it!
Up
Talented Doge
User
Offline Off
Tested.
This is only spawning the player himself however.
30.04.15 03:39:17 pm
like I like it!
Up
BountyHunter
User
Offline Off
Yuki Usagi has written:
This is a great idea, I like it ofc.


I copy!
30.04.15 01:03:55 pm
like I like it!
Up
Talented Doge
User
Offline Off
This is a great idea, I like it ofc.
30.04.15 11:36:34 am
Up
Blaster-Blade
User
Offline Off
Ohh , this like ( iCU ) in minecraft?
To the start Previous 1 Next To the start