Forum
CS2D General Ideas for CS2D - READ THE FIRST POST (OP)!As @ Ishara said, you can edit bots like what you want. Then, they have a behavior like what you want. There is all commands of the bots that you need to code. Suggesting idea like "There should be more smart bots" is absurd.
In short, you can make them more intelligent.
edited 1×, last 01.07.16 02:13:28 am
Edit:
Something like this
https://www.youtube.com/watch?v=vivKDMKHAjw
edited 1×, last 01.07.16 02:00:37 pm
1
onBombPlant(id, x, y, mode)
OR:
"attack" hook should be triggered when a player tries to plant a bomb.
@ sonkii: not really needed I guess. Just a little detail.
Mr_Outsider has written
@ 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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
Baloon has written
1
2
2
addhook ("","onplanting") function onplanting(id, mode)
What?
@ Masea: I think bombplant hook isn't used there.
player(id, 'weaponswitch')
The condition case returns true if the player switches the weapon, false otherwise.
Example: