Page 1 of 1

a few questions

Posted: Sat Apr 18, 2009 11:13 am
by destos
ok i got a few questions

1. What are the auto turrets in hoth hunt called (they are the chainguns that sit on the tripod and shoot at the wampas automatically)

2. is there a code to stop the enemy from spawning for a set amount of time ( im trying to make a wave of enemies appear and then give you some time to repair all your walls and turrets before the next wave comes.)

3. is there a code so that certain classes are not allowed to spawn (like say i only wanted stormies to spawn but later on i want assualt troopers to be allowed to spawn as well)

Re: a few questions

Posted: Sat Apr 18, 2009 1:38 pm
by jedimoose32
To answer #3:

I believe you add a lua function that uses the AddUnitClass effect after a timer expires or after the attacking team's score reaches a certain value.

EDIT:

Add your function after this one (or inside, I can't remember):

Code: Select all

function ScriptPostLoad()      
And then your side should only have this:

Code: Select all

ReadDataFile("SIDE\\rep.lvl",
                             "rep_inf_ep3_rifleman")
and then,

Code: Select all

rep = {
         team = REP,
         units = 20,
         reinforcements = 250,
         soldier  = { "rep_inf_ep3_rifleman",9, 25},
             }
EDIT 2:

To answer #2:

Same basic principle. Make a function so that when the defending team's score reaches a certain number, the attacking team's reinforcement count goes to 1. From my experience this disallows any spawning except for human spawning, and I don't know why. In the same function, start a timer. Then make another function. In this one, if the timer has expired the reinforcement value goes back to whatever you want.

Re: a few questions

Posted: Sat Apr 18, 2009 3:04 pm
by destos
i got one last question now that i think of it...

if i where to copy the assault mode ai goals ( so that they only hunt for enemies instead of trying to capture command posts) would that work?

Re: a few questions

Posted: Sat Apr 18, 2009 5:23 pm
by jedimoose32
It should, just make sure you reference "ObjectiveTDM.lua" in the beginning of your world's lua. Just underneath "ObjectiveConquest.lua" and "setup_teams.lua".

Re: a few questions

Posted: Sat Apr 18, 2009 7:34 pm
by AQT
destos wrote:1. What are the auto turrets in hoth hunt called (they are the chainguns that sit on the tripod and shoot at the wampas automatically)
Those turrets are called "tur_bldg_chaingun_tripod".

Re: a few questions

Posted: Sat Apr 18, 2009 9:00 pm
by jedimoose32
AQT wrote:
destos wrote:1. What are the auto turrets in hoth hunt called (they are the chainguns that sit on the tripod and shoot at the wampas automatically)
Those turrets are called "tur_bldg_chaingun_tripod".
Correct, and they belong to a side, not a world, just to clarify.

Hope that this topic has helped you. I can't wait for this map to show its face here on Gametoast!

Re: a few questions

Posted: Sun Apr 19, 2009 8:42 pm
by FelixXxX
Assault mode ai goals

AddAIGoal(ATT, "Deathmatch", 100)
AddAIGoal(DEF, "Deathmatch", 100)
put that in instead of the conquest ones