Forum
CS2D General Ideas for CS2D - READ THE FIRST POST (OP)!Client: Send attack request to server, wait for response.
Server: Receive and process request, execute Lua scripts and send corresponding response depending on Lua return value.
Client: Receive the response and either show attack FX or not.
That works in theory but it would mean that every single attack would have a delay of at least a few milliseconds (and much more when you have a bad ping). This would feel extremely strange and unresponsive.
So with the current system it's impossible to do that in a way that feels good. Sorry.
on collect: return 1
on use: equip the best weapon within closeitems(id, 0) then removeitem
@ gamus: I think the only feasible option is what Starkkz suggested, to use a toggle, setclickmode.
1
imageparent(what_image, to_what_image)
Also
1
imagetext(what_image, x_offset, y_offset, rotation_offset, text, r, g, b, a)
x_offset, y_offset, rotation_offset should only act as offset values according to the position/rotation of the original image.
GeoB99 has written
Whenever you are equipped with Stealth Suit, the bots can't see/attack you unless you start shooting at them or doing too much footsteps. Same as for the Smoke Grenade, when I am hidden in a smoke the bots can't see you as long you don't shot at them or going out from the smoke.
Not good idea tho, will be way too easy to hide
Apache uwu has written
@ sayori: Lua can do this
I hate when someone says that, it would be better with that option in game, not just in one server
@topic: Has a mouse click hook been asked already? It'd be nice for custom menus, because using the attack hook only works when the player is alive, and the serveraction buttons aren't as accessible as the mouse buttons.
Because i wan't admin's aim on my admin script.
1
print('Other Score: '..tonumber(player(id, "score"))-tonumber(player(id, "frags")))
1
(frags*2)-deaths
1
(frags*2)+otherScore-deaths
Therefore, adding a new return hook value and a save of otherscores would solve this problem with something like this:
1
print('Other Score: '..tonumber(player(id, "otherscore")))
A bug like this occurs on major servers. I had to patch over 50 erroneous bugged scores of users like this. Except ofcourse, without their otherscores.
Evaldas has written
How about more tiles?
can download from others