Anti-Water Bug Source

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Anti-Water Bug Source

Postby Batchy » Sun Dec 16, 07 7:54 am

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);
}
User avatar
Batchy
Addict
 
Posts: 508
Joined: Fri Sep 21, 07 5:40 am

Postby ~ô¿ô~Nobody~ » Sun Dec 16, 07 12:19 pm

At least you didn't use the AllActors iterator function.
Checking that 100 times a second is not required and just causes lag.
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Batchy » Sun Dec 16, 07 11:24 pm

Well if you recommend something that would help it, Please post it :)
Mr.Fagstix wrote:This is why I fucking hate you. Because somehow you manage to take somebodies posts, twist them against them, troll them and flame bait them and then you still get away with it? Is this forums management on fucking crack or some shit? Fucking SERIOUSLY.
User avatar
Batchy
Addict
 
Posts: 508
Joined: Fri Sep 21, 07 5:40 am

Postby ~ô¿ô~Nobody~ » Fri Dec 21, 07 11:09 pm

setTimer(0.5,true);
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Dae » Thu Jan 17, 08 12:39 am

thx

helped with some code (TzBasketBallZone to be precise :))
Last edited by Dae on Thu Jan 17, 08 12:39 am, edited 1 time in total.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Dae » Thu Jan 17, 08 2:58 pm

Looks like
Code: Select all
inHand=None;

works only on the server and the client still sees the weapon (and that makes an odd bug)

Code: Select all
PutInHand(None);

works better
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Batchy » Thu Jan 17, 08 3:00 pm

Ill put that in the new version, Thanks
Mr.Fagstix wrote:This is why I fucking hate you. Because somehow you manage to take somebodies posts, twist them against them, troll them and flame bait them and then you still get away with it? Is this forums management on fucking crack or some shit? Fucking SERIOUSLY.
User avatar
Batchy
Addict
 
Posts: 508
Joined: Fri Sep 21, 07 5:40 am


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 3 guests
cron