Git Repos / fte_dogmode / qc / func / wall.qc
Last update to this file was on 2024-06-15 at 19:50.
Show wall.qc
//==============================================================================
// func_wall
//==============================================================================
//======================================================================
// forward declarations
//======================================================================
#ifdef SSQC
// base_func_wall
void() base_func_wall_use;
void(entity e) base_func_wall_init;
strip void() base_func_wall;
#endif
#ifdef SSQC
// func_wall
void(entity e) func_wall_init;
void() func_wall;
#endif
//------------------------------------------------------------------------------
#ifdef SSQC
//----------------------------------------------------------------------
// class base_func_wall: base_func
// {
//--------------------------------------------------------------
void() base_func_wall_use =
{
// change to alternate textures
self.frame = 1 - self.frame;
};
//--------------------------------------------------------------
void(entity e) base_func_wall_init =
{
base_func_init (e);
e.use = base_func_wall_use;
};
//--------------------------------------------------------------
strip void() base_func_wall =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit())
return;
base_func_wall_init (self);
};
// };
#endif
#ifdef SSQC
/*QUAKED func_wall (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
This is just a solid wall if not inhibitted
*/
//----------------------------------------------------------------------
// class func_wall: base_func_wall
// {
//--------------------------------------------------------------
void(entity e) func_wall_init =
{
self.classname = "func_wall";
self.classtype = CT_FUNC_WALL;
base_func_wall_init (e);
self.angles = '0 0 0';
// so it doesn't get pushed by anything
self.movetype = MOVETYPE_PUSH;
self.solid = SOLID_BSP;
// already set by base_func_wall_init -- CEV
// self.use = base_func_wall_use;
setmodel (self, self.model);
};
//--------------------------------------------------------------
void() func_wall =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit())
return;
func_wall_init (self);
};
// };
#endif
Return to the top of this page or return to the overview of this repo.
Log wall.qc
Date | Commit Message | Author | + | - |
---|---|---|---|---|
2024-06-15 | Major update, committing as-is, will have bugs | cev | +8 | |
2024-03-24 | 2nd pass refactor, rework QC class structure | cev | +58 | -14 |
2024-01-09 | Continue OO / Class-based refactor | cev | +22 | -14 |
2023-11-27 | Code reorg, minor movement changes, misc | cev | +27 |
Return to the top of this page or return to the overview of this repo.