Page 1 of 2

Assign a carrier plane spawner flag ID?

Posted: Thu Feb 10, 2011 6:03 pm
by Iced Earth
A clan member had an idea, and we tried to implement it last night on our server, but no such luck.

What I'm wondering if is possible / What I want to do:

Make it so when japs hold a flag (airfield), their carrier planes do not spawn (to prevent excess plane whoring for axis).

How I thought to do it: Assign the Shokaku plane spawners the airfield ID, setting the team 1 template to blank, but the team 2 template to the regular jap planes.

For testing purposes we changed the carrier vehicles to jeeps in our patch file and that worked, but when the japs took the AF, the vehicles kept spawning on the carrier.

Ideas? I tried .active-ing the shokakuzerospawner / aichispawner, and even activating the ShokakuComplex and setting active template numbers.

Would removing the default ship's plane spawners and replacing it with a different one work? Would OSID even work for a carrier's spawner?

Re: Assign a carrier plane spawner flag ID?

Posted: Thu Feb 10, 2011 6:49 pm
by Apache Thunder
OSIDs only work on the Object.create class and not at the objecttemplate level. You will need to spawn the vehicles relative to the map and not as addTemplate entries to the carrier so that they will respond to CP team changes.

Posted: Thu Feb 10, 2011 7:38 pm
by freddy
could be tricky if your carrier isnt static, let us know how it works, i like the idea :)

Re: Assign a carrier plane spawner flag ID?

Posted: Thu Feb 10, 2011 7:39 pm
by Iced Earth
That makes sense...

So essentially this isn't possible? Since the carrier always moves?

@freddy lol yeah man for sure...back to the drawing board it seems. Hey nice avatar btw haha. :D

Re: Assign a carrier plane spawner flag ID?

Posted: Fri Feb 11, 2011 5:29 am
by Iced Earth

Re: Assign a carrier plane spawner flag ID?

Posted: Fri Feb 11, 2011 8:12 am
by Swaffy
This is what the Swaff would do in this situation:

- Create a static Jappy carrier and U.S. carrier. Place them on the map, replacing the original carriers.
- Put the vehicle spawns there, including the LCVP [Landing Craft, Vehicle, Personnel] on each side
- Add the spawn points with the code "AiEnterOnSpawn" or whatever it's called.

That's the CSM way of doing it. I have no clue how Server Side modding works.

Re: Assign a carrier plane spawner flag ID?

Posted: Fri Feb 11, 2011 8:51 am
by Iced Earth
It would be close server-side.

The bad thing is that adding a US carrier to wake island messes up the map dynamics. Even the static carrier.

I think if there is no solution we're going to mess with the carrier spawn time.

Posted: Fri Feb 11, 2011 11:33 am
by freddy
another idea maybe worth a try, you could Assign the Shokaku to the airfield ID

dunno how much it is used for you guys in normal gameplay but it would be more strategic goal to sink it

Re: Assign a carrier plane spawner flag ID?

Posted: Sat Feb 12, 2011 8:15 pm
by Swaffy
For a lazy way out, just remove the planes from the airfield. But that wouln't be much fun at all.

Re: Assign a carrier plane spawner flag ID?

Posted: Tue Mar 01, 2011 2:49 pm
by Dennis|8749236
i know we can assign a carrier as a control point, and if it sunk, it will not spawn unless reload the map..
but, i suggest we can try to put the carrier's code in the map, creat the spawnpoint first and then add into carrier's code..