Dateien

> > CS2D > Lua Scripts > new Bots update by Loooser
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch new Bots update by Loooser >

81 Kommentare14 kb, 2.361 Downloads

alt 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
Zugelassen von Infinite Rain

Download Download

14 kb, 2.361 Downloads

Kommentare

81 Kommentare
Seite
Zum Anfang Vorherige 1 2 3 4 5 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

HoOtix
User Off Offline

Dangit How do u use this...

alt 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

alt

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
Ich mag es!

alt 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!
Ich mag es!

alt

okeyman
User Off Offline

Like it Wiiinner
Ich mag es!

alt

Avo
User Off Offline

Masterpiece.
Ich mag es!

alt

TK Gunz FBI
User Off Offline

Nice Job! A 9/5
Ich mag es!

alt

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).
Ich mag es!

alt

TheBosS_
User Off Offline

Looser, all of your lua scripts are great

Liked it.
Ich mag es!

alt

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
Ich mag es!
4× editiert, zuletzt 27.12.12 20:37:02

alt

Loooser
User Off Offline

I will work on it

alt 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!
Ich mag es!

alt

TopNotch
User Off Offline

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

alt

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
Ich mag es!

alt error

PbBOKAN
User Off Offline

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

alt 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.

alt

_MARKOS_
BANNED Off Offline

new bots
Ich mag es!
Zum Anfang Vorherige 1 2 3 4 5 Nächste Zum Anfang