djcev.com

//

Git Repos / fte_dogmode / qc / triggers / everything.qc

Last update to this file was on 2024-06-15 at 19:50.

Show everything.qc

//==============================================================================
// trigger_everything
//==============================================================================

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

#ifdef SSQC
// trigger_everything
void() trigger_everything_touch;
void(entity e) trigger_everything_init;
void() trigger_everything;
#endif

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

#ifdef SSQC
//----------------------------------------------------------------------
// trigger_everything
//----------------------------------------------------------------------
// class trigger_everything: base_trigger
// {
//--------------------------------------------------------------
void() trigger_everything_touch =
{
if (self.estate != STATE_ACTIVE)
return;

if (time < self.attack_finished)
return;

activator = other;

sub_usetarget (self.target, targetname);

if (self.wait)
if (!(self.spawnflags & 1))
self.attack_finished = time + self.wait;
};

//--------------------------------------------------------------
void(entity e) trigger_everything_init =
{
e.classname = "trigger_everything";
e.classtype = CT_TRIGGER_EVERYTHING;
base_trigger_init (e);
e.touch = trigger_everything_touch;
sub_checkwaiting (e);
};

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

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

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

Log everything.qc

Date Commit Message Author + -
2024-06-15 Major update, committing as-is, will have bugs cev +5  
2024-03-24 2nd pass refactor, rework QC class structure cev +33 -16
2024-01-09 Continue OO / Class-based refactor cev +9 -7
2023-12-09 Start OO / class-based refactor, work on items cev +38  

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