mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
Added new spawnflags for func_door - touch only clients
This commit is contained in:
parent
8633cd9f6f
commit
69b856a847
@ -421,6 +421,11 @@ void CBaseDoor::DoorTouch(CBaseEntity *pOther)
|
||||
{
|
||||
entvars_t *pevToucher = pOther->pev;
|
||||
|
||||
#ifdef REGAMEDLL_ADD
|
||||
if ((pev->spawnflags & SF_DOOR_TOUCH_ONLY_CLIENTS) && !pOther->IsPlayer())
|
||||
return;
|
||||
#endif
|
||||
|
||||
// Ignore touches by dead players
|
||||
if (pevToucher->deadflag != DEAD_NO)
|
||||
return;
|
||||
|
@ -46,6 +46,7 @@
|
||||
#define SF_DOOR_ROTATE_X 128
|
||||
#define SF_DOOR_USE_ONLY 256 // door must be opened by player's use button.
|
||||
#define SF_DOOR_NOMONSTERS 512 // Monster can't open
|
||||
#define SF_DOOR_TOUCH_ONLY_CLIENTS 1024 // Only clients can touch
|
||||
#define SF_DOOR_SILENT 0x80000000
|
||||
|
||||
class CBaseDoor: public CBaseToggle
|
||||
|
@ -41,6 +41,7 @@
|
||||
#define SF_DOOR_ROTATE_X 128
|
||||
#define SF_DOOR_USE_ONLY 256 // door must be opened by player's use button.
|
||||
#define SF_DOOR_NOMONSTERS 512 // Monster can't open
|
||||
#define SF_DOOR_TOUCH_ONLY_CLIENTS 1024 // Only clients can touch
|
||||
#define SF_DOOR_SILENT 0x80000000
|
||||
|
||||
class CBaseDoor: public CBaseToggle {
|
||||
|
Loading…
Reference in New Issue
Block a user