Skip to content
Dan Gerendasy edited this page Feb 9, 2017 · 4 revisions

Contents


What

A global file is used to define global variables for props/sounds/materials.

There are three global files in Ty 1.

File Description
global.model All prop definitions
global.sound All sounds definitions
global.mad All material definitions

File Contents

A global file contains a hierarchical list of key value pairs. Typically, a root entry begins with the key name. Anything under it until another root entry is defined is a child property. Child properties can have their own child properties.

name Ty

SoundEvent = TyJump
  Range = 5000
  Material = ID_NONE
    Sound = sfx_0101_tyjump

SoundEvent = TyKnockDown
  Range = 5000
  Material = ID_NONE
    Sound = sfx_0157_tyknockdown

...

name Critter

SoundEvent = CriterSplashSmall
  Range = 1424
  Material = ID_NONE
    MinPitch = 1.05
    MaxPitch = 1.23
    Sound = sfx_0149_tystep_water

In the above, two root entries are defined. The first, Ty, has two child properties. Both child properties define a SoundEvent property. Then each SoundEvent has a Range and Material property defined.

The next root entry also defines a SoundEvent property with its own child properties.

That's the general format of a global file. It varies slightly between the three.

Clone this wiki locally