Forum

> > CS2D > General > CS2D Questions
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Questions

11 replies
To the start Previous 1 Next To the start

old CS2D Questions

horus
User Off Offline

Quote
I thought I might start a question thread, so that maybe the FAQ might be of more help.
FAQ/Rules
Lua Help
Server Guide
CS2D Help/Intro
And I thought I might bring up a few questions while I'm here.
Why does the FAQ still link the 'post suggestions here' to the locked CS2D Max Suggestions v2 thread? Just thought it'd be updated along with the new suggestions thing...
How exactly does the env_building Supply work? Does it toss out anything at all or does it just sit there looking cool?
In the map editor, [I haven't bothered checking myself] if you put two pairs of portals, how do you know which one links to which portal?

old Re: CS2D Questions

DC
Admin Off Offline

Quote
suggestions link changed to lab √

the env_building supply is rather pointless atm because you can't set it up in the editor properly yet.

editor portals are limited to one working pair. same counts for teleporter buildings. you should use func_teleport instead.

old Re: CS2D Questions

Dvaris
User Off Offline

Quote
i have a question, if i have the lua script how do i upload it into the game, and can i upload it if im not server creator

old Re: CS2D Questions

DC
Admin Off Offline

Quote
you can only "activate" Lua scripts when you are the server of course.

you have to add it in sys/lua/server.lua (either paste the whole script there or include it with a dofile command)

old Re: CS2D Questions

chuico123
User Off Offline

Quote
i have a question too, can i imput negative damage for mp_wpndmg to make "healing guns" whitout lua?

EDIT: of course it would only work if FF is on

old Re: CS2D Questions

LilCoder
BANNED Off Offline

Quote
will there be a return value for the menu hook?
like this:

menu(id, title, button)

>return: 0 - proceed normally
           1 - don't show menu

old Re: CS2D Questions

DC
Admin Off Offline

Quote
Dvaris: Your script has an error. does the error give you a number? that's probably the line. check that line in your script for errors.

chuico123: try it. I guess not. It can be done with Lua and the hit hook though.

LilCoder: no, that totally doesn't make any sense since you are the one who actually opens the menu with Lua commands (the menu hook only works for Lua menus). why should you open a menu if you don't want to see it at all?!

old Re: CS2D Questions

SQ
Moderator Off Offline

Quote
LilCoder has written
     For example to hook the original Change Teams menu from cs2d.

CS2D lua not support this.
DC has written
only works for Lua menus

Its crazy to return all game functions

Menu hook is working only for lua/your script menus (as DC said).
1
2
--Hook will be called only after this function
menu()

So first learn about that

old Re: CS2D Questions

chuico123
User Off Offline

Quote
yeah it gives me an error message saying that negative values are not allowed, you should allow negative, why not? any system error?

PS:should i post it on the lab?

old Re: CS2D Questions

GhostFreak
COMMUNITY BANNED Off Offline

Quote
i wanna make mine lua scripts but i dont see how to make lua scripts anywhere lol
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview