djcev.com

//

Git Repos / fte_dogmode / qc / func / illusionary.qc

Last update to this file was on 2025-03-30 at 19:29.

Show illusionary.qc

//==============================================================================
// func_illusionary
//==============================================================================

//======================================================================
// forward declarations
//======================================================================

// func_illusionary
#ifdef CSQC
void(float isnew) func_illusionary_netreceive;
#endif
#if defined(CSQC) || defined(SSQC)
void(entity e) func_illusionary_init;
#endif
#ifdef SSQC
void() func_illusionary;
#endif

//------------------------------------------------------------------------------

/*QUAKED func_illusionary (0 .5 .8) ? X X X X X X X X NOT_ON_EASY NOT_ON_NORMAL NOT_ON_HARD_OR_NIGHTMARE NOT_IN_DEATHMATCH NOT_IN_COOP NOT_IN_SINGLEPLAYER X NOT_ON_HARD_ONLY NOT_ON_NIGHTMARE_ONLY
A simple entity that looks solid but lets you walk through it.
*/
//----------------------------------------------------------------------
// class func_illusionary: base_func
// {
#ifdef CSQC
//--------------------------------------------------------------
void(float isnew) func_illusionary_netreceive =
{
// creates the netflag variable -- CEV
BASE_FUNC_NETRECEIVE (func_illusionary_init)
};
#endif

#if defined(CSQC) || defined(SSQC)
//--------------------------------------------------------------
void(entity e) func_illusionary_init =
{
e.classname = "func_illusionary";
e.classtype = CT_FUNC_ILLUSIONARY;
base_func_init (e);

#ifdef CSQC
setmodelindex (e, e.modelindex);
setsize (e, e.mins, e.maxs);
setorigin (e, e.origin);
e.drawmask = DRAWMASK_NORMAL;
#endif

#ifdef SSQC
e.angles = '0 0 0';
e.movetype = MOVETYPE_NONE;
e.solid = SOLID_NOT;
setmodel (e, e.model);

// makestatic means networking for this object will be
// handled by the engine; I've left the CSQC bootstrap
// stuff here just in case -- CEV
#if 1
makestatic (e);
#else
e.SendEntity = base_entity_netsend;
e.SendFlags = NETFLAG_BASE_ENTITY_FULLSEND;
#endif
#endif
};
#endif

#ifdef SSQC
//--------------------------------------------------------------
void() func_illusionary =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit())
return;

func_illusionary_init (self);
};
#endif
// };

Return to the top of this page or return to the overview of this repo.

Log illusionary.qc

Date Commit Message Author + -
2025-03-30 Big commit. Entity networking, etc. cev +36 -2
2024-06-15 Major update, committing as-is, will have bugs cev +4  
2024-03-24 2nd pass refactor, rework QC class structure cev +31 -10
2024-01-09 Continue OO / Class-based refactor cev +13 -9
2023-11-27 Code reorg, minor movement changes, misc cev +19  

Return to the top of this page or return to the overview of this repo.