Forum

> > CS2D > General > Lua Scripts for CS2D
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Lua Scripts for CS2D

134 replies
Page
To the start Previous 1 2 3 4 5 6 7 Next To the start

Poll Poll

What do you think about Lua support in CS2D?

Only registered users are allowed to vote
Awesome!
85.88% (225)
Sounds good.
7.25% (19)
Bad idea. I hate Lua!
3.44% (9)
I have no idea.
3.44% (9)
262 votes cast

old Re: Lua Scripts for CS2D

Lee
Moderator Off Offline

Quote
Zune5 has written
Hey lee, just a suggestion for your gungame script, if you knife someone than you should be brought back a level except if your ACTUALLY on the level knife (Level 21?)


Like a knife steal? Yeah, sure, just add

1
2
3
4
5
if w == Knife then 
	--Let the quakeMod do the usual humiliation stuff
	gg.setlevel(k, gg.players[k].level+1, true) 
	gg.setlevel(v, gg.players[v].level-1, true) 
end

before the last if statement in the hook_kill function.

old Re: Lua Scripts for CS2D

Zune5
COMMUNITY BANNED Off Offline

Quote
I'm not sure if this is also in your script, but lets say if you started the game and everyone is on shotguns or higher and than another person joins, maybe you can put them on a level similar and near where all the other players are...

And it doesn't seem like you added a HEgren in there 0o...

old Re: Lua Scripts for CS2D

Lee
Moderator Off Offline

Quote
Zune5 has written
I'm not sure if this is also in your script, but lets say if you started the game and everyone is on shotguns or higher and than another person joins, maybe you can put them on a level similar and near where all the other players are...

And it doesn't seem like you added a HEgren in there 0o...


Yeah, that's feasible too, just add a new var for the server average and each time a new player joins set him up at the lowest level of the server or at the average of the server (this will be changeable using gg_join_level 0, 1, or 2)

old Re: Lua Scripts for CS2D

Zune5
COMMUNITY BANNED Off Offline

Quote
Is it possible to make the maxplayers higher than 32 lol...

P.S. What happened to the TGV forums?

old Re: Lua Scripts for CS2D

Matsu-Kiri
User Off Offline

Quote
Zune5 has written
Is it possible to make the maxplayers higher than 32 lol...

P.S. What happened to the TGV forums?


that would be great for making a story mode map with more than 31 bots, i hope it is√

old Re: Lua Scripts for CS2D

Lee
Moderator Off Offline

Quote
calledopj has written
hey the Lua Scripts have a level all player in game?


You mean an experience mod?

old Re: Lua Scripts for CS2D

Cure Pikachu
User Off Offline

Quote
sys/serverinfo.txt
You don't even need LUA.
EDIT: And wow! You just revived a thread for just this?
edited 1×, last 16.06.10 03:35:04 pm

old lua

Zuhair103
User Off Offline

Quote
how i make lua script i make is sooooooo badddddd can all of you help me

old help

SteiN
User Off Offline

Quote
DC help me edit the script rpg mafia man please

old Re: Lua Scripts for CS2D

Slayerwllpku
User Off Offline

Quote
You forgot alot of badwords:
"Shit","Retard", "Ass Hole", "Porno", "Idiot"
1
2
3
4
5
6
7
8
9
10
11
function hook_say(p,t)
     badwords = {"hitler","fuck","bitch","cunt","ass", "Shit","Retard", "Ass Hole", "Porno", "Idiot"};
     t=string.lower(t);
     for i = 1,#badwords,1 do
          if (string.find(t,badwords[i])~=nil) then
               parse("sv_msg \""..player(p,"name").." said a bad word ("..badwords[i]..")!\"");
               parse("kick "..p);
               break;
          end
     end
end

old Re: Lua Scripts for CS2D

DC
Admin Off Offline

Quote
you shouldn't "abuse" this thread to ask lua questions anymore. please use the cs2d scripting forum instead.
To the start Previous 1 2 3 4 5 6 7 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview