Author Topic: [SOLVED ] .lua question  (Read 196 times)

Snake

  • So little free time, so much to mod..
  • Moderators
  • This Man Has No Life
  • *****
  • Posts: 1579
  • "Play to win, not to not lose"
  • Awards To recognize Modders that make a most excellent contribution within the Month Intergalactic Clan War 1 Participant Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • =AaTc=
    • Awards
  • Xfire:
[SOLVED ] .lua question
« on: March 14, 2011, 08:16:47 PM »
Hey I saw this in the tat2i.lua file for mos eisley near the top it said
SetTeamAggressiveness(IMP, 0.95)
SetTeamAggressiveness(ALL, 0.95)

What happens if you increase this? I dont understand how theyre aggressiveness can increase.

Also what does SetDenseEnvironment("false") do. What is the visible difference between true and false?
« Last Edit: March 21, 2011, 09:56:01 AM by SnΛke »
=AaTc= Forever


-SWBF Museum (0.89%)

-Secret Project (44%)

-Retirement (85%)

-Hyperion: Ancient Excavations (Released)

Bamdur

  • Frequent Poster
  • ****
  • Posts: 198
  • Bamdur
    • View Profile
    • Awards
  • Xfire:
Re: [HELP] .lua question
« Reply #1 on: March 14, 2011, 10:46:57 PM »
For the top part, In the shipped guides it said that line of code was obbsolete and had no purpose, the dense enviroment im not complely sure about

Snake

  • So little free time, so much to mod..
  • Moderators
  • This Man Has No Life
  • *****
  • Posts: 1579
  • "Play to win, not to not lose"
  • Awards To recognize Modders that make a most excellent contribution within the Month Intergalactic Clan War 1 Participant Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • =AaTc=
    • Awards
  • Xfire:
Re: [HELP] .lua question
« Reply #2 on: March 15, 2011, 11:28:57 AM »
Could you test it for me? Just make a map with a few buildings or something and then set it to true and false and see if theres a difference. I can't open zeroeditor so..
=AaTc= Forever


-SWBF Museum (0.89%)

-Secret Project (44%)

-Retirement (85%)

-Hyperion: Ancient Excavations (Released)

Buckler

  • Administrator
  • INTERNET ADDICT
  • *****
  • Posts: 2764
    • View Profile
    • Awards
Re: [HELP] .lua question
« Reply #3 on: March 15, 2011, 05:38:33 PM »
You can do this with just a mission.lvl munge. 

Battlebelks tool would work or BFbuilderPro.

I thought I remembered that dense environments have an effect on AI aiming, but I can not find the link at the moment that describes that.  It is probably a subtle difference.

update:

Here is the information on the dense environment, taking from the folder
C:\LucasArts\BFBuilder\Documentation\luaguide.htm

>> ReadDataFile here is calling the world.lvl and it's assets here.
>> SetDenseEnvironment affects AI behavior so they are tuned for urban
>> or open combat. SetMinFlyHeight declarations are in meters and you should always
>> make sure your values meet your terrain heights.


« Last Edit: March 20, 2011, 06:36:32 PM by Buckler »

Phobos

  • Master Modder
  • INTERNET ADDICT
  • *****
  • Posts: 2217
  • Zombie Campaign Developer
  • Awards Shotgun Tournament 1st Place ICW2 Tournament Winner To recognize Modders that make a most excellent contribution within the Month LeaderBoard 1 organized by GDH92 and ComSharpshot Intergalactic Clan War 1 winner T.1 1v1 Tournament 1st Place organized by SleepKiller Releasing Multiple Mods on SWBFgamers.com
    • View Profile
    • Awards
Re: [SOLVED ] .lua question
« Reply #4 on: May 08, 2012, 10:29:34 PM »
Here is the exact information for what this setting does

Quote from: Psych0fred
I've added a setting to the lua mission scripts that tells the AI the mission is urban.  This allows the AI to change some combat behaviors to be more suitable to an urban environment (for example, ATST will not move as much around during combat, since in a tight urban setting they will collide with walls too much).
I've added the setting to all current lua files, so you will only need to add it to any new lua mission files you create:
SetUrbanEnvironment("true")
or
SetUrbanEnvironment("false")
I've renamed the script function, "SetUrbanEnvironment" to "SetDenseEnvironment" since I realized with Endor that I wanted the AI vehicles to behave in the same way in forested environments as in city environments.  The new function name generalizes the environment type better.  I've updated all the lua scripts with this new function name.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal