Forum
General
Ideas for CS2D - READ THE FIRST POST (OP)!
Mr_Outsider: 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.
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.
Make bullet hole on tatical (or something like that) shield when it shotted. edited 1×, last 01.07.16 12:13:28 am
Edit:
Something like this
https://www.youtube.com/watch?v=vivKDMKHAjw
edited 1×, last 01.07.16 12:00:37 pm
sayori: Better would be a modification of bombplant lua hook like: 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.
sayori means when holding "fire" key,the beep sounds played.Just like in CS1.6.
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.
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.
Mr_Outsider: It can be done by lua!So,just download the bot lua.There soo many bots improvement thread,just you need using Search.There also many guys who suggested that before.
sayori: I think you can do it with
bombplant and
sv_sound/
sv_stopsound. And there is a video about it; https://youtu.be/ti9RtGV2T1g?t=37s
Masea: I think its better to be part of the game.
sayori: I don't know if developers want to waste time for thing that already you can make it with lua. Would be more good they allow time for the different innovations.
sayori: Like
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
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 03:42:07 pm
Baloon has written1
2
2
addhook ("","onplanting")
function onplanting(id, mode)
What?
Baloon: In fact, your "mode" is simply x coordinate where the bomb is planted [reference].@
Masea: I think bombplant hook isn't used there.
Avo: I have no idea if there is anything that does trigger bomb plant. So in my last comment, I just guess It what can be.
_oops does know that question's answer, indeed.
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.
GeoB99: All weapon switching happens instantly. It's not a process. Therefore it doesn't make much sense to have it as a value. A hook would make much more sense. Example:
Thenini7: Possible with lua. luasibble.
Ideas for CS2D - READ THE FIRST POST (OP)!


Offline
