Actor property and flags
ThruBits value, +ALLOWTHRUBITS, +ALLOWTHRUFLAGS
ThruBits
Availability
UZDoom's, under its names. Not in Zandronum 3.2.
Works in netgames. A class's groups are the same on server and clients, and a change made from ACS reaches every client and players who join later.
Usage
ThruBits puts an actor in up to 32 pass-through groups, one per bit. Two actors that share a group pass
through each other when either has +ALLOWTHRUBITS:
- neither blocks the other's movement;
- a projectile flies through without hitting;
- one cannot stand on the other;
- teleporting onto one does not telefrag it.
Default is 0, no group.
+ALLOWTHRUFLAGS on a hitscan's or a rail's puff lets the shot pass actors by the puff's own flags:
+THRUACTORS passes everything, +THRUSPECIES passes the puff's species, +ALLOWTHRUBITS with ThruBits
passes the actors sharing a group with the puff, and on a rail +THRUGHOST passes ghosts. Without
+ALLOWTHRUFLAGS a puff's own flags do nothing, as in UZDoom.
One difference from UZDoom: a rail's +MTHRUSPECIES still passes the shooter's species without
+ALLOWTHRUFLAGS, as in Zandronum, where UZDoom's rails need the flag for it too.
DECORATE expressions read the field as ThruBits.
ACS
ZandroX adds APROP_FUA_ThruBits (56) to GetActorProperty, SetActorProperty and
CheckActorProperty. UZDoom's ACS cannot reach the field. zt-bcc's zcommon.bcs declares it, and so does
fua.acs, the header ACC includes in place of zcommon.acs
(Compiling ACS).
Example
// Allies' rockets fly through allies, and allies walk through each other.
actor Ally : ZombieMan
{
ThruBits 1
+ALLOWTHRUBITS
}
actor AllyRocket : Rocket
{
ThruBits 1
}
// A script puts the activator in group 2 as well.
SetActorProperty(0, APROP_FUA_ThruBits, GetActorProperty(0, APROP_FUA_ThruBits) | 2);