mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-24 19:51:58 +00:00
SERVER: Add ability to trigger with interact button
This commit is contained in:
parent
da75f77d3b
commit
5012617c5b
1 changed files with 16 additions and 0 deletions
|
@ -266,6 +266,22 @@ void() trigger_stuffcmd =
|
|||
self.touch = trigger_stuffcmd_touch;
|
||||
}
|
||||
|
||||
void() trigger_interact_touch =
|
||||
{
|
||||
if (other.classname != "player" || other.downed || other.isBuying == true || !PlayerIsLooking(other, self))
|
||||
return;
|
||||
|
||||
if (other.button7) {
|
||||
multi_trigger();
|
||||
}
|
||||
}
|
||||
|
||||
void() trigger_interact =
|
||||
{
|
||||
InitTrigger();
|
||||
self.touch = trigger_interact_touch;
|
||||
}
|
||||
|
||||
/* ===================
|
||||
Custom Teddy Triggers
|
||||
===================*/
|
||||
|
|
Loading…
Reference in a new issue