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 2147 148 149161 162 Next To the start

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

Avo
User Off Offline

Quote
@user Mami Tomoe: it can be easily done with player(0, 'tableliving'). Something like this:

1
2
3
4
5
6
7
8
9
10
11
12
players_inside = function(x1, y1, x2, y2)
	local t = player(0, 'tableliving')
	local list = {}
	for i=1, #t do
		local id = t[i]
		local px, py = player(id, 'tilex'), player(id, 'tiley')
		if px >= x1 and px <= x2 and py >= y1 and py <= y2 then
			table.insert(list, id)
		end
	end
	return list
end

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

Mami Tomoe
User Off Offline

Quote
Yes but it's more efficient if it's all being checked outside the Lua VM and returns with 1 exit...


EDIT:

This is a weird event and a way to avoid it:

Returning 1 on the vote hook does weird thing with the vote kick message (not really sure why or what it even does)

Add return 2:

Return 0: Vote goes through + msg does
Return 1: Vote doesn't go through + msg does
Return 2: Vote doesn't go through + msg doesn't
edited 1×, last 30.04.19 12:25:22 pm

old Graffiti 64x64

Testbim2
User Off Offline

Quote
Add graffiti 32x32 and 64x64, 32x32 is ordinary graffiti, and 64x64 look like regular graffiti, but with more detail.

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

Mami Tomoe
User Off Offline

Quote
When a menu's text surpasses the maximum amount of allowed text in it's button it'll instead cut the extra text and replace it with
...
.
Upon placing your mouse above that button the text will start scrolling from side to side in order to reveal the whole text.

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

Mami Tomoe
User Off Offline

Quote
Then DC should make it possible to record these messages.


EDIT:

Make it possible to include semicolons (;) in HUDTXTs.
Literally no one uses semicolons to separate input in HUDTXTs.
edited 1×, last 06.05.19 08:11:57 pm

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

Mami Tomoe
User Off Offline

Quote
@user Tiuhpudim: @user DC: is too busy developing Stranded III.


@user DC: Add the possible image IDs to http://cs2d.com/help.php?luacat=image&luacmd=image#cmd just like HUDTXT has 0-49.

EDIT (1):
You should really add all of the physics commands/hooks to cs2d's website.

I find it really troublesome to use physics if I don't know all of the commands, and yes some of the commands may exist in physics.lua but still, it's easier to access the website.

EDIT (2):
For the leave hook (http://cs2d.com/help.php?hookcat=all&hook=leave#hook):
Add another value such as "info" which will return ban reasons and duration (or kick reasons), maybe as a table.
edited 3×, last 19.05.19 04:25:32 pm
To the start Previous 1 2147 148 149161 162 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview