jkxr/Projects/Android/jni/OpenJK/codeJK2/game/boltons.h
Simon 4597b03873 Initial Commit
Opens in Android Studio but haven't even tried to build it yet (it won't.. I know that much!)
2022-09-18 16:37:21 +01:00

30 lines
1.3 KiB
C

#ifndef __BOLTONS_H__
#define __BOLTONS_H__
#define MAX_GAME_BOLTONS 64
typedef struct boltOn_s
{//a tagged object
char name[32]; //If there is a name, it is considered active (look up in boltOns.cfg)
modelInfo_t model;
targetModel_t targetModel;// name of object to attach to
char targetTag[20];// name of tag on target object to attach to
vec3_t angleOffsets;// angle offsets to apply when attaching to target object's tag
vec3_t originOffsets;// angle offsets to apply when attaching to target object's tag
} boltOn_t;
extern boltOn_t knownBoltOns[MAX_GAME_BOLTONS];
extern int numBoltOns;
extern void G_RegisterBoltOns(void);
//extern byte G_AddBoltOn( gentity_t *ent, const char *boltOnName );
//extern void G_RemoveBoltOn( gentity_t *ent, const char *boltOnName );
//extern void Q3_SetActiveBoltOn( int entID, const char *boltOnName );
//extern void Q3_SetActiveBoltOnStartFrame( int entID, int startFrame );
//extern void Q3_SetActiveBoltOnEndFrame( int entID, int endFrame );
//extern void Q3_SetActiveBoltOnAnimLoop( int entID, qboolean loopAnim );
extern void G_DropBoltOn( gentity_t *ent, const char *boltOnName );
extern byte G_BoltOnNumberForName( gentity_t *ent, const char *boltOnName );
extern void G_InitBoltOnData ( gentity_t *ent );
#endif// #ifndef __BOLTONS_H__