Page 1 of 1

Mutator Code help.

PostPosted: Sun Feb 19, 06 3:15 pm
by Gishank
Ok this is my first mutator, part of the code was extracted from main mans mutator but it won't compile and i din't know why :P
Code: Select all
class DXWarMutator extends Mutator config(Mutators);

function PostBeginPlay()
{
   Level.Game.BaseMutator.AddMutator(Self);
}

function ModifyPlayer(Pawn Other)
{
   local Multitool M;
   local Lockpick L;
   local Medkit T;
   local DeusExPlayer Player;

   if (Other.IsA('DeusExPlayer'))
   {
      Player = DeusExPlayer(Other);
      foreach AllActors(class'Multitool',M; class'Lockpick',L; class'Medkit',T)
      {
         if ( M.Owner == Player )
         if ( L.Owner == Player )
         if ( T.Owner == Player )
         {
           {
           M.Destroy();
           L.Destroy();
           T.Destroy();
         }
    }
}

DefaultProperties
{
}

PostPosted: Sun Feb 19, 06 3:41 pm
by Dae
Code: Select all
         if ( M.Owner == Player )
         if ( L.Owner == Player )
         if ( T.Owner == Player )
         {
           {

Rofl Klop. Learn operators.

Re: Mutator Code help.

PostPosted: Sun Feb 19, 06 3:47 pm
by MainMan
Code: Select all
class DXWarMutator extends Mutator config(Mutators);

function PostBeginPlay()
{
   Level.Game.BaseMutator.AddMutator(Self);
}

function ModifyPlayer(Pawn Other)
{
   local Multitool M;
   local Lockpick L;
   local Medkit T;
   local DeusExPlayer Player;

   if (Other.IsA('DeusExPlayer'))
   {
      Player = DeusExPlayer(Other);
      foreach AllActors(class'Lockpick',L)
      {
         if ( L.Owner == Player )
           L.Destroy();
     }

      foreach AllActors(class'Multitool',M)
     {
         if ( M.Owner == Player )
           M.Destroy();
     }

        foreach AllActors(class'Medkit',T)
        {
             if ( T.Owner == Player )
                 T.Destroy();
     
        }
    }
}

DefaultProperties
{
}


There, fixed.

More proof that you can't even make simple code yourself. Admit that your code wasn't edited, and you did steal it from the darkforce mod.

PostPosted: Sun Feb 19, 06 4:11 pm
by Gishank
I didn't steal it my post's were edited because i wouldn't call myself shit or call [A] are n00bs... Neways thanks for the help.

PostPosted: Sun Feb 19, 06 4:12 pm
by MainMan
Your posts were edited but your code wasnt, and you know it. No problem about help.

PostPosted: Sun Feb 19, 06 4:14 pm
by Gishank
...
OK I "STOLE" IT!!!
Also the code didn't work.

PostPosted: Sun Feb 19, 06 4:18 pm
by MainMan
In what way? Does it compile? If yes, did you add it to the map?

PostPosted: Sun Feb 19, 06 4:24 pm
by Gishank
No it dosn't compile.

oops it does lol

PostPosted: Sun Feb 19, 06 4:25 pm
by MainMan
:)

PostPosted: Sun Feb 19, 06 4:34 pm
by Gishank
Too bad everymod i make i can't distribute or host lol.

PostPosted: Sun Feb 19, 06 4:43 pm
by MainMan
why not?

PostPosted: Sun Feb 19, 06 7:19 pm
by Siva
Glad to see klop is getting on with his coding job ;)

He has a spot at DX:War. Because at least he tries.

Mainman, lay off him a bit.

PostPosted: Sun Feb 19, 06 7:22 pm
by Gishank
Well at least i learn't from those mistakes lol.

@MainMan There should be a topic someware in here saying my server is fucked. Oh wait it's in tech issues

PostPosted: Sun Feb 19, 06 9:56 pm
by MainMan
.Hunt3r[XII] wrote:Glad to see klop is getting on with his coding job ;)

He has a spot at DX:War. Because at least he tries.

Mainman, lay off him a bit.


Lay off him? I helped him here!

PostPosted: Mon Feb 20, 06 10:38 am
by Siva
I know, but your constantly hounding him about that coding stuff, If you already owned him apparently, why are you still chasing for a self-confession if you've already concluded he's guilty...

PostPosted: Mon Feb 20, 06 2:36 pm
by Rödewijk
<~>K}Ã?Ã?<~> wrote:...
OK I "STOLE" IT!!!
Also the code didn't work.



mhuahahhahaa finally after 2 months :lol:

PostPosted: Mon Feb 20, 06 2:37 pm
by Rödewijk
.Hunt3r[XII] wrote:I know, but your constantly hounding him about that coding stuff, If you already owned him apparently, why are you still chasing for a self-confession if you've already concluded he's guilty...


becaus i did it whit him to some months ago :P

PostPosted: Mon Feb 20, 06 2:38 pm
by Rödewijk
smookie wrote:
.Hunt3r[XII] wrote:I know, but your constantly hounding him about that coding stuff, If you already owned him apparently, why are you still chasing for a self-confession if you've already concluded he's guilty...


becaus i did it whit him to some months ago :P


smookie wrote:
<~>K}Ã?Ã?<~> wrote:...
OK I "STOLE" IT!!!
Also the code didn't work.



mhuahahhahaa finally after 2 months :lol:



weeeeeeee doublepost :shock:

PostPosted: Mon Feb 20, 06 3:08 pm
by Siva
Wtf you mean triplepost lol

PostPosted: Mon Feb 20, 06 7:01 pm
by Gishank
Look, MainMan i only said that so you would shut the fuck up. Then you go onto cataclyzm forums and make an even greater deal about it.