mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-25 05:11:06 +00:00
Rearrange files
This commit is contained in:
parent
b851b787f9
commit
26137d15c0
32 changed files with 64 additions and 44 deletions
14
Makefile
14
Makefile
|
@ -107,13 +107,13 @@ CTF_OBJS_ = \
|
||||||
src/g_trigger.o \
|
src/g_trigger.o \
|
||||||
src/g_utils.o \
|
src/g_utils.o \
|
||||||
src/g_weapon.o \
|
src/g_weapon.o \
|
||||||
src/m_move.o \
|
src/menu/menu.o \
|
||||||
src/p_client.o \
|
src/monster/move.o \
|
||||||
src/p_hud.o \
|
src/player/client.o \
|
||||||
src/p_menu.o \
|
src/player/hud.o \
|
||||||
src/p_trail.o \
|
src/player/trail.o \
|
||||||
src/p_view.o \
|
src/player/view.o \
|
||||||
src/p_weapon.o \
|
src/player/weapon.o \
|
||||||
src/shared/shared.o
|
src/shared/shared.o
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// g_ai.c
|
// g_ai.c
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
qboolean FindTarget (edict_t *self);
|
qboolean FindTarget (edict_t *self);
|
||||||
extern cvar_t *maxclients;
|
extern cvar_t *maxclients;
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
void UpdateChaseCam(edict_t *ent)
|
void UpdateChaseCam(edict_t *ent)
|
||||||
|
|
|
@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
#include "m_player.h"
|
#include "monster/player.h"
|
||||||
|
|
||||||
|
|
||||||
char *ClientTeam (edict_t *ent)
|
char *ClientTeam (edict_t *ent)
|
||||||
|
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// g_combat.c
|
// g_combat.c
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
============
|
============
|
||||||
|
|
|
@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
#include "m_player.h"
|
#include "monster/player.h"
|
||||||
|
|
||||||
typedef enum match_s {
|
typedef enum match_s {
|
||||||
MATCH_NONE,
|
MATCH_NONE,
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=========================================================
|
=========================================================
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
qboolean Pickup_Weapon (edict_t *ent, edict_t *other);
|
qboolean Pickup_Weapon (edict_t *ent, edict_t *other);
|
||||||
|
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
game_locals_t game;
|
game_locals_t game;
|
||||||
level_locals_t level;
|
level_locals_t level;
|
||||||
|
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// g_misc.c
|
// g_misc.c
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
/*QUAKED func_group (0 0 0) ?
|
/*QUAKED func_group (0 0 0) ?
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// g_phys.c
|
// g_phys.c
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
field_t fields[] = {
|
field_t fields[] = {
|
||||||
{"classname", FOFS(classname), F_LSTRING},
|
{"classname", FOFS(classname), F_LSTRING},
|
||||||
|
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
void Svcmd_Test_f (void)
|
void Svcmd_Test_f (void)
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
/*QUAKED target_temp_entity (1 0 0) (-8 -8 -8) (8 8 8)
|
/*QUAKED target_temp_entity (1 0 0) (-8 -8 -8) (8 8 8)
|
||||||
Fire an origin based temp entity event to the clients.
|
Fire an origin based temp entity event to the clients.
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
void InitTrigger (edict_t *self)
|
void InitTrigger (edict_t *self)
|
||||||
|
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// g_utils.c -- misc utility functions for game module
|
// g_utils.c -- misc utility functions for game module
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
void G_ProjectSource (vec3_t point, vec3_t distance, vec3_t forward, vec3_t right, vec3_t result)
|
void G_ProjectSource (vec3_t point, vec3_t distance, vec3_t forward, vec3_t right, vec3_t result)
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "header/local.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef CTF_CTF_H
|
||||||
|
#define CTF_CTF_H
|
||||||
|
|
||||||
#define CTF_VERSION 1.52
|
#define CTF_VERSION 1.52
|
||||||
#define CTF_VSTRING2(x) #x
|
#define CTF_VSTRING2(x) #x
|
||||||
#define CTF_VSTRING(x) CTF_VSTRING2(x)
|
#define CTF_VSTRING(x) CTF_VSTRING2(x)
|
||||||
|
@ -190,3 +193,5 @@ void SP_info_teleport_destination (edict_t *ent);
|
||||||
|
|
||||||
void CTFSetPowerUpEffect(edict_t *ent, int def);
|
void CTFSetPowerUpEffect(edict_t *ent, int def);
|
||||||
|
|
||||||
|
#endif /* CTF_CTF_H */
|
||||||
|
|
|
@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef CTF_GAME_H
|
||||||
|
#define CTF_GAME_H
|
||||||
|
|
||||||
// game.h -- game dll information visible to server
|
// game.h -- game dll information visible to server
|
||||||
|
|
||||||
#define GAME_API_VERSION 3
|
#define GAME_API_VERSION 3
|
||||||
|
@ -241,3 +244,5 @@ typedef struct
|
||||||
|
|
||||||
game_export_t *GetGameApi (game_import_t *import);
|
game_export_t *GetGameApi (game_import_t *import);
|
||||||
|
|
||||||
|
#endif /* CTF_GAME_H */
|
||||||
|
|
|
@ -19,7 +19,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// g_local.h -- local definitions for game module
|
// g_local.h -- local definitions for game module
|
||||||
|
|
||||||
#include "header/shared.h"
|
#ifndef CTF_LOCAL_H
|
||||||
|
#define CTF_LOCAL_H
|
||||||
|
|
||||||
|
#include "shared.h"
|
||||||
|
|
||||||
// define GAME_INCLUDE so that game.h does not define the
|
// define GAME_INCLUDE so that game.h does not define the
|
||||||
// short, server-visible gclient_t and edict_t structures,
|
// short, server-visible gclient_t and edict_t structures,
|
||||||
|
@ -28,11 +31,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
|
||||||
//ZOID
|
//ZOID
|
||||||
#include "p_menu.h"
|
#include "menu.h"
|
||||||
//ZOID
|
//ZOID
|
||||||
|
|
||||||
// the "gameversion" client command will print this plus compile date
|
// the "gameversion" client command will print this plus compile date
|
||||||
#define GAMEVERSION "baseq2"
|
#define GAMEVERSION "ctf"
|
||||||
|
|
||||||
// protocol bytes that can be directly added to messages
|
// protocol bytes that can be directly added to messages
|
||||||
#define svc_muzzleflash 1
|
#define svc_muzzleflash 1
|
||||||
|
@ -1141,6 +1144,8 @@ struct edict_s
|
||||||
};
|
};
|
||||||
|
|
||||||
//ZOID
|
//ZOID
|
||||||
#include "g_ctf.h"
|
#include "ctf.h"
|
||||||
//ZOID
|
//ZOID
|
||||||
|
|
||||||
|
#endif /* CTF_LOCAL_H */
|
||||||
|
|
|
@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef CTF_MENU_H
|
||||||
|
#define CTF_MENU_H
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
PMENU_ALIGN_LEFT,
|
PMENU_ALIGN_LEFT,
|
||||||
PMENU_ALIGN_CENTER,
|
PMENU_ALIGN_CENTER,
|
||||||
|
@ -48,3 +51,5 @@ void PMenu_Next(edict_t *ent);
|
||||||
void PMenu_Prev(edict_t *ent);
|
void PMenu_Prev(edict_t *ent);
|
||||||
void PMenu_Select(edict_t *ent);
|
void PMenu_Select(edict_t *ent);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
* =======================================================================
|
* =======================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COMMON_SHARED_H
|
#ifndef CTF_SHARED_H
|
||||||
#define COMMON_SHARED_H
|
#define CTF_SHARED_H
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -1062,4 +1062,4 @@ extern int vidref_val;
|
||||||
size_t verify_fread(void *, size_t, size_t, FILE *);
|
size_t verify_fread(void *, size_t, size_t, FILE *);
|
||||||
size_t verify_fwrite(void *, size_t, size_t, FILE *);
|
size_t verify_fwrite(void *, size_t, size_t, FILE *);
|
||||||
|
|
||||||
#endif /* COMMON_SHARED_H */
|
#endif /* CTF_SHARED_H */
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "../header/local.h"
|
||||||
|
|
||||||
// Note that the pmenu entries are duplicated
|
// Note that the pmenu entries are duplicated
|
||||||
// this is so that a static set of pmenu entries can be used
|
// this is so that a static set of pmenu entries can be used
|
|
@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// m_move.c -- monster movement
|
// m_move.c -- monster movement
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "../header/local.h"
|
||||||
|
|
||||||
#define STEPSIZE 18
|
#define STEPSIZE 18
|
||||||
|
|
|
@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "../header/local.h"
|
||||||
#include "m_player.h"
|
#include "../monster/player.h"
|
||||||
|
|
||||||
void SP_misc_teleporter_dest (edict_t *ent);
|
void SP_misc_teleporter_dest (edict_t *ent);
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "../header/local.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "g_local.h"
|
#include "../header/local.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
|
@ -18,8 +18,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "../header/local.h"
|
||||||
#include "m_player.h"
|
#include "../monster/player.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// g_weapon.c
|
// g_weapon.c
|
||||||
|
|
||||||
#include "g_local.h"
|
#include "../header/local.h"
|
||||||
#include "m_player.h"
|
#include "../monster/player.h"
|
||||||
|
|
||||||
|
|
||||||
static qboolean is_quad;
|
static qboolean is_quad;
|
Loading…
Reference in a new issue