Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 48 additions & 47 deletions Test_Building/model.cfg
Original file line number Diff line number Diff line change
@@ -1,71 +1,72 @@
class CfgSkeletons
class CfgSkeletons // Defines the available skeletons for the model
{
class Default
class Default // Default skeleton
{
isDiscrete = 1;
skeletonInherit = "";
skeletonBones[] = {};
isDiscrete = 1; // Skeleton type. 1 for discrete, 0 for continuous
skeletonInherit = ""; // Skeleton to inherit from
skeletonBones[] = {}; // Array of skeleton bones
};
class Skeleton_3doors: Default
class Skeleton_3doors: Default // A custom skeleton named Skeleton_3doors which inherits from Default
{
skeletonInherit = "Default";
skeletonBones[] =
skeletonInherit = "Default"; // Inherits from Default skeleton
skeletonBones[] = // Array of skeleton bones
{
"door1","",
"door2","",
"door3",""
};
};
};
class CfgModels

class CfgModels // Defines the available models
{
class Default
class Default // Default model
{
sectionsInherit = "";
sections[] = {};
skeletonName = "";
sectionsInherit = ""; // Sections to inherit from
sections[] = {}; // Array of sections
skeletonName = ""; // Skeleton to use
};
class sample_building: Default
class sample_building: Default // A custom model named sample_building which inherits from Default
{
skeletonName = "Skeleton_3doors";
class Animations
skeletonName = "Skeleton_3doors"; // The custom skeleton to use
class Animations // Defines the available animations for the model
{
class Door1
class Door1 // The first animation
{
type = "rotation";
selection = "door1";
source = "doorsTwin1";
axis = "door1_axis";
memory = 1;
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = 1.4;
type = "rotation"; // Animation type
selection = "door1"; // Selection to animate
source = "doorsTwin1"; // Source of the animation
axis = "door1_axis"; // Axis of rotation
memory = 1; // Memory slot
minValue = 0; // Minimum value for the animation
maxValue = 1; // Maximum value for the animation
angle0 = 0; // Initial angle of rotation
angle1 = 1.4; // Final angle of rotation
};
class Door2
class Door2 // The second animation
{
type = "rotation";
selection = "door2";
source = "doorsTwin1";
axis = "door2_axis";
memory = 1;
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = -1.4;
type = "rotation"; // Animation type
selection = "door2"; // Selection to animate
source = "doorsTwin1"; // Source of the animation
axis = "door2_axis"; // Axis of rotation
memory = 1; // Memory slot
minValue = 0; // Minimum value for the animation
maxValue = 1; // Maximum value for the animation
angle0 = 0; // Initial angle of rotation
angle1 = -1.4; // Final angle of rotation
};
class Door3
class Door3 // The third animation
{
type = "rotation";
selection = "door3";
source = "door3";
axis = "door3_axis";
memory = 1;
minValue = 0;
maxValue = 1;
angle0 = 0;
angle1 = 1.4;
type = "rotation"; // Animation type
selection = "door3"; // Selection to animate
source = "door3"; // Source of the animation
axis = "door3_axis"; // Axis of rotation
memory = 1; // Memory slot
minValue = 0; // Minimum value for the animation
maxValue = 1; // Maximum value for the animation
angle0 = 0; // Initial angle of rotation
angle1 = 1.4; // Final angle of rotation
};
};
};
};
};