Ammo

To edit ammo configurations in OpenCAGE navigate to View > Configuration Editors > Inventory > Ammo.

From here you will be presented with a variety of options which relate to the selected ammo type in the dropdown at the top of the window.

There is no Save button: changes are saved as you make them. An ammo type's file can name another type as its template. Where the selected type doesn't set a value itself, the editor shows the value from its template. When the editor opens it saves every ammo type, writing the values each one inherits into its own file. A box with no value in the type or any of its templates is greyed out and isn't saved.

Read on to see a list of available properties with information about each.

The Ammo editor in OpenCAGE.

Used By & Spare Records

Ammo types are global: every level of the game, and every mod's level, reads the same files, so a change here changes the base game for every weapon that fires that ammo. The banner across the top of the editor says so. The list of ammo types is also fixed: the game knows them by number (AMMO_TYPE), so a new one can't be added. To give a weapon of your own its own ammo, take a type nothing uses instead.

Used By... on the banner shows, for the selected type, everything that uses it, and Spare Records... lists the types nothing uses. Both open the same window, which reads:

The Ammo Types: Used By / Spare window: the GLOBAL banner, Look in: Every level on disk, the list of ammo types with what each is built on and its uses (SMG_DUM_DUM in green as spare), and on the right SMG_NORMAL's uses level by level, each a composite pin's default that its instance overrides, marked reaches nothing.

  • the types built on it: a type's file can name another as its template, and takes from it every value it doesn't set itself (PISTOL_NORMAL_NPC is built on PISTOL_NORMAL);
  • the pickups that give it (GBL_ITEM's ammo items, such as the incendiary shells);
  • every level's script: weapons' default ammo, damage checks, filters and anything else set to that type. A composite parameter's default only counts where an instance of the composite keeps it: retail's bolt gun script defaults to SMG_NORMAL, but its one instance sets its own.

Look in picks every level on disk, the game's own levels, or the open level only. Reading every level takes a few seconds the first time; the results are kept until a level's script changes, so the next look is immediate. The open level is read as it is now, unsaved changes included.

On the game's own levels the spare ammo types are SMG_NORMAL, SMG_DUM_DUM, ACID_BURST_LARGE, EMP_BURST_SMALL and PUSH. The game's code can still use a type no data names (a shove may use PUSH), so try a spare one in game before you rely on it. The Attributes editor has the same banner and window for character attribute sets. AI assistants ask the same with find_spare_config_records.

Impact Physics

  • Has Physics Response bool
    • Check this to enable physics responses to impacts.
  • Impulse Radius float Minimum: 0.1 Maximum: 1000
    • The impulse radius in metres.
  • Impulse At Centre Of Blast float Minimum: 1 Maximum: 1000
    • The impulse applied to an object at the centre of the blast.
  • Impulse Falloff Power float Minimum: 0 Maximum: 17
    • This modifies the impulse based on distance from centre.
  • Character Wavefront Speed float Minimum: 0.1 Maximum: 1000
    • The speed the wavefront of an explosion moves at, in metres per second.

Projectiles

  • Is Projectile bool
    • If this ammo type is a projectile - note this value may be overridden at runtime.
  • Used Per Shot int Maximum: 1000
    • If projectile, defines ammo depletion per shot - for example 7 damage rays for the shotgun may only use 2 ammo.

Fuel

  • Is Fuel bool
    • Check to mark the ammo type as fuel, and not the standard projectile.
  • Is Flamethrower bool
    • If this ammo type is used for the flamethrower - note this value may be overridden at runtime.
  • Consumed Per Second When Firing int Maximum: 1000
    • If 'Is Fuel' is checked, defines the units consumed per second whilst firing.
  • Consumed Per Second When Idle int Maximum: 1000
    • If 'Is Fuel' is checked, defines the units consumed per second when not firing, but switched on.

Accuracy

  • Use Fixed Accuracy bool
    • If checked, the 'Fixed Accuracy' value is used at all times for the accuracy of the shot, otherwise accuracy is accumulated over time aiming.
  • Fixed Accuracy float Minimum: 0 Maximum: 1
    • The fixed accuracy value for the shot if 'Use Fixed Accuracy' is checked.
  • NPC Accuracy Multiplier float Minimum: 0 Maximum: 1
    • Multiply accuracy calculations for an NPC.
  • Base Aiming Accuracy Radius float Minimum: 0 Maximum: 10
    • Defines the minimum and maximum base aiming accuracy radius before any penalties.

Damage Rays

  • Damage Rays Per Shot int Maximum: 16
    • The number of damage giving rays per shot.
  • Blocked By Characters bool
    • Do damage rays stop after hitting a character? For example, more powerful ammo may want to pass through enemies.

Damage Ranges

  • Minimum Damage Distance float Minimum: 0 Maximum: 100
    • Defines how far an enemy must be from the source of firing before it has an effect.

Damage Range Settings

Select a 'Damage Range' to modify its properties. The impact will be effective up to this range (and from the previous range if appropriate).

  • Range Distance (metres) float
    • The box beside the 'Damage Range' dropdown. It holds the selected range's distance in metres. Changing it rewrites that range's distance, and its entry in the dropdown is renamed to match.

Damage VS Character

  • NPC float Minimum: 0
    • Defines the damage done to any regular NPCs (not Aliens, Androids) at the given range.
  • Player float Minimum: 0
    • Defines the damage done to the player at the given range.
  • Android float Minimum: 0
    • Defines the damage done to Working Joes at the given range.
  • Android Heavy float Minimum: 0
    • Defines the damage done to Hazmat Joes at the given range.
  • Alien float Minimum: 0
    • Defines the damage done to the alien at the given range.
  • Facehugger float Minimum: 0
    • Defines the damage done to facehuggers at the given range.

Type

  • Damage Type 1 combobox
    • Damage type dealt by this ammo at the given range (one of a possible three types).
  • Damage Type 2 combobox
    • Damage type dealt by this ammo at the given range (one of a possible three types).
  • Damage Type 3 combobox
    • Damage type dealt by this ammo at the given range (one of a possible three types).

Durations

  • Stun Duration float Minimum: 0
    • Defines the duration for the applied stun to a hit character at the given range.
  • EMP Duration float Minimum: 0
    • Defines the duration for the applied EMP stun to a hit character at the given range.
  • Blind Duration float Minimum: 0
    • Defines the duration for the applied blind stun to a hit character at the given range.

Misc

  • Alien Stun float Minimum: 0
    • Defines the amount of stun damage to apply to the alien if hit.
  • Ragdoll float Minimum: 0
    • The impact force for ragdoll deaths. Set to zero to disable.
  • Physics Damage float Minimum: 0
    • Defines the damage done to physics objects at the given range.
  • Headshot float Minimum: 0 Maximum: 100
    • Defines the multiplier to any damage done if the character was hit in the head (excluding the alien).