mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-02 07:37:58 +03:00
Fixed wrong SVF flags
This commit is contained in:
parent
8c1145bb9f
commit
296249b203
3 changed files with 13 additions and 16 deletions
|
@ -2567,7 +2567,7 @@ Actor::Actor()
|
||||||
}
|
}
|
||||||
|
|
||||||
edict->s.eType = ET_MODELANIM;
|
edict->s.eType = ET_MODELANIM;
|
||||||
edict->r.svFlags |= SVF_USE_CURRENT_ORIGIN;
|
edict->r.svFlags |= SVF_MONSTER;
|
||||||
edict->r.ownerNum = ENTITYNUM_NONE;
|
edict->r.ownerNum = ENTITYNUM_NONE;
|
||||||
edict->clipmask = MASK_MONSTERSOLID;
|
edict->clipmask = MASK_MONSTERSOLID;
|
||||||
setMoveType( MOVETYPE_WALK );
|
setMoveType( MOVETYPE_WALK );
|
||||||
|
@ -14460,7 +14460,7 @@ void Actor::BecomeCorpse
|
||||||
AddToBodyQue();
|
AddToBodyQue();
|
||||||
|
|
||||||
edict->r.contents = CONTENTS_TRIGGER;
|
edict->r.contents = CONTENTS_TRIGGER;
|
||||||
edict->r.svFlags &= ~SVF_USE_CURRENT_ORIGIN;
|
edict->r.svFlags &= ~SVF_MONSTER;
|
||||||
setSolidType(SOLID_NOT);
|
setSolidType(SOLID_NOT);
|
||||||
movetype = MOVETYPE_NONE;
|
movetype = MOVETYPE_NONE;
|
||||||
edict->s.renderfx &= ~RF_SHADOW;
|
edict->s.renderfx &= ~RF_SHADOW;
|
||||||
|
|
|
@ -392,7 +392,7 @@ void G_AddGEntity(gentity_t *edict, qboolean showentnums)
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the entity in case of invalid server flags
|
// remove the entity in case of invalid server flags
|
||||||
if ((edict->r.svFlags & SVF_NOTSINGLECLIENT) && (edict->r.svFlags & SVF_CAPSULE)) {
|
if ((edict->r.svFlags & SVF_SENDONCE) && (edict->r.svFlags & SVF_HIDEOWNER)) {
|
||||||
ent->PostEvent(EV_Remove, 0);
|
ent->PostEvent(EV_Remove, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,23 +43,20 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#define SVF_CLIENTMASK 0x00000002
|
#define SVF_CLIENTMASK 0x00000002
|
||||||
|
|
||||||
#define SVF_BROADCAST 0x00000004 // send to all connected clients
|
#define SVF_BROADCAST 0x00000004 // send to all connected clients
|
||||||
#define SVF_MONSTER 0x00000008 // set if the entity is a bot
|
#define SVF_SENDPVS 0x00000008
|
||||||
#define SVF_PORTAL 0x00000040 // merge a second pvs at origin2 into snapshots
|
#define SVF_PORTAL 0x00000010 // merge a second pvs at origin2
|
||||||
#define SVF_USE_CURRENT_ORIGIN 0x00000080 // entity->r.currentOrigin instead of entity->s.origin
|
#define SVF_NOTSINGLECLIENT 0x00000040 // send entity to everyone but one client
|
||||||
// for link position (missiles and movers)
|
// (entityShared_t->singleClient)
|
||||||
|
#define SVF_MONSTER 0x00000080 // set if the entity is a bot into snapshots
|
||||||
#define SVF_SINGLECLIENT 0x00000100 // only send to a single client (entityShared_t->singleClient)
|
#define SVF_SINGLECLIENT 0x00000100 // only send to a single client (entityShared_t->singleClient)
|
||||||
#define SVF_NOSERVERINFO 0x00000200 // don't send CS_SERVERINFO updates to this client
|
#define SVF_USEBBOX 0x00000200
|
||||||
|
#define SVF_NOFARPLANE 0x00000400
|
||||||
|
#define SVF_NOSERVERINFO 0x00000800 // don't send CS_SERVERINFO updates to this client
|
||||||
// so that it can be updated for ping tools without
|
// so that it can be updated for ping tools without
|
||||||
// lagging clients
|
// lagging clients
|
||||||
#define SVF_CAPSULE 0x00000400 // use capsule for collision detection instead of bbox
|
|
||||||
#define SVF_NOTSINGLECLIENT 0x00000800 // send entity to everyone but one client
|
|
||||||
// (entityShared_t->singleClient)
|
|
||||||
|
|
||||||
#define SVF_USEBBOX 0x00001000
|
|
||||||
#define SVF_SENDONCE 0x00004000
|
#define SVF_SENDONCE 0x00004000
|
||||||
|
|
||||||
#define SVF_HIDEOWNER 0x00008000
|
#define SVF_HIDEOWNER 0x00008000
|
||||||
#define SVF_SENDPVS 0x00010000
|
|
||||||
|
|
||||||
typedef struct gclient_s gclient_t;
|
typedef struct gclient_s gclient_t;
|
||||||
typedef struct dtiki_s dtiki_t;
|
typedef struct dtiki_s dtiki_t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue