DestructibleDef Asset: Difference between revisions
Aerosoul94 (talk | contribs) No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
#define MELEEDAMAGE 8 | #define MELEEDAMAGE 8 | ||
struct | struct DestructibleStage | ||
{ | { | ||
#ifndef WAW | #ifndef WAW | ||
ScriptString showBone; | |||
#else | #else | ||
XModel *model; | XModel *model; | ||
#endif | #endif | ||
float breakHealth; | |||
#ifndef WAW | #ifndef WAW | ||
float maxTime; | |||
#endif | #endif | ||
unsigned int flags; | |||
FxEffectDef *breakEffect; | |||
const char *breakSound; | |||
const char *breakNotify; | |||
const char *loopSound; | |||
XModel *spawnModel[3]; | |||
#ifndef WAW | #ifndef WAW | ||
PhysPreset *physPreset; | |||
#endif | #endif | ||
}; | }; | ||
| Line 34: | Line 34: | ||
struct DestructiblePiece | struct DestructiblePiece | ||
{ | { | ||
DestructibleStage stages[5]; | |||
#ifndef WAW | #ifndef WAW | ||
char parentPiece; | |||
#else | #else | ||
short pieceAttachBone; | short pieceAttachBone; | ||
short parentPiece; | short parentPiece; | ||
#endif | #endif | ||
float parentDamagePercent; | |||
float bulletDamageScale; | |||
float explosiveDamageScale; | |||
#ifndef WAW | #ifndef WAW | ||
float meleeDamageScale; | float meleeDamageScale; | ||
float impactDamageScale; | float impactDamageScale; | ||
#endif | #endif | ||
float entityDamageTransfer; | |||
PhysConstraints *physConstraints; | |||
int health; | |||
const char *damageSound; | |||
FxEffectDef *burnEffect; | |||
const char * burnSound; | |||
ScriptString enableLabel; | |||
#ifndef WAW | #ifndef WAW | ||
int hideBones[5]; | |||
#endif | #endif | ||
}; | }; | ||
| Line 62: | Line 62: | ||
struct DestructibleDef | struct DestructibleDef | ||
{ | { | ||
const char *name; | |||
#ifndef WAW | #ifndef WAW | ||
XModel *model; | XModel *model; | ||
#endif | #endif | ||
XModel *pristineModel; | |||
unsigned int numPieces; | |||
DestructiblePiece *pieces; | |||
int clientOnly; | |||
}; | }; | ||
</source> | </source> | ||
Latest revision as of 01:47, 21 December 2014
/* DestructiblePieceDef->flags */
#define EXPLOSIVEDAMAGEONLY 1
#define PARENTDAMAGE 2
#define PHYSICSPARENT 4
#define MELEEDAMAGE 8
struct DestructibleStage
{
#ifndef WAW
ScriptString showBone;
#else
XModel *model;
#endif
float breakHealth;
#ifndef WAW
float maxTime;
#endif
unsigned int flags;
FxEffectDef *breakEffect;
const char *breakSound;
const char *breakNotify;
const char *loopSound;
XModel *spawnModel[3];
#ifndef WAW
PhysPreset *physPreset;
#endif
};
struct DestructiblePiece
{
DestructibleStage stages[5];
#ifndef WAW
char parentPiece;
#else
short pieceAttachBone;
short parentPiece;
#endif
float parentDamagePercent;
float bulletDamageScale;
float explosiveDamageScale;
#ifndef WAW
float meleeDamageScale;
float impactDamageScale;
#endif
float entityDamageTransfer;
PhysConstraints *physConstraints;
int health;
const char *damageSound;
FxEffectDef *burnEffect;
const char * burnSound;
ScriptString enableLabel;
#ifndef WAW
int hideBones[5];
#endif
};
struct DestructibleDef
{
const char *name;
#ifndef WAW
XModel *model;
#endif
XModel *pristineModel;
unsigned int numPieces;
DestructiblePiece *pieces;
int clientOnly;
};