This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
2007-06-25 22:00:00 +02:00
|
|
|
|
//=======================================================================
|
|
|
|
|
// Copyright XashXT Group 2007 <20>
|
|
|
|
|
// sv_studio.c - cm inline studio
|
|
|
|
|
//=======================================================================
|
2007-06-22 22:00:00 +02:00
|
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
|
#include "server.h"
|
|
|
|
|
|
|
|
|
|
int SV_StudioExtractBbox( studiohdr_t *phdr, int sequence, float *mins, float *maxs )
|
|
|
|
|
{
|
|
|
|
|
mstudioseqdesc_t *pseqdesc;
|
|
|
|
|
pseqdesc = (mstudioseqdesc_t *)((byte *)phdr + phdr->seqindex);
|
|
|
|
|
|
|
|
|
|
if(sequence == -1) return 0;
|
|
|
|
|
|
|
|
|
|
VectorCopy( pseqdesc[ sequence ].bbmin, mins );
|
|
|
|
|
VectorCopy( pseqdesc[ sequence ].bbmax, maxs );
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
2007-09-06 22:00:00 +02:00
|
|
|
|
byte *SV_GetModelPtr(edict_t *ent)
|
2007-06-22 22:00:00 +02:00
|
|
|
|
{
|
2007-09-06 22:00:00 +02:00
|
|
|
|
if(!ent) return NULL;
|
2007-06-22 22:00:00 +02:00
|
|
|
|
return NULL;
|
|
|
|
|
}
|