Forum

> > CS2D > General > Ideas for CS2D - READ THE FIRST POST (OP)!
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Ideas for CS2D - READ THE FIRST POST (OP)!

3,231 replies
Page
To the start Previous 1 2101 102 103161 162 Next To the start

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

sonkii
User Off Offline

Quote
Old cs2d version has good bots,but in this version mostly slowly bots.You can make it yourself or rather editing the old one.Making it will be not easy,read lua's manual and start create the new bots.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Avo
User Off Offline

Quote
@user sayori: Better would be a modification of bombplant lua hook like:
1
onBombPlant(id, x, y, mode)
where mode is 0 (planting started) or 1 (planting finished)

OR:

"attack" hook should be triggered when a player tries to plant a bomb.

@user sonkii: not really needed I guess. Just a little detail.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Ishara
User Off Offline

Quote
user Mr_Outsider has written
@user Masea: and i sayed before that new players wont love the bots , and many players (like me) can't script Lua , also it would be good idea to add chat and bots can plant mines and LM ... etc.


Here you have some bots.



The game is not dying because of bots, it's the low exposure it has the game itself tbh, finding a platform can be the key, maybe Itch.io but I'm not sure.

Enough said, this is going off-topic.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Baloon
GAME BANNED Off Offline

Quote
@user sayori: Like user Masea said, it can done with LUA. Maybe these codes can help you :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
planting[1, 32]=0

addhook ("bombplant","onplanting")
function onplanting(id, mode)
   if mode==0 then
      planting[id]=1
      parse("sv_sound blabla")
   end
end

addhook("second","onsecond")
function onsecond()
   for all = 1, 32 do
      if player(all,"exists") then
         if planting[all]>=1 then
            if player(all,"process") then else
               planting[all]=0
               parse("sv_stopsound blabla")
            end end end end
end

Sound must have same duration with planting bomb

I haven't test it yet, so, idk if those codes works.
edited 1×, last 01.07.16 05:42:07 pm

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

GeoB99
Moderator Off Offline

Quote
Might not be useful at all but I guess the cs2d lua cmd player lua function needs a weaponswitch parameter for conditional weapon switching case.

• player(id, 'weaponswitch')

The condition case returns true if the player switches the weapon, false otherwise.
To the start Previous 1 2101 102 103161 162 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview