23 if (e.projectiledeathtype)
65 int old_status = this.
active;
68 if (this.
active != old_status)
113 if(this.
origin !=
'0 0 0')
117 if(this.
angles !=
'0 0 0')
134 if(targbits &
BIT(0))
136 if(targbits &
BIT(1))
138 if(targbits &
BIT(2))
140 if(targbits &
BIT(3))
142 if(targbits &
BIT(4))
144 if(targbits &
BIT(5))
193 setorigin(
this, this.
origin);
211 setsize(
this, this.
mins, this.
maxs);
260 if(!(skiptargets &
BIT(1))) t.target = this.
target;
261 if(!(skiptargets &
BIT(2))) t.target2 = this.
target2;
262 if(!(skiptargets &
BIT(3))) t.target3 = this.
target3;
263 if(!(skiptargets &
BIT(4))) t.target4 = this.
target4;
277 if (this.
noise ==
"")
300 for(
int i = 0; i < 4; ++i)
302 if(skiptargets &
BIT(i + 1))
307 case 0: tfield =
target;
break;
308 case 1: tfield =
target2;
break;
309 case 2: tfield =
target3;
break;
310 case 3: tfield =
target4;
break;
312 if (this.(tfield) !=
"")
316 if (t.loopdetector & 1)
324 else if(t !=
this && t.use && (t.sub_target_used !=
time || !preventReuse))
333 t.use(t, actor,
this);
336 t.sub_target_used =
time;
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const int SF_TRIGGER_UPDATE
WriteString(chan, ent.netname)
WriteByte(chan, ent.angles.y/DEC_FACTOR)
#define ITEM_IS_LOOT(item)
Returns whether the item is loot.
#define BITSET_ASSIGN(a, b)
#define new_pure(class)
purely logical entities (not linked to the area grid)
ERASEABLE void RandomSelection_Init()
#define RandomSelection_AddEnt(e, weight, priority)
entity RandomSelection_chosen_ent
#define setSendEntity(e, f)
void play2(entity e, string filename)
void generic_netlinked_reset(entity this)
void DelayThink(entity this)
void generic_netlinked_legacy_use(entity this, entity actor, entity trigger)
void trigger_link(entity this, bool(entity this, entity to, int sendflags) sendfunc)
void SUB_UseTargets(entity this, entity actor, entity trigger)
void generic_setactive(entity this, int act)
bool isPushable(entity e)
void SUB_UseTargets_Ex(entity this, entity actor, entity trigger, bool preventReuse, int skiptargets)
void SUB_UseTargets_PreventReuse(entity this, entity actor, entity trigger)
void trigger_common_write(entity this, bool withtarget)
void generic_netlinked_setactive(entity this, int act)
void SUB_UseTargets_SkipTargets(entity this, entity actor, entity trigger, int skiptargets)
allow excluding certain .target* fields without needing to nullify them use BIT(1) through BIT(4)
void trigger_remove_generic(entity this)
int loopdetector
bitfield for recursive functions to avoid crashing
void trigger_common_read(entity this, bool withtarget)
#define IS_REAL_CLIENT(v)
bool autocvar_sv_dedicated