- Code: Select all
//=================================================
// Batch's Anti-WaterBug, Thanks to JimBowen For the help
//=================================================
class antiWaterBug extends Mutator; // any actor class will do here, but using Actor clutters up the tree
function Timer()
{
local pawn p;
for(p=Level.PawnList;p!=None;p=p.nextPawn)
{
if (p.isA('DeusExPlayer') && p.region.zone.isA('WaterZone')&&DeusexPlayer(P).inHand.isA('DeusExWeapon')
&& DeusExWeapon(DeusExPlayer(P).inHand).EnviroEffective==ENVEFF_Air)
DeusExPlayer(P).inHand=None;
}
}
function PreBeginPlay()
{
setTimer(0.01,true);
}