All source-code must and will be in C++ or C, and must be either commented or simple enough to understand it's purpose or happenings.
Definitions:
Code: Select all
//AI Constants, used in AIType property of Instances
#define AI_NONE 0
#define AI_PLAYER 1
#define AI_MEAT 2
#define AI_FOLIAGE 3
#define AI_WATER 4
#define AI_ANIMAL 5
#define AI_HUMAN 6
//ArchType Constants, used in ArchType property of CAnimal
#define ARCH_CARNIVORE 0
#define ARCH_HERBIVORE 1
#define ARCH_OMNIVORE 2
#define ARCH_CARN_DOCILE 3
#define ARCH_HERB_MEAN 4
//ActionType Constants, used in the ActionType property of CTrigger and it's siblings
/* Space is reserved... */
Code: Select all
class CInstance
{
public:
float x,y,z; //3D Space co-ordinates
float xr,yr,zr; //Rotation angles in radians
float scale; //Scale of mesh
//Properties of the instance
BOOL Tangible;
BOOL Moveable;
BOOL Visible;
BOOL AI;
BOOL Planted;
BOOL AlwaysFace;
BOOL Bumpmaps;
BOOL Curved;
BOOL MipMap;
BOOL Reflect;
BOOL Refract;
BOOL Shadow;
BOOL Unlit;
BOOL Floats;
BOOL Frozen;
long AIType;
long AlphaChannel;
long Normals;
float AIMass;
float Damage;
float Height;
float Armour;
float Bumpiness;
float Diffuse;
float Emissive;
float RefractIndex;
float Specular;
float SpecularAngle;
float Density;
float Elasticity;
float Friction;
float Mass;
string Mesh;
string Physics;
string SoundMaterial;
string Type;
string Model00,
Model01,
Model02,
Model03,
Model04,
Model05,
Model06,
Model07,
Model08,
Model09;
};