Mutator Code help.

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

Moderator: Forum Guards

Mutator Code help.

Postby Gishank » Sun Feb 19, 06 3:15 pm

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
{
}
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Dae » Sun Feb 19, 06 3:41 pm

Code: Select all
         if ( M.Owner == Player )
         if ( L.Owner == Player )
         if ( T.Owner == Player )
         {
           {

Rofl Klop. Learn operators.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Re: Mutator Code help.

Postby MainMan » Sun Feb 19, 06 3:47 pm

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.
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Gishank » Sun Feb 19, 06 4:11 pm

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.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby MainMan » Sun Feb 19, 06 4:12 pm

Your posts were edited but your code wasnt, and you know it. No problem about help.
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Gishank » Sun Feb 19, 06 4:14 pm

...
OK I "STOLE" IT!!!
Also the code didn't work.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby MainMan » Sun Feb 19, 06 4:18 pm

In what way? Does it compile? If yes, did you add it to the map?
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Gishank » Sun Feb 19, 06 4:24 pm

No it dosn't compile.

oops it does lol
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby MainMan » Sun Feb 19, 06 4:25 pm

:)
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Gishank » Sun Feb 19, 06 4:34 pm

Too bad everymod i make i can't distribute or host lol.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby MainMan » Sun Feb 19, 06 4:43 pm

why not?
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Siva » Sun Feb 19, 06 7:19 pm

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.
//..
User avatar
Siva
doesn't care about augmented people
 
Posts: 6757
Joined: Tue Dec 06, 05 4:56 pm

Postby Gishank » Sun Feb 19, 06 7:22 pm

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
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby MainMan » Sun Feb 19, 06 9:56 pm

.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!
<center>ty m7
</center>
User avatar
MainMan
<i>Tru' Playa' Fer Defs</i>
 
Posts: 4655
Joined: Sun Jun 05, 05 7:38 am
Location: London, UK

Postby Siva » Mon Feb 20, 06 10:38 am

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...
//..
User avatar
Siva
doesn't care about augmented people
 
Posts: 6757
Joined: Tue Dec 06, 05 4:56 pm

Postby Rödewijk » Mon Feb 20, 06 2:36 pm

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



mhuahahhahaa finally after 2 months :lol:
Rödewijk
Master
 
Posts: 1028
Joined: Tue Jun 28, 05 10:40 am

Postby Rödewijk » Mon Feb 20, 06 2:37 pm

.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
Rödewijk
Master
 
Posts: 1028
Joined: Tue Jun 28, 05 10:40 am

Postby Rödewijk » Mon Feb 20, 06 2:38 pm

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:
Rödewijk
Master
 
Posts: 1028
Joined: Tue Jun 28, 05 10:40 am

Postby Siva » Mon Feb 20, 06 3:08 pm

Wtf you mean triplepost lol
//..
User avatar
Siva
doesn't care about augmented people
 
Posts: 6757
Joined: Tue Dec 06, 05 4:56 pm

Postby Gishank » Mon Feb 20, 06 7:01 pm

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.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 38 guests