09-18-2006, 11:24 PM | #1 |
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
|
LUA Questions
Well, I have some questions about LUA for new game types and such, so I figured I'd make a thread so everyone could post questions about LUA, since im sure lots of mappers have them.
1. Is it possible to have a 'grav gun' for just one map? 2. Can you give flags properties like damage over time? 3. Is it possible to make corpses into prop_physics after the player dies? 4. Can you attach physics objects to different parts of players? |
|
09-19-2006, 01:22 AM | #2 |
Useless
Retired FF Staff
|
2 I'm certain can be done, the others I could only speculate.
__________________
Look at all those dead links. |
|
09-19-2006, 10:37 PM | #3 |
Join Date: Mar 2005
Location: The Peoples Republic of Harmfull Free Radicals
Posts Rated Helpful 0 Times
|
Here's my question:
1. Please explain LUA. It's not so much a question I guess. |
|
09-20-2006, 01:03 AM | #4 |
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
|
I knew the two of you would hop in this thread pretty quick.
I guess a general question about LUA would be: 5. What can you not change? For example (with my corpses question): Can we change what is serverside clientside? Can we change physics or fundamental game mechanics? Could I make it so every player is followed around by a pink frog? Could I make one map an entire mod/total conversion of FF? |
|
09-20-2006, 02:20 PM | #5 |
Retired FF Staff
|
Yeah, sorry for never responding to your second pm :P
__________________
Head of the Orca Revolution (TM) |
|
09-20-2006, 03:20 PM | #6 |
Fortress Forever Staff
Join Date: Dec 2004
Location: Cape Town, SA
Posts Rated Helpful 8 Times
|
guys Lua isn't an acronym!!
also people who write MOD as if that's an acronym are pretty silly but that's a debate for another time |
|
09-20-2006, 03:42 PM | #7 |
Join Date: Feb 2005
Location: Europe, Front Yard
Posts Rated Helpful 0 Times
|
well i guess you could backronym it in to Modification Of Data but yeah it's silly
what does lua mean then ? is it an abbreviation ? |
|
09-20-2006, 03:50 PM | #8 |
Join Date: Dec 2004
Location: Melbourne
Posts Rated Helpful 0 Times
|
|
|
09-20-2006, 06:48 PM | #9 |
Join Date: Jan 2005
Posts Rated Helpful 0 Times
|
Maybe they're just SHOUTING.
"Hey guys I am making a MOD with LUA!" |
|
09-20-2006, 07:33 PM | #10 | |
Useless
Retired FF Staff
|
Quote:
__________________
Look at all those dead links. |
|
|
09-20-2006, 07:45 PM | #11 | |
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
|
Quote:
Anyway, will we find out about any of these Lua questions? |
|
|
09-20-2006, 08:51 PM | #12 |
Join Date: Jul 2006
Location: Austin, Texas
Posts Rated Helpful 0 Times
|
the LOO-ah questions?
|
|
09-21-2006, 02:39 AM | #13 | |
Join Date: Mar 2005
Location: The Peoples Republic of Harmfull Free Radicals
Posts Rated Helpful 0 Times
|
Quote:
So I don't have much hope for this thread. They treat it like it's one of their trade secrets or something. I don't get it. |
|
|
09-21-2006, 04:16 AM | #14 |
Join Date: Jan 2005
Location: Montreal
Posts Rated Helpful 0 Times
|
In a bad mood Nezumi?
|
|
09-21-2006, 11:39 AM | #15 |
Retired FF Staff
Join Date: Dec 2004
Location: Scotland
Posts Rated Helpful 0 Times
|
We've discussed lua quite a bit, actually.
|
|
09-21-2006, 03:32 PM | #16 | |
Fortress Forever Staff
Join Date: Dec 2004
Location: Cape Town, SA
Posts Rated Helpful 8 Times
|
Quote:
|
|
|
09-21-2006, 08:41 PM | #18 | |||
Join Date: May 2005
Location: Changes every few months
Posts Rated Helpful 0 Times
|
Quote:
So I'll assume that means I can attach player corpses to players who whack them with crowbars, or turn them into prop_physics and give players gravity guns to carry them back to the grinders.. its just a matter of how bad that ends up impacting the speediness of the server. Quote:
Quote:
|
|||
|
09-22-2006, 10:21 PM | #19 | |
Join Date: Mar 2005
Location: The Peoples Republic of Harmfull Free Radicals
Posts Rated Helpful 0 Times
|
Quote:
|
|
|
09-27-2006, 04:16 PM | #20 |
Join Date: Jan 2005
Posts Rated Helpful 0 Times
|
Listen, people, if you want to know about lua itself, just go to http://www.lua.org/ It's a general purpose scripting language that is designed to be embedded into C programs.
From the lua manual (http://www.lua.org/manual/5.1/manual.html#1): "This host program (in this case, the FF .dll) can invoke functions to execute a piece of Lua code, can write and read Lua variables, and can register C functions to be called by Lua code. Through the use of C functions, Lua can be augmented to cope with a wide range of different domains, thus creating customized programming languages sharing a syntactical framework" So when you hear that lua can do anything, what that really means is that lua can get information from the FF process, do any kind of logic you wish to write, and then talk back to FF. What we don't know is how much the devs are going to link lua to the FF code. My understanding is that certain functions and variables in the FF code will be "lua enabled" enabling scripts to access them. Things like "which player has the flag" and "do damage to player x" are pretty obvious additions, but "make a client-side ragdoll" might not be available. I doubt you would be able to give a player a grav-gun, since there are no grav-guns in team fortress. I'd certainly like to see a representative example of what can be done, even if it is a work in progress. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|