10-18-2007, 06:01 PM | #1 |
Retired FF Staff
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
Class-Specific Spawns
I remember this feature being promised a long time ago, is it possible to implement it in LUA yet? If so, how?
I've looked around the base lua files and haven't seen anything I can usefully derive to this end. |
|
10-19-2007, 12:02 AM | #2 |
Retired Mapper
Join Date: Mar 2007
Location: Tulsa, OK
Posts Rated Helpful 1 Times
|
http://www.fortress-forever.com/foru...ad.php?t=12444
That thread mentions how to make a teleporter class only, i would guess that you would use something similar to check the class in the spawn point code, using the validspawn function. |
|
10-19-2007, 11:00 AM | #3 |
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
validspawn isn't a function but a var.
red_pyrospawn = info_ff_teamspawn:new({validspawn = is_validspawn(class = Class.kPyro, team = Team.kRed)}) and eh, download ff_badlands to see the rest since i don't remember it anymore , the lua code for badlands includes a sniper only spawn and the other spawns dont allow snipers to spawn badlans: http://www.sgware.be/?p=downloads&f=view&id=31 |
|
02-27-2008, 12:01 PM | #4 | |
Join Date: May 2007
Posts Rated Helpful 0 Times
|
So I spent a few hours on this and gave up. I know some of you shit code in your sleep but I'm no good unless someone does it for me. So I'm asking again how you do this in a map. Below is what I found in Badlands, but I can't get it working.
Quote:
|
|
|
02-27-2008, 02:10 PM | #5 |
Wiki Team
Fortress Forever Staff Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly Gametype: PAYLOAD Affiliations: DET- Posts Rated Helpful 19 Times
|
That's the code you need man...what class are you wanting to spawn?
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf (Beta) alchimy_b1 (Lua) base_payload_2015 (Models) props_trainyard |
|
02-27-2008, 11:10 PM | #6 |
Retired FF Staff
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
look at the lua for ff_session, it has offense spawns (med/scout) only and it certainly works.
|
|
02-28-2008, 04:18 AM | #7 |
Join Date: May 2007
Posts Rated Helpful 0 Times
|
The more I edit my LUA the more things end up not working. I restarted my LUA from scratch and this code works fine. I just need to get everything working at the same time. If the frustration keeps up I'll just post my entire LUA for help when I go beta.
Thanks for the help. |
|
02-28-2008, 05:41 AM | #8 | |
Wiki Team
Fortress Forever Staff Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly Gametype: PAYLOAD Affiliations: DET- Posts Rated Helpful 19 Times
|
Quote:
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf (Beta) alchimy_b1 (Lua) base_payload_2015 (Models) props_trainyard |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|