WEAP Record – Weapon

WEAP record type.

Classes:

WEAP(flags, id[, revision, version, ...])

Weapon.

class WEAP(flags, id, revision=0, version=15, unknown=b'\x00\x00', data=[])[source]

Bases: Record

Weapon.

Parameters
  • flags (int)

  • id (bytes)

  • revision (int) – Default 0.

  • version (int) – Default 15.

  • unknown (bytes) – Default b'\x00\x00'.

  • data (List[RecordType]) – Default [].

Classes:

BIPL([cstring])

Biped Model List.

CRDT(critical_damage, unused, ...)

Critical Data.

DATA(value, health, weight, base_damage, ...)

Weapon value, health (conditon), weight etc.

DNAM(animation_type, animation_multiplier, ...)

Weapon animation, projectile, mod data etc.

EAMT(*args, **kwargs)

Enchantment Charge Amount.

EFSD([cstring])

Scope Effect.

EITM([cstring])

Object Effect.

ETYP(*args, **kwargs)

Equipment Type.

FULL([cstring])

Name.

ICON([cstring])

Large icon filename.

INAM([cstring])

Impact Dataset.

MICO([cstring])

Small icon filename.

MWD1([cstring])

Model With Mod 1 (New Vegas only).

MWD2([cstring])

Model With Mod 2 (New Vegas only).

MWD3([cstring])

Model With Mods 1 and 2 (New Vegas only).

MWD4([cstring])

Model With Mod 3 (New Vegas only).

MWD5([cstring])

Model With Mods 1 and 3 (New Vegas only).

MWD6([cstring])

Model With Mods 2 and 3 (New Vegas only).

MWD7([cstring])

Model With Mods 1, 2 and 3 (New Vegas only).

NAM0([cstring])

Ammo.

NAM6([cstring])

Sound - Block.

NAM7([cstring])

Sound - Gun - Shoot 3D Looping.

NAM8([cstring])

Sound - Unequip.

NAM9([cstring])

Sound - Equip.

NNAM([cstring])

Embedded Weapon Node.

REPL([cstring])

Repair List.

SCRI([cstring])

Script.

SNAM([cstring])

Sound - Gun - Shoot 3D / Shoot Dist.

TNAM([cstring])

Sound - Melee - Swing / Gun - No Ammo.

UNAM([cstring])

Sound - Idle.

VANM([cstring])

VATS Attack Name (New Vegas only).

VATS(effect, skill, damage_multiplier, ap, ...)

VATS (New Vegas only).

VNAM(*args, **kwargs)

Sound Level.

WMI1([cstring])

Weapon Mod 1 (New Vegas only).

WMI2([cstring])

Weapon Mod 2 (New Vegas only).

WMI3([cstring])

Weapon Mod 3 (New Vegas only).

WMS1([cstring])

Sound - Mod 1 - Shoot 3D / Dist (New Vegas only).

WMS2([cstring])

Sound - Mod 1 - Shoot 2D (New Vegas only).

WNAM([cstring])

First Person Model.

WNM1([cstring])

1st Person Model With Mod 1 (New Vegas only).

WNM2([cstring])

1st Person Model With Mod 2 (New Vegas only).

WNM3([cstring])

1st Person Model With Mods 1 and 2 (New Vegas only).

WNM4([cstring])

1st Person Model With Mod 3 (New Vegas only).

WNM5([cstring])

1st Person Model With Mods 1 and 3 (New Vegas only).

WNM6([cstring])

1st Person Model With Mods 2 and 3 (New Vegas only).

WNM7([cstring])

1st Person Model With Mods 1, 2 and 3 (New Vegas only).

XNAM([cstring])

Sound - Gun - Shoot 2D.

YNAM([cstring])

Sound - Pick Up.

ZNAM([cstring])

Sound - Drop.

Attributes:

data

Subrecords of this record.

flags

Record flags

id

4-byte form ID

revision

Used for revision control by the Creation Kit, if enabled.

unknown

version

Form version

Methods:

parse_subrecords(raw_bytes)

Parse this record's subrecords.

class BIPL(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Biped Model List.

Form ID of a FLST record.

class CRDT(critical_damage, unused, ctit_percent_mul, flags, unused_, effect)[source]

Bases: RecordType

Critical Data.

Parameters
  • critical_damage (int)

  • unused (bytes)

  • ctit_percent_mul (float)

  • flags (int)

  • unused

  • effect (bytes) – Form ID of a SPEL, or null.

Attributes:

critical_damage

ctit_percent_mul

effect

Form ID of a SPEL record, or null.s

flags

unused

unused_

Methods:

parse(raw_bytes)

Parse this subrecord.

unparse()

Turn this subrecord back into raw bytes for an ESP file.

critical_damage

Type:    int

ctit_percent_mul

Type:    float

effect

Type:    bytes

Form ID of a SPEL record, or null.s

flags

Type:    int

classmethod parse(raw_bytes)[source]

Parse this subrecord.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record

Return type

Self

unparse()[source]

Turn this subrecord back into raw bytes for an ESP file.

Return type

bytes

unused

Type:    bytes

unused_

Type:    bytes

namedtuple DATA(value, health, weight, base_damage, clip_size)[source]

Bases: NamedTuple

Weapon value, health (conditon), weight etc.

Fields
  1.  value (int) – Alias for field number 0

  2.  health (int) – Alias for field number 1

  3.  weight (float) – Alias for field number 2

  4.  base_damage (int) – Alias for field number 3

  5.  clip_size (int) – Alias for field number 4

classmethod parse(raw_bytes)[source]

Parse this subrecord.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record

Return type

Self

unparse()[source]

Turn this subrecord back into raw bytes for an ESP file.

Return type

bytes

class DNAM(animation_type, animation_multiplier, reach, flags, grip_animation, ammo_use, reload_animation, min_spread, spread, unknown, sight_fov, unused, projectile, base_vats_hit_chance, attack_animation, projectile_count, embedded_weapon_actor_value, min_range, max_range, on_hit, flags_, animation_attack_multiplier, fire_rate, override_action_points, rumble_left_motor_strength, rumble_right_motor_strength, rumble_duration, override_damage_to_weapon_mult, attack_shots_per_sec, reload_time, jam_time, aim_arc, skill, rumble_pattern, rumble_wavelength, limb_damage_multiplier, resistance_type, sight_usage, semi_automatic_fire_delay_min, semi_automatic_fire_delay_max, unknown__=0, effect_mod_1=0, effect_mod_2=0, effect_mod_3=0, value_a_mod_1=0, value_a_mod_2=0, value_a_mod_3=0, power_attack_animation_override=0, strength_requirement=0, unknown___=b'', reload_animation_mod=0, unknown____=b'', regen_rate=0, kill_impulse=0, value_b_mod_1=0, value_b_mod_2=0, value_b_mod_3=0, impulse_dist=0, skill_requirement=0, new_vegas=False)[source]

Bases: RecordType

Weapon animation, projectile, mod data etc.

Parameters
  • animation_type (int)

  • animation_multiplier (float)

  • reach (float)

  • flags (int)

  • grip_animation (int)

  • ammo_use (int)

  • reload_animation (int)

  • min_spread (float)

  • spread (float)

  • unknown (bytes)

  • sight_fov (float)

  • unused (bytes)

  • projectile (bytes) – 4-byte form id of a PROJ record, or null.

  • base_vats_hit_chance (int)

  • attack_animation (int)

  • projectile_count (int)

  • embedded_weapon_actor_value (int)

  • min_range (float)

  • max_range (float)

  • on_hit (int)

  • flags

  • animation_attack_multiplier (float)

  • fire_rate (float)

  • override_action_points (float)

  • rumble_left_motor_strength (float)

  • rumble_right_motor_strength (float)

  • rumble_duration (float)

  • override_damage_to_weapon_mult (float)

  • attack_shots_per_sec (float)

  • reload_time (float)

  • jam_time (float)

  • aim_arc (float)

  • skill (int)

  • rumble_pattern (int)

  • rumble_wavelength (float)

  • limb_damage_multiplier (float)

  • resistance_type (int)

  • sight_usage (float)

  • semi_automatic_fire_delay_min (float)

  • semi_automatic_fire_delay_max (float)

  • unknown

  • effect_mod_1 (int) – Default 0.

  • effect_mod_2 (int) – Default 0.

  • effect_mod_3 (int) – Default 0.

  • value_a_mod_1 (float) – Default 0.

  • value_a_mod_2 (float) – Default 0.

  • value_a_mod_3 (float) – Default 0.

  • power_attack_animation_override (int) – Default 0.

  • strength_requirement (int) – Default 0.

  • unknown___

  • reload_animation_mod (int) – Default 0.

  • unknown____

  • regen_rate (float) – Default 0.

  • kill_impulse (float) – Default 0.

  • value_b_mod_1 (float) – Default 0.

  • value_b_mod_2 (float) – Default 0.

  • value_b_mod_3 (float) – Default 0.

  • impulse_dist (float) – Default 0.

  • skill_requirement (int) – Default 0.

  • new_vegas (bool) – Indicates that the New Vegas-specific fields should be included with unparse(). Default False.

Attributes:

aim_arc

ammo_use

animation_attack_multiplier

animation_multiplier

animation_type

attack_animation

attack_shots_per_sec

base_vats_hit_chance

effect_mod_1

effect_mod_2

effect_mod_3

embedded_weapon_actor_value

fire_rate

flags

flags_

grip_animation

impulse_dist

jam_time

kill_impulse

limb_damage_multiplier

max_range

min_range

min_spread

new_vegas

Indicates that the New Vegas-specific fields should be included with unparse().

on_hit

override_action_points

override_damage_to_weapon_mult

power_attack_animation_override

projectile

4-byte form id of a PROJ record, or null.

projectile_count

reach

regen_rate

reload_animation

reload_animation_mod

reload_time

resistance_type

rumble_duration

rumble_left_motor_strength

rumble_pattern

rumble_right_motor_strength

rumble_wavelength

semi_automatic_fire_delay_max

semi_automatic_fire_delay_min

sight_fov

sight_usage

skill

skill_requirement

spread

strength_requirement

unknown

unknown__

unknown___

unknown____

unused

value_a_mod_1

value_a_mod_2

value_a_mod_3

value_b_mod_1

value_b_mod_2

value_b_mod_3

Methods:

parse(raw_bytes)

Parse this subrecord.

unparse()

Turn this subrecord back into raw bytes for an ESP file.

aim_arc

Type:    float

ammo_use

Type:    int

animation_attack_multiplier

Type:    float

animation_multiplier

Type:    float

animation_type

Type:    int

attack_animation

Type:    int

attack_shots_per_sec

Type:    float

base_vats_hit_chance

Type:    int

effect_mod_1

Type:    int

effect_mod_2

Type:    int

effect_mod_3

Type:    int

embedded_weapon_actor_value

Type:    int

fire_rate

Type:    float

flags

Type:    int

flags_

Type:    int

grip_animation

Type:    int

impulse_dist

Type:    float

jam_time

Type:    float

kill_impulse

Type:    float

limb_damage_multiplier

Type:    float

max_range

Type:    float

min_range

Type:    float

min_spread

Type:    float

new_vegas

Type:    bool

Indicates that the New Vegas-specific fields should be included with unparse().

on_hit

Type:    int

override_action_points

Type:    float

override_damage_to_weapon_mult

Type:    float

classmethod parse(raw_bytes)[source]

Parse this subrecord.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record

Return type

Self

power_attack_animation_override

Type:    int

projectile

Type:    bytes

4-byte form id of a PROJ record, or null.

projectile_count

Type:    int

reach

Type:    float

regen_rate

Type:    float

reload_animation

Type:    int

reload_animation_mod

Type:    int

reload_time

Type:    float

resistance_type

Type:    int

rumble_duration

Type:    float

rumble_left_motor_strength

Type:    float

rumble_pattern

Type:    int

rumble_right_motor_strength

Type:    float

rumble_wavelength

Type:    float

semi_automatic_fire_delay_max

Type:    float

semi_automatic_fire_delay_min

Type:    float

sight_fov

Type:    float

sight_usage

Type:    float

skill

Type:    int

skill_requirement

Type:    int

spread

Type:    float

strength_requirement

Type:    int

unknown

Type:    bytes

unknown__

Type:    float

unknown___

Type:    bytes

unknown____

Type:    bytes

unparse()[source]

Turn this subrecord back into raw bytes for an ESP file.

Return type

bytes

unused

Type:    bytes

value_a_mod_1

Type:    float

value_a_mod_2

Type:    float

value_a_mod_3

Type:    float

value_b_mod_1

Type:    float

value_b_mod_2

Type:    float

value_b_mod_3

Type:    float

class EAMT(*args, **kwargs)[source]

Bases: Int16Record

Enchantment Charge Amount.

class EFSD(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Scope Effect.

Form ID of an EFSH record.

class EITM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Object Effect.

Form ID of an ENCH or SPEL record.

class ETYP(*args, **kwargs)[source]

Bases: Int32Record

Equipment Type.

See https://tes5edit.github.io/fopdoc/FalloutNV/Records/Subrecords/ETYP.html

class FULL(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Name.

class ICON(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Large icon filename.

class INAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Impact Dataset.

Form ID of a IPDS record.

class MICO(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Small icon filename.

class MWD1(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Model With Mod 1 (New Vegas only).

class MWD2(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Model With Mod 2 (New Vegas only).

class MWD3(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Model With Mods 1 and 2 (New Vegas only).

class MWD4(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Model With Mod 3 (New Vegas only).

class MWD5(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Model With Mods 1 and 3 (New Vegas only).

class MWD6(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Model With Mods 2 and 3 (New Vegas only).

class MWD7(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Model With Mods 1, 2 and 3 (New Vegas only).

class NAM0(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Ammo.

Form ID of an AMMO or FLST record.

class NAM6(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Block.

Form ID of a SOUN record.

class NAM7(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Gun - Shoot 3D Looping.

Form ID of a SOUN record.

class NAM8(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Unequip.

Form ID of a SOUN record.

class NAM9(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Equip.

Form ID of a SOUN record.

class NNAM(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Embedded Weapon Node.

class REPL(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Repair List.

Form ID of a FLST record.

class SCRI(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Script.

Form ID of a SCPT record.

class SNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Gun - Shoot 3D / Shoot Dist.

Form ID of a SOUN record.

class TNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Melee - Swing / Gun - No Ammo.

Form ID of a SOUN record.

class UNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Idle.

Form ID of a SOUN record.

class VANM(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

VATS Attack Name (New Vegas only).

class VATS(effect, skill, damage_multiplier, ap, silent, mod_required, unused)[source]

Bases: RecordType

VATS (New Vegas only).

Parameters

Attributes:

ap

damage_multiplier

effect

Form ID of a SPEL, or null.

mod_required

silent

skill

unused

Methods:

parse(raw_bytes)

Parse this subrecord.

unparse()

Turn this subrecord back into raw bytes for an ESP file.

ap

Type:    float

damage_multiplier

Type:    float

effect

Type:    bytes

Form ID of a SPEL, or null.

mod_required

Type:    int

classmethod parse(raw_bytes)[source]

Parse this subrecord.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record

Return type

Self

silent

Type:    int

skill

Type:    float

unparse()[source]

Turn this subrecord back into raw bytes for an ESP file.

Return type

bytes

unused

Type:    bytes

class VNAM(*args, **kwargs)[source]

Bases: Uint32Record

Sound Level.

See https://tes5edit.github.io/fopdoc/FalloutNV/Records/Values/Sound%20Levels.html

class WMI1(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Weapon Mod 1 (New Vegas only).

Form ID of an IMOD record.

class WMI2(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Weapon Mod 2 (New Vegas only).

Form ID of an IMOD record.

class WMI3(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Weapon Mod 3 (New Vegas only).

Form ID of an IMOD record.

class WMS1(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Mod 1 - Shoot 3D / Dist (New Vegas only).

Form ID of a SOUN record.

class WMS2(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Mod 1 - Shoot 2D (New Vegas only).

Form ID of a SOUN record.

class WNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

First Person Model.

Form ID of a STAT record.

class WNM1(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

1st Person Model With Mod 1 (New Vegas only).

Form ID of a STAT record.

class WNM2(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

1st Person Model With Mod 2 (New Vegas only).

Form ID of a STAT record.

class WNM3(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

1st Person Model With Mods 1 and 2 (New Vegas only).

Form ID of a STAT record.

class WNM4(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

1st Person Model With Mod 3 (New Vegas only).

Form ID of a STAT record.

class WNM5(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

1st Person Model With Mods 1 and 3 (New Vegas only).

Form ID of a STAT record.

class WNM6(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

1st Person Model With Mods 2 and 3 (New Vegas only).

Form ID of a STAT record.

class WNM7(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

1st Person Model With Mods 1, 2 and 3 (New Vegas only).

Form ID of a STAT record.

class XNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Gun - Shoot 2D.

Form ID of a SOUN record.

class YNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Pick Up.

Form ID of a SOUN record.

class ZNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound - Drop.

Form ID of a SOUN record.

data

Type:    List[RecordType]

flags

Type:    int

id

Type:    bytes

classmethod parse_subrecords(raw_bytes)[source]

Parse this record’s subrecords.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record’s subrecords

Return type

Iterator[RecordType]

revision

Type:    int

unknown

Type:    bytes

version

Type:    int