diff options
| author | Tim Angus <tim@ngus.net> | 2001-04-27 14:45:29 +0000 | 
|---|---|---|
| committer | Tim Angus <tim@ngus.net> | 2001-04-27 14:45:29 +0000 | 
| commit | cad03b9d84bb4c4a4bf4783beeb5d1dd2e435b43 (patch) | |
| tree | f429e8c69cf62cfa81b57a705d3789448907ca39 /src/game | |
| parent | a7627e5694752c629bc5beeb39a7fa74bba8a8e5 (diff) | |
Abstracted the buildable renderer a bit and added preliminary animation routines
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/bg_public.h | 13 | ||||
| -rw-r--r-- | src/game/g_buildable.c | 1 | 
2 files changed, 11 insertions, 3 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 4d6fc8a6..73e0699c 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -584,7 +584,7 @@ typedef enum {    TORSO_NEGATIVE,  #endif -  MAX_ANIMATIONS, +  MAX_PLAYER_ANIMATIONS,    LEGS_BACKCR,    LEGS_BACKWALK, @@ -592,9 +592,16 @@ typedef enum {    FLAG_STAND,    FLAG_STAND2RUN, -  MAX_TOTALANIMATIONS -} animNumber_t; +  MAX_PLAYER_TOTALANIMATIONS +} playerAnimNumber_t; +//TA: for buildable animations +typedef enum +{ +  BUILD_CONSTRUCT, +  BUILD_DESTROY, +  MAX_BUILDABLE_ANIMATIONS +} buildableAnimNumber_t;  typedef struct animation_s {    int   firstFrame; diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index ef210767..051c2209 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -752,6 +752,7 @@ gentity_t *Build_Item( gentity_t *ent, buildable_t buildable, int distance ) {    built->item = BG_FindItemForBuildable( buildable );    built->s.modelindex = built->item - bg_itemlist; // store item number in modelindex +  built->s.clientNum = buildable; //so we can tell what this is on the client side    BG_FindBBoxForBuildable( buildable, built->r.mins, built->r.maxs );    built->biteam = built->s.modelindex2 = BG_FindTeamForBuildable( buildable );  | 
