Skip to content

Commit

Permalink
Fix setskill activation from alkaline
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSMB committed Oct 22, 2024
1 parent e43a373 commit ffc4839
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mod/quake/common/triggers/trigger/setskill.qc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ void trigger_skill_touch(entity this, entity toucher)
cvar_set("skill", this.message);
}

void trigger_skill_use(entity this, entity actor, entity trigger)
{
if(!IS_PLAYER(actor))
return;

trigger_skill_touch(this, actor);
}

/*QUAKED trigger_setskill(.5 .5 .5) ?
sets skill level to the value of "message".
Only used on start map.
Expand All @@ -16,6 +24,7 @@ spawnfunc(trigger_setskill)
{
InitTrigger(this);
settouch(this, trigger_skill_touch);
this.use = trigger_skill_use;
}


Expand Down

0 comments on commit ffc4839

Please sign in to comment.