English Ideas for Counter-Strike 2D 0.1.2.1

1,429 replies
Goto Page
To the start Previous 1 2 ... 67 68 69 ... 71 72 Next To the start
26.07.12 08:05:34 am
Up
archmage
User
Offline Off
user scriptmen has written:
i think that "keypressed" is very important one.

imagine - for example in your script you have a place where you can heal when some key is pressed (remember, just like in hl1 and hl2)

it is impossible to do without such hook

It's very possible without it.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
h_down = false

function keydown(id, k)
     if ( k == "h" ) then
          h_down = true
     end
end

function keyreleased(id, k)
     if ( k == "k" ) then
          h_down = false
     end
end

-- now with a time hook you can add the healing effect
We must secure the existence of our people and a future for white children. 14/88
26.07.12 08:52:34 am
Up
oxytamine
User
Offline Off
No FPS limit, please. I usually play at 80-100 FPS. Or at least, increase maximum FPS to 60, would be so much better.
26.07.12 04:45:01 pm
Up
omg
User
Offline Off
the problem with trying to bind keypresses is that clients only send msgs that make sense to the server. they dont send "w" every time u move forward, they send "forward", literally. chances are, whatever u want to bind already has a similar hook

archmage, wtf is that code?
will code for food
26.07.12 07:35:13 pm
Up
EngiN33R
Moderator
Offline Off
user scriptmen has written:
what about few new useful hooks:
@key - on keypress
@keypressed - while the key is pressed
@keyrelease - on key release (not so necessary)


We've discussed it already, and it probably won't be implemented unless clientside Lua gets implemented - it's too much of a strain on the connection.
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
26.07.12 08:40:36 pm
Up
scriptmen
User
Offline Off
user EngiN33R has written:
user scriptmen has written:
what about few new useful hooks:
@key - on keypress
@keypressed - while the key is pressed
@keyrelease - on key release (not so necessary)


We've discussed it already, and it probably won't be implemented unless clientside Lua gets implemented - it's too much of a strain on the connection.


but we can add some new serveractions (4,5,6...) and then client would bind for example key l for serveraction 6 and script would behave with it like with default serveractions1-3
27.07.12 12:26:36 am
Up
Zurak
User
Offline Off
user scriptmen has written:
user EngiN33R has written:
user scriptmen has written:
what about few new useful hooks:
@key - on keypress
@keypressed - while the key is pressed
@keyrelease - on key release (not so necessary)


We've discussed it already, and it probably won't be implemented unless clientside Lua gets implemented - it's too much of a strain on the connection.


but we can add some new serveractions (4,5,6...) and then client would bind for example key l for serveraction 6 and script would behave with it like with default serveractions1-3


yes i agree, this can be very useful(so players dont have to make binds for lua functions like !usespell and just press a key instead), sort of like binds but server-sided. but this should be able to be over-ridden by the player binds.

edit: also make nightvision/gasmask equip-able
edited 1×, last 27.07.12 12:52:03 am
27.07.12 02:13:44 am
Up
skarpapp
User
Offline Off
you guys could put vehicles of war
or make such de_dust in the passage on the second floor when you are in the bottom part is not over we can start to see the players and when you're not down to see the players on top could also by weapons of Halo and Half-Life 2 ∗ ∗ ∗ ∗
27.07.12 05:42:29 am
Up
Sparty
Reviewer
Offline Off
it can be done by a lua
user DC has written:
@user omg: Actually a pretty good idea...
27.07.12 10:26:50 am
Up
EpicCrisis
User
Offline Off
user Sparty has written:
it can be done by a lua


Why does everything has to be done by Lua? Almost everything can be done by Lua to the point that we're out of ideas for the game.
Another Day Another Shitload Of Shit
27.07.12 12:00:21 pm
Up
Avo
User
Offline Off
No, you can't rotate player with Lua. Main ideas has been posted, now people just repeat them(weapons,NPCs).
27.07.12 12:15:04 pm
Up
Infinite Rain
Reviewer
Offline Off
I hate when people says: "Almost everything can be done in Lua" While it LIES!
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
27.07.12 12:42:05 pm
Up
Avo
User
Offline Off
user Infinite Rain, you're right - we can't use Lua instead of everything. Long time ago CS2D didn't have Lua scripts...
27.07.12 07:54:30 pm
Up
d0er
User
Offline Off
players server 0/255
edited 1×, last 28.07.12 05:33:17 am
IMG:http://hellgatelondon.ru/i/bars/bar1.png
27.07.12 07:59:42 pm
Up
Suprise
BANNED
Offline Off
Wow logged in as DC. and your game version is so epic (1.0.8)
EDIT: Ahh I know.
27.07.12 08:01:14 pm
Up
Ahmad
User
Offline Off
@user d0er: I wanted to ask about this picture long time ago but i forgot about it.
That server would be really fun,but it would probably crash if there were more than 60 players :S.
27.07.12 08:01:55 pm
Up
Suprise
BANNED
Offline Off
hah. Play superhero mod wih 60 players
Or just simple de_dust
27.07.12 08:41:43 pm
Up
Avo
User
Offline Off
It's Counter-Strike 2D, not San Andreas Multiplayer with about 500 players. Original CS have max amount players =32 and its 2D copy will have it, too.
27.07.12 09:08:43 pm
Up
PyKemis
User
Offline Off
Would be interesting though, regardless, I'm sure no server would be able to support that many players.
28.07.12 12:24:49 am
Up
Sparty
Reviewer
Offline Off
user Avo has written:
It's Counter-Strike 2D, not San Andreas Multiplayer with about 500 players. Original CS have max amount players =32 and its 2D copy will have it, too.

what will happen to cs2d if user DC puts 40
LAG?
user DC has written:
@user omg: Actually a pretty good idea...
28.07.12 12:27:15 am
Up
oxytamine
User
Offline Off
@user Sparty:
It has been done before - we even played with 60 players online (custom server build). Those were the days I'd never forget.
To the start Previous 1 2 ... 67 68 69 ... 71 72 Next To the start