Values for libdoom

From Doomsday Wiki
Jump to: navigation, search

In libdoom the following values can be edited in a Values definition:

Syntax

Values
{
  Player {
    Health = "0";
    Max health = "0";
    Health limit = "0";
    Weapon = "<weaponnumber>";

    Green armor = "0";
    Blue armor = "0";

    Max ammo {
      <ammoname> = "0";
    };

    Clip ammo {
      <ammoname> = "0";
    };

    Init ammo {
      <ammoname> = "0";
    };
  };

  AI {
    Infight = "0";
  };

  Weapon Info {
    <weaponnumber> {
      Type = "<ammoname>";
      Per shot = "0";
      Owned = "0";
      Static = "0";
      Up = "<stateid>";
      Down = "<stateid>";
      Ready = "<stateid>";
      Atk = "<stateid>";
      Flash = "<stateid>";
    };
  };
}

Player

There may be multiple Player blocks per Values definition, later definitions override earlier ones.

Health

Initial health. Default value is 100.

Max health

Maximum health. Default value is 100.

Health limit

Absolute health limit. Default value is 200.

Weapon

Weapon the player will be spawned holding (see reference table bellow).

Green armor

How many armor points a green armor gives when picked up. Default value is 100.

Blue armor

How many armor points a blue armor gives when picked up and also the maximum ammount of armor the player can have. Default value is 200.

Max ammo

Maximum amount of ammo that the player can carry. Remember that this will be doubled by a back pack pickup.

Clip ammo

Amount of ammo given in a clip. In DOOM, small ammo items give two clips, large ammo items give five clips, dropped weapons give one clip and found weapons give two clips.

Init ammo

Amount of ammo given when player is spawned

AI

There may be multiple AI blocks per Values definition, later definitions override earlier ones.

Infight

1 = Enable Mosnter in-fighting (ie Imps attacking Imps).

Weapon Info

There may be multiple Weapon Info blocks per Values definition, later definitions override earlier ones. A Weapon Info block begins with the number of the weapon that is to be configured (see reference table bellow).

Type

Type of ammo this weapon uses. Must be a valid ammo name (see reference table bellow).

Per shot

How many rounds per shot.

Owned

If this is "1" the player is given this weapon when spawned.

Static

Setting this to "1" will prevent the lowering/raising of the weapon when switching (e.g., if a weapon model has raise/lower animations). However the weapon will still take the same amount of time to switch as the raise/lower animation would take.

Up

state while raising.

Down

state while lowering.

Ready

state while ready/idle.

Atk

state when beginning an attack.

Flash

state when fully bright.

Reference Tables

Weapon Numbers

In DOOM the weapon numbering is as follows:

Number Weapon name
0 Fists
1 Pistol
2 Shotgun
3 Chaingun
4 Rocket Launcher
5 Plasma Rifle
6 BFG
7 Chainsaw
8 Super Shotgun

Ammo names

In DOOM the following ammo types are defined:

Ammo name
Noammo
Clip
Shell
Cell
Misl