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

3,004 replies
Goto Page
To the start Previous 1 2 ... 147 148 149 150 151 Next To the start
25.04.19 11:29:44 pm
Up
Avo
User
Offline Off
@user Goo: it can be easily done with player(0, 'tableliving'). Something like this:

Code:
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
25.04.19 11:41:59 pm
Up
Goo
User
Offline Off
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
01.05.19 11:15:42 am
Up
Testbim2
User
Offline Off
Add graffiti 32x32 and 64x64, 32x32 is ordinary graffiti, and 64x64 look like regular graffiti, but with more detail.
03.05.19 04:14:34 am
Up
mrc
User
Offline Off
Hook for hostagekill.
CS2D Global - cs2dglobal.tk
03.05.19 07:10:46 am
Up
Devil-Thanh
GAME BANNED
Offline Off
@user mrc: I guess the cs2d lua hook objectkill does the thing.
03.05.19 11:29:23 am
Up
Goo
User
Offline Off
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.
03.05.19 06:18:19 pm
Up
mrc
User
Offline Off
user Devil-Thanh has written:
@user mrc: I guess the cs2d lua hook objectkill does the thing.


How? I want to make a penalty when someone kill a hostage.
CS2D Global - cs2dglobal.tk
03.05.19 07:58:16 pm
Up
DC
Admin
Offline Off
@user Devil-Thanh: no, hostages are actually no objects. That's because they have been implemented long before all the object stuff has been added.

@user mrc: There's also cs2d cmd mp_hostagepenalty but I guess you want another penalty than kicking.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
04.05.19 12:32:53 am
Up
mrc
User
Offline Off
Yes, if a player kill a hostage I want to remove some points on my level system.
CS2D Global - cs2dglobal.tk
04.05.19 07:37:25 pm
Up
Goo
User
Offline Off
@user mrc:
Code:
1
2
3
4
5
6
addhook('radio','_radio')
function _radio(id, message)
     if message == 16 then
          --hostage died
     end
end
05.05.19 01:51:20 am
Up
mrc
User
Offline Off
user Goo has written:
@user mrc:
Code:
1
2
3
4
5
6
addhook('radio','_radio')
function _radio(id, message)
     if message == 16 then
          --hostage died
     end
end

Didn't work. It works only for the host.
CS2D Global - cs2dglobal.tk
05.05.19 02:38:42 am
Up
Goo
User
Offline Off
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
09.05.19 04:04:56 pm
Up
Tiuhpudim
User
Offline Off
• How about remastering CS2D to stay more efficient and modernized
☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁
09.05.19 04:47:49 pm
Up
Goo
User
Offline Off
@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
20.05.19 06:53:37 pm
Up
mrc
User
Offline Off
Remove the explosion damage on Molotov but keep the burn. And/Or make the explosion damage customizable.
CS2D Global - cs2dglobal.tk
20.05.19 09:53:53 pm
Up
Gaios
Security Supporter
Offline Off
@user mrc: Possible to script
20.05.19 10:02:52 pm
Up
CS Varna d-_-b
User
Offline Off
@user mrc: Honestly removing the Molotov explosion damage would ruin it. But that's my opinion though.
IMG:http://steamsignature.com/status/english/76561198124843516.png
20.05.19 10:14:21 pm
Up
mrc
User
Offline Off
Molotov is hitkill, that's the problem. In CSGO it doesnt explode, just burn.

@user Gaios: how?
edited 1×, last 21.05.19 12:51:38 am
CS2D Global - cs2dglobal.tk
21.05.19 04:20:58 pm
Up
Gaios
Security Supporter
Offline Off
@user mrc: > https://youtu.be/s_KCXLD__GU by user Masea.
Maybe it's uploaded here, maybe not. Ask him Masea#9575.
21.05.19 04:48:05 pm
Up
mrc
User
Offline Off
Too much work, Gas Grenade do what molotov should do.
CS2D Global - cs2dglobal.tk
To the start Previous 1 2 ... 147 148 149 150 151 Next To the start