Page 1 of 1

hmm...

PostPosted: Sat Aug 19, 06 3:55 pm
by ICE
Hey anybody know the script for a weapon so when u activate it changes the player mesh to something else. :shock:

PostPosted: Sat Aug 19, 06 5:59 pm
by Dae
What do you want to make?

PostPosted: Sat Aug 19, 06 7:08 pm
by ICE
erm something similiar to some of the funline mods where u activate a different skin.

PostPosted: Sat Aug 19, 06 7:11 pm
by Dae
Code: Select all
//================================================================================
// HackerClo.
//================================================================================
class HackerClo extends DeusExPickup;

state Activated extends Activated
{
   function Activate ()
   {
   }
   
   function BeginState ()
   {
      local DeusExPlayer Player;
   
      Super.BeginState();
      Player=DeusExPlayer(Owner);
      if ( Player != None )
      {
         Player.Mesh=LodMesh'mp_jumpsuit';
         Player.MultiSkins[1]=Texture'AlexJacobsonTex2';
         Player.MultiSkins[2]=Texture'AlexJacobsonTex1';
      }
      UseOnce();
   }
   
Begin:
}

defaultproperties
{
    maxCopies=10
    bCanHaveMultipleCopies=True
    bActivatable=True
    ItemName="Real hacker's Clothing"
    ItemArticle="the"
    PlayerViewOffset=(X=30.00, Y=0.00, Z=-12.00)
    PlayerViewMesh=LodMesh'DeusExDeco.BoxSmall'
    PickupViewMesh=LodMesh'DeusExDeco.BoxSmall'
    ThirdPersonMesh=LodMesh'DeusExDeco.BoxSmall'
    LandSound=Sound'DeusExSounds.Generic.PaperHit2'
    Icon=Texture'DeusExUI.Icons.ChargedIconArmorAdaptive'
    largeIcon=Texture'DeusExUI.Icons.LargeIconArmorAdaptive'
    largeIconWidth=35
    largeIconHeight=49
    Description="Label: FunLine Industries, [A]lliance group, dxalpha.com"
    beltDescription="HACKERS CLOTHING"
    Skin=Texture'Skins.clothesskin'
    Mesh=LodMesh'DeusExDeco.BoxSmall'
    CollisionRadius=13.00
    CollisionHeight=5.18
    Mass=10.00
    Buoyancy=30.00
}

PostPosted: Sat Aug 19, 06 7:35 pm
by Gishank
I think he might want coding which changes the entire clothes, not just the legs and torso.

PostPosted: Sat Aug 19, 06 7:38 pm
by Dae
Code: Select all
Player.MultiSkins[x]

x varies from 0-8 :)

PostPosted: Sun Aug 20, 06 1:21 pm
by MainMan
~[A]Daedalus~ wrote:
Code: Select all
Player.MultiSkins[x]

x varies from 0-8 :)

0 - 7 :P

PostPosted: Sun Aug 20, 06 9:59 pm
by Cozmo
Can you use any variable instead of multiskins, like fatness or drawscale etc..?