codemp/ghoul2/G2.h File Reference

Go to the source code of this file.

Defines

#define G2_H_INC
#define BONE_ANGLES_PREMULT   0x0001
#define BONE_ANGLES_POSTMULT   0x0002
#define BONE_ANGLES_REPLACE   0x0004
#define BONE_NEED_TRANSFORM   0x8000
#define BONE_ANGLES_RAGDOLL   0x2000
#define BONE_ANGLES_IK   0x4000
#define BONE_ANGLES_TOTAL   ( BONE_ANGLES_PREMULT | BONE_ANGLES_POSTMULT | BONE_ANGLES_REPLACE )
#define BONE_ANIM_OVERRIDE   0x0008
#define BONE_ANIM_OVERRIDE_LOOP   0x0010
#define BONE_ANIM_OVERRIDE_FREEZE   ( 0x0040 + BONE_ANIM_OVERRIDE )
#define BONE_ANIM_BLEND   0x0080
#define BONE_ANIM_TOTAL   ( BONE_ANIM_OVERRIDE | BONE_ANIM_OVERRIDE_LOOP | BONE_ANIM_OVERRIDE_FREEZE | BONE_ANIM_BLEND)
#define ENTITY_WIDTH   12
#define MODEL_WIDTH   10
#define BOLT_WIDTH   10
#define MODEL_AND   ((1<<MODEL_WIDTH)-1)
#define BOLT_AND   ((1<<BOLT_WIDTH)-1)
#define ENTITY_AND   ((1<<ENTITY_WIDTH)-1)
#define BOLT_SHIFT   0
#define MODEL_SHIFT   (BOLT_SHIFT + BOLT_WIDTH)
#define ENTITY_SHIFT   (MODEL_SHIFT + MODEL_WIDTH)


Define Documentation

#define BOLT_AND   ((1<<BOLT_WIDTH)-1)
 

Definition at line 35 of file G2.h.

Referenced by G2_BoltToGhoul2Model().

#define BOLT_SHIFT   0
 

Definition at line 38 of file G2.h.

Referenced by G2_BoltToGhoul2Model().

#define BOLT_WIDTH   10
 

Definition at line 32 of file G2.h.

#define BONE_ANGLES_IK   0x4000
 

Definition at line 19 of file G2.h.

#define BONE_ANGLES_POSTMULT   0x0002
 

Definition at line 9 of file G2.h.

Referenced by BG_G2ATSTAngles(), BG_G2PlayerAngles(), BG_IK_MoveArm(), CG_G2ServerBoneAngles(), CG_RagDoll(), EWeb_SetBoneAngles(), G2Tur_SetBoneAngles(), NPC_SetBoneAngles(), SetupGameGhoul2Model(), and TurretClientRun().

#define BONE_ANGLES_PREMULT   0x0001
 

Definition at line 8 of file G2.h.

#define BONE_ANGLES_RAGDOLL   0x2000
 

Definition at line 17 of file G2.h.

#define BONE_ANGLES_REPLACE   0x0004
 

Definition at line 10 of file G2.h.

Referenced by TurretClientRun().

#define BONE_ANGLES_TOTAL   ( BONE_ANGLES_PREMULT | BONE_ANGLES_POSTMULT | BONE_ANGLES_REPLACE )
 

Definition at line 21 of file G2.h.

#define BONE_ANIM_BLEND   0x0080
 

Definition at line 25 of file G2.h.

Referenced by CG_EntityEvent(), EWeb_SetBoneAnim(), G_UpdateClientAnims(), and TurboLaser_SetBoneAnim().

#define BONE_ANIM_OVERRIDE   0x0008
 

Definition at line 22 of file G2.h.

#define BONE_ANIM_OVERRIDE_FREEZE   ( 0x0040 + BONE_ANIM_OVERRIDE )
 

Definition at line 24 of file G2.h.

Referenced by CG_EntityEvent(), CG_NewClientInfo(), CG_Player(), EWeb_SetBoneAnim(), G_UpdateClientAnims(), ItemParse_asset_model_go(), TurboLaser_SetBoneAnim(), and TurretClientRun().

#define BONE_ANIM_OVERRIDE_LOOP   0x0010
 

Definition at line 23 of file G2.h.

Referenced by CG_NewClientInfo(), CG_RagDoll(), G_UpdateClientAnims(), ItemParse_asset_model_go(), SetupGameGhoul2Model(), and SP_misc_G2model().

#define BONE_ANIM_TOTAL   ( BONE_ANIM_OVERRIDE | BONE_ANIM_OVERRIDE_LOOP | BONE_ANIM_OVERRIDE_FREEZE | BONE_ANIM_BLEND)
 

Definition at line 26 of file G2.h.

#define BONE_NEED_TRANSFORM   0x8000
 

Definition at line 14 of file G2.h.

#define ENTITY_AND   ((1<<ENTITY_WIDTH)-1)
 

Definition at line 36 of file G2.h.

Referenced by G2_BoltToGhoul2Model().

#define ENTITY_SHIFT   (MODEL_SHIFT + MODEL_WIDTH)
 

Definition at line 40 of file G2.h.

Referenced by G2_BoltToGhoul2Model().

#define ENTITY_WIDTH   12
 

Definition at line 30 of file G2.h.

#define G2_H_INC
 

Definition at line 5 of file G2.h.

#define MODEL_AND   ((1<<MODEL_WIDTH)-1)
 

Definition at line 34 of file G2.h.

Referenced by G2_BoltToGhoul2Model().

#define MODEL_SHIFT   (BOLT_SHIFT + BOLT_WIDTH)
 

Definition at line 39 of file G2.h.

Referenced by G2_BoltToGhoul2Model().

#define MODEL_WIDTH   10
 

Definition at line 31 of file G2.h.