djcev.com

//

Git Repos / fte_dogmode / qc / func / bossgate.qc

Last update to this file was on 2024-03-24 at 02:40.

Show bossgate.qc

//==============================================================================
// func_bossgate
//==============================================================================

//======================================================================
// Constants
//======================================================================

// For func_episodegate and func_bossgate appear when player has all runes
const float BOSSGATE_REVERSE = 16;

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

// func_bossgate
void(entity e) func_bossgate_init;
void() func_bossgate;

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

/*QUAKED func_bossgate (0 .5 .8) ? X X X X REVERSE_FUNCTIONALITY
This bmodel appears unless players have all of the episode sigils.
*/
//----------------------------------------------------------------------
// class func_bossgate: base_func_wall
// {
//--------------------------------------------------------------
void(entity e) func_bossgate_init =
{
e.classname = "func_bossgate";
e.classtype = CT_FUNC_BOSSGATE;

// will set use -- CEV
base_func_wall_init (e);

if (e.spawnflags & BOSSGATE_REVERSE)
{
if (!((serverflags & 15) == 15))
{
// not all complete
return;
}
}
else
{
if ((serverflags & 15) == 15)
// all episodes completed
return;
}

e.angles = '0 0 0';
// so it doesn't get pushed by anything
e.movetype = MOVETYPE_PUSH;
e.solid = SOLID_BSP;
setmodel (e, e.model);
};

//--------------------------------------------------------------
void() func_bossgate =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit())
return;

func_bossgate_init (self);
};
// };

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

Log bossgate.qc

Date Commit Message Author + -
2024-03-24 2nd pass refactor, rework QC class structure cev +37 -11
2024-01-09 Continue OO / Class-based refactor cev +25 -21
2023-11-27 Code reorg, minor movement changes, misc cev +38  

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