Skip to content
sbobovyc edited this page Oct 31, 2014 · 2 revisions

VTP file has entries for effects. For example, looking at weapons.txt entry for the P90, the ShotEffectId is 5596. Dumping main.vtp using vtp_magick, the shot effect entry for the P90 looks like this:

- !!python/object:vtp_file.VTP_item
  constant_list: []
  id: 5596
  id_name: shot_fnp90
  unknown1: null
  unknown2: null
  unknown_const: 256
  variable_list:
  - !!python/object:vtp_file.VTP_variable
    name: default
    path_list: [effects/shot_single_fnp90.fxt]
    unknown: 2
  - !!python/object:vtp_file.VTP_variable
    name: burst
    path_list: [effects/shot_burst_fn_p90.fxt]
    unknown: 2

The two files, shot_single_fnp90.fxt and shot_burst_fn_p90.fxt are binary files. Looking at their dumps, it looks like the string for the sound file and some shader code is there.

struct FXT {
    ubyte magic; // 0x08
    ubyte unknown[20];
    uint32 effect_name_length;
    char name[];
    char metp; // "metp"
    ...
}