Difference between revisions of "Ai profiles.tbl"

From FreeSpace Wiki
Jump to: navigation, search
m (update)
Line 1: Line 1:
 
{{SCP_table}}
 
{{SCP_table}}
  
{{TableVersion|4500|4499}}
+
{{TableVersion|4565|4565}}
  
  
Line 75: Line 75:
 
===$AI Maybe Links Ammo Weapons:===
 
===$AI Maybe Links Ammo Weapons:===
 
{{Table36|
 
{{Table36|
*Defines the same as '''$AI Always Links Ammo Weapons:''' but in situations when it's hull is below 33 % of maximum hitpoints.
+
*Defines the same as '''$AI Always Links Ammo Weapons:''' but in situations when its hull is below 33 % of maximum hitpoints.
 
*Syntax: '''Float list'''
 
*Syntax: '''Float list'''
 
**Default: 90, 60, 40, 20, 10}}
 
**Default: 90, 60, 40, 20, 10}}
Line 89: Line 89:
 
===$AI Maybe Links Energy Weapons:===
 
===$AI Maybe Links Energy Weapons:===
 
{{Table36|
 
{{Table36|
*Defines the same as '''$AI Always Links Energy Weapons:''' but in situations when it's hull is below 33 % of maximum hitpoints.
+
*Defines the same as '''$AI Always Links Energy Weapons:''' but in situations when its hull is below 33 % of maximum hitpoints.
 
*Syntax: '''Float list'''
 
*Syntax: '''Float list'''
 
**Default: 90, 60, 40, 20, 10}}
 
**Default: 90, 60, 40, 20, 10}}
Line 185: Line 185:
 
*Syntax: '''Float list'''
 
*Syntax: '''Float list'''
 
**Default:  10, 4, 2.5, 2, 1.5}}
 
**Default:  10, 4, 2.5, 2, 1.5}}
 +
 +
 +
===$Max Turret Target Ownage:===
 +
{{Table36|
 +
*Sets the maximum number of turrets on a particular ship allowed to be attacking the same target at any given time
 +
*Syntax: '''Float list'''
 +
**Default: 3, 4, 7, 12, 19}}
 +
 +
 +
===$Max Turret Player Ownage:===
 +
{{Table36|
 +
*Sets the maximum number of turrets on a particular ship allowed to be attacking the player at any given time
 +
*Syntax: '''Float list'''
 +
**Default: 3, 4, 7, 12, 19}}
  
  
Line 252: Line 266:
 
===$disable linked fire penalty:===
 
===$disable linked fire penalty:===
 
{{Table36|
 
{{Table36|
*If set, there will be no penalty for linking prinaries.  Normally, the rate of fire is divided by the number of linked guns.}}
+
*If set, there will be no penalty for linking primaries.  Normally, the rate of fire is divided by the number of linked guns.}}
  
  
Line 262: Line 276:
 
===$use additive weapon velocity:===
 
===$use additive weapon velocity:===
 
{{Table36|
 
{{Table36|
*If set, weapons will inherit their firing ship's velocity.  A ship travelling quickly will fire weapons faster than a ship travelling slowly.  This also improves the accuracy of weapons fired while gliding.}}
+
*If set, weapons will inherit their firing ship's velocity.  A ship traveling quickly will fire weapons faster than a ship traveling slowly.  This also improves the accuracy of weapons fired while gliding.}}
  
  
 
===$use newtonian dampening:===
 
===$use newtonian dampening:===
 
{{Table36|
 
{{Table36|
*Newtonian Dampening changes turning behavior. By default, there's quite a bit of slide when you turn, and when combined with high damp values (such as in BtRL), you can actually push your speed up beyond the max. Newtonian Dampening is the more realistic turns, where to much turning will lower your speed. Backslash can explain it in more detail. [http://www.hard-light.net/forums/index.php/topic,50870.msg1029741.html#msg1029741] }}
+
*Newtonian Dampening changes turning and acceleration behavior. By default, there's quite a bit of slide when you turn, and when combined with high damp values (such as in BtRL), you can actually push your speed up beyond the max. Newtonian Dampening is the more realistic turns, where too much turning will lower your speed. Forward momentum is also affected. Backslash can explain it in more detail. [http://www.hard-light.net/forums/index.php/topic,50870.msg1029741.html#msg1029741] }}
  
 
==Sample Entry==
 
==Sample Entry==
Line 300: Line 314:
 
$Player Shield Recharge Scale:              4,    2,    1.5,  1.25, 1
 
$Player Shield Recharge Scale:              4,    2,    1.5,  1.25, 1
 
$Player Weapon Recharge Scale:              10,  4,    2.5,  2,    1.5
 
$Player Weapon Recharge Scale:              10,  4,    2.5,  2,    1.5
 +
$Max Turret Target Ownage:                  3,    4,    7,    12,  19
 +
$Max Turret Player Ownage:                  3,    4,    7,    12,  19
  
 
$big ships can attack beam turrets on untargeted ships:  NO
 
$big ships can attack beam turrets on untargeted ships:  NO

Revision as of 20:12, 30 March 2008

This feature requires FreeSpace Open

Revision information.....

FSO Revision: 4565
Note: Please update the version when the page is updated. If your edit had nothing to do with new code entries then please do not edit the version



Contents

General Format

  • AI_profiles.tbl defines the default AI profile and also any additional global variables that the AI uses. Incorporates some of the materials from the older difficulty.tbl
  • Any option left undefined uses default values.
  • #AI Profiles
  • $Default Profile:
  • The additional AI profiles
  • #End


AI Profiles

  • Defines AI profile global variables


$Default Profile:

  • Unless the name of the default profile is the same as the name of one the additional AI profiles game defaults to retail AI behaviour. Non-default AI profiles must be selected with FRED for each mission separately.


$Profile Name:

  • All multiple options relate to difficulty levels (Very Easy, Easy, Medium, Hard, Insane).




The following entries accept float list of five comma separated values. One value for each of the difficulty level.


$Player Afterburner Recharge Scale:

FS2 Open, 3.6.x:
  • Sets the speed of afterburner recharge
  • Syntax: Float list
    • Default: 5, 3, 2, 1.5, 1


$Max Beam Friendly Fire Damage:

FS2 Open, 3.6.x:
  • Defines the maximum damage inflicted by friendly beam fire
  • Syntax: Float list
    • Default: 0, 5, 10, 20, 30


$Player Countermeasure Life Scale:

FS2 Open, 3.6.x:
  • Sets the factor applied to player launched countermeasure lifetime
  • Syntax: Float list
    • Default: 3, 2, 1.5, 1.25, 1


$AI Countermeasure Firing Chance:

FS2 Open, 3.6.x:
  • Defines the chance a countermeasure will be fired by an AI-controlled ship (this is scaled by ai_class)
  • Syntax: Float list
    • Default: 0.2, 0.3, 0.5, 0.9, 1.1


$AI In Range Time:

FS2 Open, 3.6.x:
  • Defines the seconds added to the time it takes for an enemy to come in range of (i.e. target) a friendly ship
  • Syntax: Float list
    • Default: 2, 1.4, 0.75, 0, -1


$AI Always Links Ammo Weapons:

FS2 Open, 3.6.x:
  • AI ships will link ballistic primaries if ammo levels are greater than these percents.
  • Syntax: Float list
    • Default: 95, 80, 60, 40, 20


$AI Maybe Links Ammo Weapons:

FS2 Open, 3.6.x:
  • Defines the same as $AI Always Links Ammo Weapons: but in situations when its hull is below 33 % of maximum hitpoints.
  • Syntax: Float list
    • Default: 90, 60, 40, 20, 10


$AI Always Links Energy Weapons:

FS2 Open, 3.6.x:
  • AI ships will link energy primaries if energy levels are greater than these percents.
  • Syntax: Float list
    • Default: 100, 80, 60, 40, 20


$AI Maybe Links Energy Weapons:

FS2 Open, 3.6.x:
  • Defines the same as $AI Always Links Energy Weapons: but in situations when its hull is below 33 % of maximum hitpoints.
  • Syntax: Float list
    • Default: 90, 60, 40, 20, 10


$Max Missles Locked on Player:

FS2 Open, 3.6.x:
  • Defines the maximum number of missiles allowed to be homing in on a player at any given time
  • Note: Single-player only, no restriction in multiplayer
  • Syntax: Float list
    • Default: 2, 3, 4, 7, 99


$Max Player Attackers:

FS2 Open, 3.6.x:
  • Sets the maximum number of ships allowed to be attacking the player at any given time
  • Syntax: Float list
    • Default: 2, 3, 4, 5, 99


$Max Incoming Asteroids:

FS2 Open, 3.6.x:
  • Sets the maximum number of active (i.e. "thrown") asteroids that can be heading toward a friendly ship at any given time
  • Syntax: Float list
    • Default: 3, 4, 5, 7, 10


$Player Damage Factor:

FS2 Open, 3.6.x:
  • Defines the factor applied to damage suffered by the player
  • Syntax: Float list
    • Default: 0.25, 0.5, 0.65, 0.85, 1


$Player Subsys Damage Factor:

FS2 Open, 3.6.x:
  • Sets the factor applied to subsystem damage suffered by the player. This is in addition to the $Player Damage Factor:
  • Syntax: Float list
    • Default: 0.2, 0.4, 0.6, 0.8, 1


$Predict Position Delay:

FS2 Open, 3.6.x:
  • Sets the measure of time (in F1_0 units) after which the AI will recalculate the position of its target
  • Syntax: Float list
    • Default: 2, 1.5, 1.333, 0.5, 0


$Player Shield Recharge Scale:

FS2 Open, 3.6.x:
  • Sets the factor applied to the speed at which the player's shields recharge
  • Syntax: Float list
    • Default: 4, 2, 1.5, 1.25, 1


$AI Shield Manage Delay:

FS2 Open, 3.6.x:
  • Also $AI Shield Manage Delays:
  • Sets the time in seconds between each instance of an AI ship managing its shields
  • Syntax: Float list
    • Default: 5, 4, 2.5, 1.2, 0.1


$Friendly AI Fire Delay Scale:

FS2 Open, 3.6.x:
  • Sets the factor applied to "fire wait" for friendly ships
  • Syntax: Float list
    • Default: 2, 1.4, 1.25, 1.1, 1


$Hostile AI Fire Delay Scale:

FS2 Open, 3.6.x:
  • Sets the factor applied to "fire wait" for hostile ships
  • Syntax: Float list
    • Default: 4, 2.5, 1.75, 1.25, 1


$Player Subsys Damage Factor:

FS2 Open, 3.6.x:
  • Also $AI Damage Reduction to Player Subsys:
  • Syntax: Float list
    • Default: 0.2, 0.4, 0.6, 0.8, 1


$AI Turn Time Scale:

FS2 Open, 3.6.x:
  • Defines the factor applied to time it takes for enemy ships to turn
  • Syntax: Float list
    • Default: 3, 2.2, 1.6, 1.3, 1


$Player Weapon Recharge Scale:

FS2 Open, 3.6.x:
  • Defines the factor applied to the speed at which the player's weapons recharge
  • Syntax: Float list
    • Default: 10, 4, 2.5, 2, 1.5


$Max Turret Target Ownage:

FS2 Open, 3.6.x:
  • Sets the maximum number of turrets on a particular ship allowed to be attacking the same target at any given time
  • Syntax: Float list
    • Default: 3, 4, 7, 12, 19


$Max Turret Player Ownage:

FS2 Open, 3.6.x:
  • Sets the maximum number of turrets on a particular ship allowed to be attacking the player at any given time
  • Syntax: Float list
    • Default: 3, 4, 7, 12, 19




The following entries are boolean flags. They can be set to YES or NO, TRUE or FALSE, OUI or NON, HIja′ or ghobe′, etc. The default is NO.


$big ships can attack beam turrets on untargeted ships:

FS2 Open, 3.6.x:
  • If set, big ships can attack a beam turret that's firing on them from a ship that they don't currently have targeted.


$smart primary weapon selection:

FS2 Open, 3.6.x:
  • If set, enables the new primary weapon selection method


$smart secondary weapon selection:

FS2 Open, 3.6.x:
  • If set, enables the new secondary weapon selection method (including proper use of bomber+ missiles)


$smart shield management:

FS2 Open, 3.6.x:
  • If set, enables smart shield management (previously was -smart_shields on the command line)


$allow rapid secondary dumbfire:

FS2 Open, 3.6.x:
  • If set, allows an AI ship to switch to rapid fire for dumbfire missiles


$huge turret weapons ignore bombs:

FS2 Open, 3.6.x:
  • If set, causes huge turret weapons (including anti-capship beams) to not target bombs


$don't insert random turret fire delay:

FS2 Open, 3.6.x:
  • If set, removes the random turret fire delay (from .1 to .9 seconds) inserted in addition to AI Fire Delay Scale


$hack improve non-homing swarm turret fire accuracy:

FS2 Open, 3.6.x:
  • If set, triggers a hack to improves the accuracy of non-homing swarm missiles by firing them along the turret's last fire direction rather than the direction it currently faces
  • Also disables swarm weapons ability to fire only on the 'turrets barrel line'.


$shockwaves damage small ship subsystems:

FS2 Open, 3.6.x:
  • If set, shockwaves will cause damage to small ship subsystems (like in FS1)


$navigation subsystem governs warpout capability:

FS2 Open, 3.6.x:
  • If set, ships will not be able to warp out if their navigation subsystem is destroyed or low in strength


$ignore lower bound for minimum speed of docked ship:

FS2 Open, 3.6.x:
  • If set, there will be no lower bound for the speed at which docked ships move (like in FS1).
  • When a ship is towing another ship or ships, the towing ship will be slowed down to a degree depending on the total mass of all docked ships. In FS1, the ships could slow down to an arbitrarily slow speed, even a fraction of a m/s above zero. In FS2, there is a lower bound on this behavior so that all ships are guaranteed to move at a minimum docked speed. When set, this flag removes the lower bound and restores FS1 behavior.


$disable linked fire penalty:

FS2 Open, 3.6.x:
  • If set, there will be no penalty for linking primaries. Normally, the rate of fire is divided by the number of linked guns.


$disable weapon damage scaling:

FS2 Open, 3.6.x:
  • If set, weapons will do the same damage to a ship regardless of "big damage", "supercap", etc. ship types.


$use additive weapon velocity:

FS2 Open, 3.6.x:
  • If set, weapons will inherit their firing ship's velocity. A ship traveling quickly will fire weapons faster than a ship traveling slowly. This also improves the accuracy of weapons fired while gliding.


$use newtonian dampening:

FS2 Open, 3.6.x:
  • Newtonian Dampening changes turning and acceleration behavior. By default, there's quite a bit of slide when you turn, and when combined with high damp values (such as in BtRL), you can actually push your speed up beyond the max. Newtonian Dampening is the more realistic turns, where too much turning will lower your speed. Forward momentum is also affected. Backslash can explain it in more detail. [1]

Sample Entry

  • Retail FS2 behaviour
#AI Profiles
   
$Default Profile:                            FS2 RETAIL
   
$Profile Name:                               FS2 RETAIL
 
$Player Afterburner Recharge Scale:          5,    3,    2,    1.5,  1
$Max Beam Friendly Fire Damage:              0,    5,    10,   20,   30
$Player Countermeasure Life Scale:           3,    2,    1.5,  1.25, 1
$AI Countermeasure Firing Chance:            0.2,  0.3,  0.5,  0.9,  1.1
$AI In Range Time:                           2,    1.4,  0.75, 0,    -1
$AI Always Links Ammo Weapons:               95,   80,   60,   40,   20
$AI Maybe Links Ammo Weapons:                90,   60,   40,   20,   10
$AI Always Links Energy Weapons:             100,  80,   60,   40,   20
$AI Maybe Links Energy Weapons:              90,   60,   40,   20,   10
$Max Missles Locked on Player:               2,    3,    4,    7,    99
$Max Player Attackers:                       2,    3,    4,    5,    99
$Max Incoming Asteroids:                     3,    4,    5,    7,    10
$Player Damage Factor:                       0.25, 0.5,  0.65, 0.85, 1
$Player Subsys Damage Factor:                0.2,  0.4,  0.6,  0.8,  1
$Predict Position Delay:                     2,    1.5,  1.33, 0.5,  0
$AI Shield Manage Delay:                     5,    4,    2.5,  1.2,  0.1
$Friendly AI Fire Delay Scale:               2,    1.4,  1.25, 1.1,  1
$Hostile AI Fire Delay Scale:                4,    2.5,  1.75, 1.25, 1
$AI Turn Time Scale:                         3,    2.2,  1.6,  1.3,  1
$Player Shield Recharge Scale:               4,    2,    1.5,  1.25, 1
$Player Weapon Recharge Scale:               10,   4,    2.5,  2,    1.5
$Max Turret Target Ownage:                   3,    4,    7,    12,   19
$Max Turret Player Ownage:                   3,    4,    7,    12,   19

$big ships can attack beam turrets on untargeted ships:  NO
$smart primary weapon selection:                         NO
$smart secondary weapon selection:                       NO
$smart shield management:                                NO
$allow rapid secondary dumbfire:                         NO
$huge turret weapons ignore bombs:                       NO
$don't insert random turret fire delay:                  NO
$hack improve non-homing swarm turret fire accuracy:     NO
$shockwaves damage small ship subsystems:                NO
$navigation subsystem governs warpout capability:        NO
$ignore lower bound for minimum speed of docked ship:    NO
$disable linked fire penalty:                            NO
$disable weapon damage scaling:                          NO
$use additive weapon velocity:                           NO
$use newtonian dampening:                                NO
  
#End

References

  1. "Re: New difficulty? - Feature request!", Hard Light Productions Forums, Hard Light Productions, 2007-12-15. Retrieved on December_27, 2007.