Assign a carrier plane spawner flag ID?

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Iced Earth
Posts: 209
Joined: Sun Oct 18, 2009 2:07 pm
Contact:

Assign a carrier plane spawner flag ID?

Post 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?
Image
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Assign a carrier plane spawner flag ID?

Post 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.
ImageImageImage
I have cameras in your head!
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

could be tricky if your carrier isnt static, let us know how it works, i like the idea :)
User avatar
Iced Earth
Posts: 209
Joined: Sun Oct 18, 2009 2:07 pm
Contact:

Re: Assign a carrier plane spawner flag ID?

Post 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
Image
User avatar
Iced Earth
Posts: 209
Joined: Sun Oct 18, 2009 2:07 pm
Contact:

Re: Assign a carrier plane spawner flag ID?

Post by Iced Earth »

Image
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Assign a carrier plane spawner flag ID?

Post 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.
Last edited by Swaffy on Sat Feb 12, 2011 8:13 pm, edited 1 time in total.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Iced Earth
Posts: 209
Joined: Sun Oct 18, 2009 2:07 pm
Contact:

Re: Assign a carrier plane spawner flag ID?

Post 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.
Image
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post 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
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Assign a carrier plane spawner flag ID?

Post by Swaffy »

For a lazy way out, just remove the planes from the airfield. But that wouln't be much fun at all.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Re: Assign a carrier plane spawner flag ID?

Post 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..
What is the meaning of Life?? (Don't think about it!)
Post Reply