Git Repos / fte_dogmode / qc / triggers / setskill.qc
Last update to this file was on 2024-06-15 at 19:50.
Show setskill.qc
//==============================================================================
// trigger_setskill
//==============================================================================
//======================================================================
// forward declarations
//======================================================================
#ifdef SSQC
// trigger_setskill
void() trigger_setskill_touch;
void(entity e) trigger_setskill_init;
void() trigger_setskill;
#endif
//------------------------------------------------------------------------------
#ifdef SSQC
/*QUAKED trigger_setskill (.5 .5 .5) ? 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
sets skill level to the value of "message".
Only used on start map.
*/
//----------------------------------------------------------------------
// class trigger_setskill: base_trigger
// {
//--------------------------------------------------------------
void() trigger_setskill_touch =
{
// from Copper -- dumptruck_ds
if (sub_checkvalidtouch(other) == FALSE)
return;
cvar_set ("skill", self.message);
};
//--------------------------------------------------------------
void(entity e) trigger_setskill_init =
{
e.classname = "trigger_setskill";
e.classtype = CT_TRIGGER_SETSKILL;
e.touch = trigger_setskill_touch;
base_trigger_init (e);
sub_checkwaiting (e);
};
//--------------------------------------------------------------
void() trigger_setskill =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit())
return;
trigger_setskill_init (self);
};
// };
#endif
Return to the top of this page or return to the overview of this repo.
Log setskill.qc
Date | Commit Message | Author | + | - |
---|---|---|---|---|
2024-06-15 | Major update, committing as-is, will have bugs | cev | +4 | |
2024-03-24 | 2nd pass refactor, rework QC class structure | cev | +30 | -10 |
2024-01-09 | Continue OO / Class-based refactor | cev | +9 | -10 |
2023-12-09 | Start OO / class-based refactor, work on items | cev | +22 | -15 |
2023-11-20 | changes to movement, build environment, file reorg | cev | +27 |
Return to the top of this page or return to the overview of this repo.