PROJ Record – Projectile

PROJ record type.

Classes:

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

Projectile.

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

Bases: Record

Projectile.

Parameters
  • flags (int)

  • id (bytes)

  • revision (int) – Default 0.

  • version (int) – Default 15.

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

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

Classes:

DATA(flags, type, gravity, speed, range, ...)

Data.

FULL([cstring])

Name.

NAM1([cstring])

Muzzle Flash Model Filename.

VNAM(*args, **kwargs)

Sound Level.

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 DATA(flags, type, gravity, speed, range, light, muzzle_flash_light, tracer_chance, explosion_alt_trigger_proximity, explosion_alt_trigger_timer, explosion, sound, muzzle_flash_duration, fade_duration, impact_force, sound_countdown, sound_disable, default_weapon_source, x_rotation, y_rotation, z_rotation, bouncy_multiplier)[source]

Bases: StructRecord

Data.

Parameters
  • flags (int)

  • type (int)

  • gravity (float)

  • speed (float)

  • range (float)

  • light (bytes) – Form ID of a LIGH record, or null.

  • muzzle_flash_light (bytes) – Form ID of a LIGH record, or null.

  • tracer_chance (float)

  • explosion_alt_trigger_proximity (float)

  • explosion_alt_trigger_timer (float)

  • explosion (bytes) – Form ID of an EXPL record, or null.

  • sound (bytes) – Form ID of a SOUN record, or null.

  • muzzle_flash_duration (float)

  • fade_duration (float)

  • impact_force (float)

  • sound_countdown (bytes) – Form ID of a SOUN record, or null.

  • sound_disable (bytes) – Form ID of a SOUN record, or null.

  • default_weapon_source (bytes) – Form ID of a WEAP record, or null.

  • x_rotation (float)

  • y_rotation (float)

  • z_rotation (float)

  • bouncy_multiplier (float)

Attributes:

bouncy_multiplier

default_weapon_source

Form ID of a WEAP record, or null.

explosion

Form ID of an EXPL record, or null.

explosion_alt_trigger_proximity

explosion_alt_trigger_timer

fade_duration

flags

gravity

impact_force

light

Form ID of a LIGH record, or null.

muzzle_flash_duration

muzzle_flash_light

Form ID of a LIGH record, or null.

range

sound

Form ID of a SOUN record, or null.

sound_countdown

Form ID of a SOUN record, or null.

sound_disable

Form ID of a SOUN record, or null.

speed

tracer_chance

type

x_rotation

y_rotation

z_rotation

Methods:

get_field_names()

Returns a list of attributes on this class in the order they should be packed.

get_struct_and_size()

Returns the pack/unpack struct string and the corresponding size.

bouncy_multiplier

Type:    float

default_weapon_source

Type:    bytes

Form ID of a WEAP record, or null.

explosion

Type:    bytes

Form ID of an EXPL record, or null.

explosion_alt_trigger_proximity

Type:    float

explosion_alt_trigger_timer

Type:    float

fade_duration

Type:    float

flags

Type:    int

static get_field_names()[source]

Returns a list of attributes on this class in the order they should be packed.

Return type

Tuple[str, …]

static get_struct_and_size()[source]

Returns the pack/unpack struct string and the corresponding size.

Return type

Tuple[str, int]

gravity

Type:    float

impact_force

Type:    float

light

Type:    bytes

Form ID of a LIGH record, or null.

muzzle_flash_duration

Type:    float

muzzle_flash_light

Type:    bytes

Form ID of a LIGH record, or null.

range

Type:    float

sound

Type:    bytes

Form ID of a SOUN record, or null.

sound_countdown

Type:    bytes

Form ID of a SOUN record, or null.

sound_disable

Type:    bytes

Form ID of a SOUN record, or null.

speed

Type:    float

tracer_chance

Type:    float

type

Type:    int

x_rotation

Type:    float

y_rotation

Type:    float

z_rotation

Type:    float

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

Bases: CStringRecord

Name.

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

Bases: CStringRecord

Muzzle Flash Model Filename.

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

Bases: Uint32Record

Sound Level.

Enum - see link for values.

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

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