Files

> > CS2D > Lua Scripts > new Bots update by Loooser
Files overviewCS2D overviewLua Scripts overview

English new Bots update by Loooser >

81 comments14 kb, 2,426 Downloads

old new Bots update by Loooser

Loooser
User Off Offline

This is the new bots update with the lagg fixed.moreover they have many more features like knifing players with melees when they are in range. i also started making bot build inteligent. of cause you can change the skills with the settings skills.cfg file. They spray logos and use more radio msgs.

Here you can see in which order the bots attack the enemies

Rank 1
player
rank 2
npcs
rank 3
turret
rank 4
other buildings
Approved by Infinite Rain

Download Download

14 kb, 2,426 Downloads

Comments

81 comments
Page
To the start Previous 1 2 3 4 5 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

HoOtix
User Off Offline

Dangit How do u use this...

old Cs2d 0.1.2.2

gtadrakon007
User Off Offline

[14:28:45] LUA ERROR
(ai_update_living): bots/
Standard AI.lua:245: attempt to
compare number with boolean
[14:28:45] Freezing bots to stop
Lua error msg flood! Use
'bot_freeze 0' to unfreeze bots!
plaes build bot update of cs2d 0.1.2.2

old

Rattle189
User Off Offline

I have the same problem with @user Combine Soldier Macro: When a bot kills an NPC they freeze and when I view the console I see these 2 red lines

---
[Time] LUA ERROR (ai_update_living): bots/Standard AI.lua:245: attempt to compare number with boolean
[Time] Freezing bots to stop LUA error msg flood! Use 'bot_freeze 0' to unfreeze bots!
---

Please fix this Loooser and we'll be so happy. I'll need this for my server
I like it!

old bot vs npc

Combine Soldier Macro
User Off Offline

when a bot kills an npc they freeze and it appears

[12:53:37] LUA ERROR (ai_update_living): bots/Standard AI.lua:245: attempt to compare number with boolean
[12:53:37] Freezing bots to stop Lua error msg flood! Use 'bot_freeze 0' to unfreeze bots!
I like it!

old

okeyman
User Off Offline

Like it Wiiinner
I like it!

old

Avo
User Off Offline

Masterpiece.
I like it!

old

TK Gunz FBI
User Off Offline

Nice Job! A 9/5
I like it!

old

RichNagel
User Off Offline

Hey Loooser,

Any chance of updating your bots with the new "flashbang" feature of the new version of CS2D (Beta 0.1.2.2)?

The new version of the game makes it so that the bots are ALSO blinded by a flashbang (like humans are).
I like it!

old

TheBosS_
User Off Offline

Looser, all of your lua scripts are great

Liked it.
I like it!

old

RichNagel
User Off Offline

LOVE these new bots, Looser!

Like the other poster commented, they still don't use the teleporters. But otherwise, GREAT JOB


(EDIT) One little bug report, Looser:

Any time that I issue the radio command "Enemy Down", the bots completely freeze, and won't move again until the map cycles (or I stop the current game, and then start it again).

Here's the info that I see in my console logs:

1
2
LUA ERROR (ai_hear_radio): bots/Standard AI.lua:767: table index is nil
Freezing bots to stop Lua error msg flood! Use 'bot_freeze 0' to unfreeze bots!


By the way, I also tested it with the older version of your bots ( http://www.unrealsoftware.de/files_show.php?file=3758 ), and had the same problem. Here's the info that I see in my console logs for that older version (similar error message, different line number):

1
2
LUA ERROR (ai_hear_radio): bots/Standard AI.lua:634: table index is nil
Freezing bots to stop Lua error msg flood! Use 'bot_freeze 0' to unfreeze bots!


(EDIT #2) With as little as I know about Lua scripting, I think I may have found the problem.

I took a look at these lines in the "Standard AI.lua" file:

1
2
3
4
5
6
7
8
9
10
-- Enemy spotted / Taking fire, need assistance
        elseif radio==9 or radio==11 then
                local mate=fai_randommate(source)
                if mate~=0 then
                        if math.random(1,2)==1 then vai_radioanswer[mate]=0 else vai_radioanswer[mate]=28 end
                        vai_radioanswert[mate]=math.random(35,100)
                        vai_mode[mate]=2
                        vai_destx[mate]=player(source,"tilex")
                        vai_desty[mate]=player(source,"tiley")
                end

...and compared them to these lines in the file (note that the "--enemy spotted" and "radio==8" lines below (radio message "8"), are ACTUALLY the "Enemy Down" radio message, and NOT the "Enemy Spotted" radio message "9" that I used for comparison above). The "vai_destx[id]=player(source,"tilex")" line below is line 767 (as referenced in the error message that I refered to previously):

1
2
3
4
5
6
7
8
9
10
--enemy spotted
        elseif radio==8 then
                 local mate=fai_randommate(source)
                 if mate~=0 then
                    if math.random(1,2)==1 then vai_radioanswer[mate]=0 else vai_radioanswer[mate]=28 end
                        vai_radioanswert[mate]=math.random(35,100)
                        vai_destx[id]=player(source,"tilex")
                        vai_desty[id]=player(source,"tiley")
                        vai_mode[id]=2
                 end

I then edited the above to look like this:

1
2
3
4
5
6
7
8
9
10
--enemy spotted
        elseif radio==8 then
                 local mate=fai_randommate(source)
                 if mate~=0 then
                    if math.random(1,2)==1 then vai_radioanswer[mate]=0 else vai_radioanswer[mate]=28 end
                        vai_radioanswert[mate]=math.random(35,100)
                        vai_destx[mate]=player(source,"tilex")
                        vai_desty[mate]=player(source,"tiley")
                        vai_mode[mate]=2
                 end

...and the bots seem to work perfectly, with no error messages displayed in the console
I like it!
edited 4×, last 27.12.12 08:37:02 pm

old

Loooser
User Off Offline

I will work on it

old update

YoshiSmb
User Off Offline

hey looser! can update the bots abilyt?
they dont use teleport
can fix that?
you get 5/5 good work!
I like it!

old

TopNotch
User Off Offline

My bots don't respawn, and when i do restart they are just freezed.

old

mattasha
User Off Offline

Nice But When i have downloaded it i use it in my sv
All BOTS not mooving like (FREEZED,Scared)
Edit it Good Luck
I like it!

old error

PbBOKAN
User Off Offline

bots attacking their own turrets, must fix that...

old Bot shutdown

SkullzOrig
User Off Offline

@user Loooser: I have used your bots before, but problem is after a while they stop moving,shooting,and they would not even spawn.

old

_MARKOS_
BANNED Off Offline

new bots
I like it!
To the start Previous 1 2 3 4 5 Next To the start