Forum

> > CS2D > General > Beta 0.1.2.0 Suggestions & Ideas
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Beta 0.1.2.0 Suggestions & Ideas

1,972 replies
Page
To the start Previous 1 275 76 7798 99 Next To the start

old Re: Beta 0.1.2.0 Suggestions & Ideas

EngiN33R
Moderator Off Offline

Quote
user J4x has written
At least add the noise that flashbang do.

You can change it locally if you desire - the flashing sound is g_flash.wav, replace it with anything and it will produce a different sound.

old Re: Beta 0.1.2.0 Suggestions & Ideas

BaDgEr
User Off Offline

Quote
Maybe add this:
Floors have sounds: metal, tile, step etc. Add something to walls! If you hit the wall you hear sound, brick, wall, wood etc.

old Re: Beta 0.1.2.0 Suggestions & Ideas

DevGru
User Off Offline

Quote
user BaDgEr has written
Maybe add this:
Floors have sounds: metal, tile, step etc. Add something to walls! If you hit the wall you hear sound, brick, wall, wood etc.


Agree. √

It's on the env_breakable entity but it should be on tiles too.

old Re: Beta 0.1.2.0 Suggestions & Ideas

Apache uwu
User Off Offline

Quote
2 methods for entity, and 2 methods for item.

entity (not to be confused with cs2d lua cmd entity)

> Parameters

• id

• "value"


> Info
Return a value of an entity instance: exists, typename, type, name, trigger, state, int0, int1, int2, int3, int4, int5, int6, int7, int8, int9, str0, str1, str2, str3, str4, str5, str6, str7, str8, str9, aistate

Moreover there is: entity(0,"table"): returns a Lua table with all entities in the map.


---


item (not to be confused with cs2d lua cmd item)

> Parameters

• x

• y

• "value"

> Info
Return a value of an item at the tile position (X|Y): exists, name, type, player, ammo, ammoin, mode, x, y, dropped, droptimer

However if there are more than 2 items at the same position, a table is returned instead.

1
2
3
4
5
6
7
8
9
10
Example: M4 & Medkit are lying on the tile (24,54)

return item(24,54,"table")
--returns true

return item(24,54,"table")[1]['exists']
--returns true

return item(24,54,"table")[1]['name']
--returns 'M4'
To the start Previous 1 275 76 7798 99 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview