Advanced mapping and map related scripting

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ARC1778
Sergeant Major
Sergeant Major
Posts: 230
Joined: Sat Jun 20, 2015 7:44 am
Projects :: WARFRONT + Various Mods for Other Games
Games I'm Playing :: SWBF2+RC+RTW MTW NTW
xbox live or psn: AlexisVixie
Location: Glasgow, tumblr.

Advanced mapping and map related scripting

Post by ARC1778 »

I'm designing this map here: http://www.gametoast.com/viewtopic.php? ... 08#p518408

And I have some questions about mapping and scripting it.

I'm looking at making 4-6 large buildings, 2 of them entirely unique, the others, the same with different rooms, how am I best getting these in game?

Ie should I make them without intractable objects and put them in game as "one piece?"

Or do it "floor by floor?"

Or do it as a shell, and add the rooms as needed?

Can the AI be "Taught" that if it wants to go through a door it must destroy it's "lock"?

Can the AI be "taught" to breach a wall or door to get access to a room "locked-off" behind?

Can the AI be "taught" to stand in a grav-lift until it moves, and then stops again, and then told to "Get out"?

Or can the lifts be controllable, but "on-rails" vehicles?

I know lifts have been made, but did the maker ever write a guide?

How does one make ambushes in instant action? I.e. shoot a lock, someone runs out, enter the living room and someone runs out from another room?

And how would one make the "ambushes" random so that if the CP nearest was owned by a faction, then 20% of the time, that faction's units would replace the local (Default civilian) side in that ambush?

Any other comments/ideas? How would this be better? Etc
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Advanced mapping and map related scripting

Post by Noobasaurus »

ARC1778 wrote:Can the AI be "Taught" that if it wants to go through a door it must destroy it's "lock"?
Yes.
ARC1778 wrote:Can the AI be "taught" to breach a wall or door to get access to a room "locked-off" behind?
Yes.
ARC1778 wrote:Can the AI be "taught" to stand in a grav-lift until it moves, and then stops again, and then told to "Get out"?
Yes.

All of these things can be accomplished, though some are difficult, and may require separate teams.
ARC1778 wrote:I know lifts have been made, but did the maker ever write a guide?
http://www.gametoast.com/viewtopic.php?f=27&t=5865

Also one in the documentation.
ARC1778 wrote:How does one make ambushes in instant action? I.e. shoot a lock, someone runs out, enter the living room and someone runs out from another room?
There's a bunch of tutorials in the FAQ for ambushes. You just need to set it up for your needs.
ARC1778 wrote:And how would one make the "ambushes" random so that if the CP nearest was owned by a faction, then 20% of the time, that faction's units would replace the local (Default civilian) side in that ambush?
Use math.random() in your code, so each time you want to check if the ambush will appear or not, it'll give you a random number to use.
ARC1778
Sergeant Major
Sergeant Major
Posts: 230
Joined: Sat Jun 20, 2015 7:44 am
Projects :: WARFRONT + Various Mods for Other Games
Games I'm Playing :: SWBF2+RC+RTW MTW NTW
xbox live or psn: AlexisVixie
Location: Glasgow, tumblr.

Re: Advanced mapping and map related scripting

Post by ARC1778 »

*Salutes* Thank you sir!
Post Reply