Announcement

Collapse
No announcement yet.

UT Mutator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UT Mutator

    I have made a mutator for UT. When i go into the game all is good. When other connect to my network game they show no gun or crosshairs but can shoot. here is my mutator code. Thanks.

    class RapidShock expands Arena;


    function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
    {
    if ( Other.IsA('TournamentHealth') || Other.IsA('UT_Shieldbelt')
    || Other.IsA('Armor2') || Other.IsA('ThighPads')
    || Other.IsA('UT_Invisibility') || Other.IsA('UDamage') )
    return false;

    return Super.CheckReplacement( Other, bSuperRelevant );

    /*
    if ( Other.IsA('Weapon') )
    if ((WeaponString != "") && !Other.IsA(WeaponName))
    return false;

    if ( Other.IsA('Ammo') )
    {
    if ((AmmoString != "") && !Other.IsA(AmmoName))
    ReplaceWith(Other, AmmoString);
    return false;
    }

    bSuperRelevant = 0;
    return true;
    */
    }


    defaultproperties
    {
    WeaponName=SuperShockRifle
    DefaultWeapon=class'RapidFireShock.SSRifle'
    AmmoName=SuperShockCore
    }

    #2
    hmm....for some reason the defaultproperties looks kind of interesting....

    This is an Extention of the arena mutator...right?
    Also there might be some confusion with your custom weapon and weapon name and if your weapon has a 3rd person model and such...

    Comment


      #3
      Here is the SSRifle:



      class SSRifle extends SuperShockRifle;

      simulated function PlayFiring()
      {
      PlayOwnedSound(FireSound, SLOT_None, Pawn(Owner).SoundDampening*4.0);
      LoopAnim('Fire1',1.0,0.05);
      }

      simulated function PlayAltFiring()
      {
      PlayOwnedSound(FireSound, SLOT_None, Pawn(Owner).SoundDampening*4.0);
      LoopAnim('Fire1',12.5,0.05);
      }

      defaultproperties
      {
      InstFlash=1
      InstFog=(X=0.00000,Y=800.00000,Z=0.00000)
      ItemName="Enhanced Shock Rifle"
      AmmoName=Class'Botpack.SuperShockCore'
      aimerror=1000
      PlayerViewMesh=Mesh'Botpack.sshockm'
      ThirdPersonMesh=Mesh'Botpack.SASMD2hand'
      hitdamage=5000
      DeathMessage="%k shoved his %w up inside %o."
      PickupMessage="You got the enhanced Shock Rifle."

      }


      Any ideas?

      Comment


        #4
        yes is it an extension of the arena mutator.

        Comment


          #5
          the only thing i can see why third veiw isn't working is
          is the thirdplayermodel a default one?(shipped with game or self made)

          i can't find any reason why it not showing....maybe culldistance?

          try creating a pickup base for it and using the gun from that for a test, it could be something about the area mutator being confused by the different names

          WeaponName=SuperShockRifle <---
          DefaultWeapon=class'RapidFireShock.SSRifle' <---

          i have never played the original ut but this is the best advice i can give...

          Comment


            #6
            Thanks for the help but still no dice. Not sure what i am doing wrong here.

            Comment


              #7
              get a friend and have him join a private server with you, if it dont work (my guess) have your friend install the mod on his/her computer (not via server) and try again

              Comment


                #8
                Network game? Are all the files on the server (any other packages you call, textures, meshes, etc.)?

                Comment


                  #9
                  yea i was thinking that since i couldn't find anything wrong with the code

                  see if you get the same effects from someone who already downloaded it hehe

                  Comment


                    #10
                    Maybe you forgot to add your mod to "ServerPackages" before you launch your network server? (UnrealTournament.ini > "[Core.Engine]" > "ServerPackages=RapidFireShock").

                    Comment


                      #11
                      so did that fix it?

                      Comment


                        #12
                        Thank you all for your help, but i have not been able to try any of the ideas. As soon as i do i will let you know. You are right i did not add it in to the server info in the ini. I will try that.

                        Thank you

                        Comment


                          #13
                          That Fixed it. but it was under [Engine.GameEngine] i added ServerPackages=RapidFireShock.

                          Thank you all for your help. You have no idea what a releif it is to have it work.


                          Thank you all again.

                          Comment

                          Working...
                          X