[REQUEST] /me Mutator

The forum for discussions that don't fall into any of release topics below.

Moderator: Forum Guards

[REQUEST] /me Mutator

Postby Dex » Fri Jan 18, 08 10:52 pm

Could someone make a mutator, where if you type in:

Code: Select all
mutate me slaps himself around his face.


and your name in-game is for example... TheGod

it would show off like this:

Code: Select all
TheGod slaps himself around his face.




...Could someone make it?


Alex, you are so cool at coding... :roll:
User avatar
Dex
Forum Hero
 
Posts: 2696
Joined: Sun Oct 28, 07 6:17 pm
Location: Bosnian Fellaorgy Clay

Postby Alex » Fri Jan 18, 08 11:01 pm

Code: Select all
//=============================================================================
// MeMutator Made by Alex ~ http://www.dxalpha.com/
//=============================================================================
class MeMutator extends Mutator;

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

function Mutate (String S, PlayerPawn Player)
{
  local DeusExPlayer      _Player;
  local string         _Message;

  _Player = DeusExPlayer(Player);

  if(_Player != None)
  {
    if(Left(S,2) ~= "me" && (Left(S,3) ~= "me " || Left(S,3) ~= "me"))
    {
      _Message = Right(S,Len(S)-3);
      if(Len(_Message) > 0)
      {
        BroadcastMessage(_Player.PlayerReplicationInfo.PlayerName$"("$_Player.PlayerReplicationInfo.PlayerID$")"@_Message);
        Log(_Player.PlayerReplicationInfo.PlayerName$"("$_Player.PlayerReplicationInfo.PlayerID$")"@_Message);
      }
      else
      {
        _Player.ClientMessage("|p3<MiniMachina> Usage: Mutate Me [Action]");
      }
    }   
  }   
  Super.Mutate(S,Player);
}

defaultproperties
{
  bHidden=True
}


Should work. Haven't tested.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby Dex » Fri Jan 18, 08 11:22 pm

Okay. I'm gonna test it.
User avatar
Dex
Forum Hero
 
Posts: 2696
Joined: Sun Oct 28, 07 6:17 pm
Location: Bosnian Fellaorgy Clay

Postby Dex » Sat Jan 19, 08 12:21 am

========================
Image
========================

This shows up when I start up the server, it says LOADING... and then after 3 seconds it crashes and theCritical Error screen from above is seen.
User avatar
Dex
Forum Hero
 
Posts: 2696
Joined: Sun Oct 28, 07 6:17 pm
Location: Bosnian Fellaorgy Clay

Postby Dae » Sat Jan 19, 08 12:29 am

Install it as ServerActors=package.MeMutator in DeusEx.ini.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Dex » Sat Jan 19, 08 12:29 am

Dae[A] wrote:Install it as ServerActors=package.MeMutator in DeusEx.ini.


That's what I did, don't think I am stupid

BTW, I named the package MeMutator, so it's gonna be MeMutator.MeMutator
User avatar
Dex
Forum Hero
 
Posts: 2696
Joined: Sun Oct 28, 07 6:17 pm
Location: Bosnian Fellaorgy Clay

Postby Dex » Sat Jan 19, 08 12:32 am

Here it is.
Attachments
MeMutator.u
The compiled package.
(2.51 KiB) Downloaded 628 times
User avatar
Dex
Forum Hero
 
Posts: 2696
Joined: Sun Oct 28, 07 6:17 pm
Location: Bosnian Fellaorgy Clay

Postby SnakeEater » Fri Feb 15, 08 3:45 am

sheesh always needed one of those, don't need a chattering noise when it says what you did XD
The eye sore has been removed!

I really do think Deus Ex is the all-time best game ever made.
User avatar
SnakeEater
Poster
 
Posts: 193
Joined: Wed Sep 12, 07 2:26 am
Location: Inside the void of your hard drive space

Postby VodunLoas » Fri Feb 15, 08 12:06 pm

I've had a problem with a class name being the same as the package once (I believe), maybe try changing one of them.
User avatar
VodunLoas
Alpha
 
Posts: 677
Joined: Thu Apr 22, 04 7:16 am

Postby ynnaD » Fri Feb 15, 08 1:06 pm

Dae[A] wrote:Install it as ServerActors=package.MeMutator in DeusEx.ini

That's what I did, don't think I am stupid



way to show ur appreciation there
Last edited by ynnaD on Fri Feb 15, 08 1:07 pm, edited 2 times in total.
~þsÿçhø~ wrote:My laptops screen is broke, how can i fix it?

James wrote:THROW DARK SOULS AT IT
User avatar
ynnaD
Forum Legend
 
Posts: 6461
Joined: Thu Nov 11, 04 8:43 pm
Location: Ireland

Postby Baleout » Fri Feb 15, 08 4:12 pm

¤[ß2S]¤0o7 wrote:
Dae[A] wrote:Install it as ServerActors=package.MeMutator in DeusEx.ini

That's what I did, don't think I am stupid



way to show ur appreciation there


He didn't appreciate it; he was only annoyed that Dae thought he wouldn't have done that.
User avatar
Baleout
Master
 
Posts: 1606
Joined: Mon Feb 19, 07 1:28 pm
Location: Greater London

Postby SnakeEater » Fri Feb 15, 08 10:31 pm

wow XD
I almost tried making a mutator but it fails :P
Last edited by SnakeEater on Fri Feb 15, 08 10:32 pm, edited 1 time in total.
The eye sore has been removed!

I really do think Deus Ex is the all-time best game ever made.
User avatar
SnakeEater
Poster
 
Posts: 193
Joined: Wed Sep 12, 07 2:26 am
Location: Inside the void of your hard drive space


Return to Comments, questions, requests

Who is online

Users browsing this forum: No registered users and 4 guests