2 Copyright (C) 1996-1997 Id Software, Inc.
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #include "collision.h"
28 #define MOVE_NOMONSTERS 1
29 #define MOVE_MISSILE 2
32 // called after the world model has been loaded, before linking any entities
33 void SV_ClearWorld (void);
35 // call before removing an entity, and before trying to move one,
36 // so it doesn't clip against itself
37 void SV_UnlinkEdict (edict_t *ent);
39 // Needs to be called any time an entity changes origin, mins, maxs, or solid
40 // sets ent->v.absmin and ent->v.absmax
41 // if touchtriggers, calls prog functions for the intersected triggers
42 void SV_LinkEdict (edict_t *ent, qboolean touch_triggers);
44 // returns true if the entity is in solid currently
45 int SV_TestEntityPosition (edict_t *ent);
47 // mins and maxs are relative
48 // if the entire move stays in a solid volume, trace.allsolid will be set
50 // if the starting point is in a solid, it will be allowed to move out
53 // nomonsters is used for line of sight or edge testing, where mosnters
54 // shouldn't be considered solid objects
56 // passedict is explicitly excluded from clipping checks (normally NULL)
57 trace_t SV_Move (vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int type, edict_t *passedict);