Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do i change...

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
[B@D]Thug



Joined: 07 Oct 2005
Posts: 315

PostPosted: Sun Mar 15, 2009 11:40 pm    Post subject: How do i change... Reply with quote

When i am making a weapon.. i want it to change textures animationly. Like on Aura Weapons... some weapons change textures in a sequence and a fast speed. Is there anyone that can help me with this. Because i am actually coming out with a huge pack of items, weapons, and monsters for unreal. In other words, my own server. It might be 4 to 5 months or more befor EVERYTHING is done with. I have already completed some pretty neat weapons and items so far. I hope more will be in stock later. So i am just wondering about some basic crap to make the weapons look interesting.
_________________
Improvements along the way friends and foes.

WebSite:www.freewebs.com/agressivetoys
Back to top
View user's profile Send private message AIM Address MSN Messenger
srbassalot



Joined: 16 Sep 2004
Posts: 229
Location: Earth

PostPosted: Mon Mar 16, 2009 12:31 pm    Post subject: Reply with quote

" i want it to change textures animationly. Like on Aura Weapons... some weapons change textures in a sequence and a fast speed"

Are you referring to weapons like the aurastinger Thug?
I'm asking because I have created similar effects to that but want to be sure what your talking about...

If that's the case those are not really animated they are merely switched back and forth between different textures, here's how you use those>>

bRandomFrame=True
Texture=FireTexture'UnrealShare.WEffect1.WaterEffect1' "whatever Texture"
Mesh=LodMesh'UnrealShare.StingerPickup' "your mesh of course"
bMeshEnviroMap=True
MultiSkins(0)=FireTexture'UnrealShare.Whatever'
MultiSkins(1)=FireTexture'UnrealShare.Whatever'
MultiSkins(2)=FireTexture'UnrealShare.Whatever'
MultiSkins(3)=FireTexture'UnrealShare.Whatever'
MultiSkins(4)=FireTexture'UnrealShare.Whatever'
MultiSkins(5)=FireTexture'UnrealI.Whatever'
MultiSkins(6)=FireTexture'UnrealShare.Whatever'
MultiSkins(7)=FireTexture'UnrealI.Whatever'

Using the MultiSkins this way will change the texture back and forth depending on what skins you have in there..
Hope this helps>>>

Bass
Back to top
View user's profile Send private message
mental-HunteR



Joined: 05 May 2006
Posts: 363
Location: The Netherlands

PostPosted: Mon Mar 16, 2009 5:08 pm    Post subject: Reply with quote

or try this:

Code:


var float Count;
var() texture randskins[6]; //This is the ammount of diffferent skins afcaurse.


simulated function Tick(float DeltaTime)
{

   Count += DeltaTime;
   if (Count>0.2) //<-- This is the speed.
   {
      skin=randskins[rand(6)];
      multiskins[0]=randskins[rand(6)];
      multiskins[1]=randskins[rand(6)];
      multiskins[2]=randskins[rand(6)];
      multiskins[3]=randskins[rand(6)];
      multiskins[4]=randskins[rand(6)];
      multiskins[5]=randskins[rand(6)];
      multiskins[6]=randskins[rand(6)];
      multiskins[7]=randskins[rand(6)];
      texture=randskins[rand(6)];
   
      Count=0.0;
   }
}


And for Meshes:

Code:

var() Mesh randMeshes[6]; //This is the ammount of diffferent meshes afcaurse.

simulated function Tick(float DeltaTime)
{

   Count += DeltaTime;
   if (Count>0.2) //<-- This is the speed
   {
      Mesh=randMeshes[rand(6)];

      b = Spawn(class'MercFlare');
      b.RemoteRole = ROLE_None;      
      Count=0.0;
   }
}

_________________
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
srbassalot



Joined: 16 Sep 2004
Posts: 229
Location: Earth

PostPosted: Mon Mar 16, 2009 6:21 pm    Post subject: Reply with quote

Damn good idea Mental but he needs to keep in mind it won't work if he's using tick elsewhere in the same script :-P

Cheers,
Bass
Back to top
View user's profile Send private message
mental-HunteR



Joined: 05 May 2006
Posts: 363
Location: The Netherlands

PostPosted: Mon Mar 16, 2009 11:24 pm    Post subject: Reply with quote

You can mix it, or eventually put it in a Timer.
_________________
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
gizzy



Joined: 23 Apr 2006
Posts: 37

PostPosted: Wed Apr 01, 2009 1:09 pm    Post subject: Reply with quote

srbassalot wrote:


bRandomFrame=True
Texture=FireTexture'UnrealShare.WEffect1.WaterEffect1' "whatever Texture"
Mesh=LodMesh'UnrealShare.StingerPickup' "your mesh of course"
bMeshEnviroMap=True
MultiSkins(0)=FireTexture'UnrealShare.Whatever'
MultiSkins(1)=FireTexture'UnrealShare.Whatever'
MultiSkins(2)=FireTexture'UnrealShare.Whatever'
MultiSkins(3)=FireTexture'UnrealShare.Whatever'
MultiSkins(4)=FireTexture'UnrealShare.Whatever'
MultiSkins(5)=FireTexture'UnrealI.Whatever'
MultiSkins(6)=FireTexture'UnrealShare.Whatever'
MultiSkins(7)=FireTexture'UnrealI.Whatever'




This didn't work for me :/ I might try the code method Mental suggested instead
Back to top
View user's profile Send private message Send e-mail MSN Messenger
mental-HunteR



Joined: 05 May 2006
Posts: 363
Location: The Netherlands

PostPosted: Wed Apr 01, 2009 11:06 pm    Post subject: Reply with quote

gizzy wrote:
srbassalot wrote:


bRandomFrame=True
Texture=FireTexture'UnrealShare.WEffect1.WaterEffect1' "whatever Texture"
Mesh=LodMesh'UnrealShare.StingerPickup' "your mesh of course"
bMeshEnviroMap=True
MultiSkins(0)=FireTexture'UnrealShare.Whatever'
MultiSkins(1)=FireTexture'UnrealShare.Whatever'
MultiSkins(2)=FireTexture'UnrealShare.Whatever'
MultiSkins(3)=FireTexture'UnrealShare.Whatever'
MultiSkins(4)=FireTexture'UnrealShare.Whatever'
MultiSkins(5)=FireTexture'UnrealI.Whatever'
MultiSkins(6)=FireTexture'UnrealShare.Whatever'
MultiSkins(7)=FireTexture'UnrealI.Whatever'




This didn't work for me :/ I might try the code method Mental suggested instead


It's not just suggested, it's the only one i know so far XD
_________________
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
srbassalot



Joined: 16 Sep 2004
Posts: 229
Location: Earth

PostPosted: Thu Apr 02, 2009 12:33 pm    Post subject: Reply with quote

I didn't just post for the fun of it...it does work, I have used it before but now can't find my reference for it. Use Mental's it will work for you but I suggest you set "Style=STY_Translucent" otherwise you may not like the effect.

Have fun....Bass
Back to top
View user's profile Send private message
mental-HunteR



Joined: 05 May 2006
Posts: 363
Location: The Netherlands

PostPosted: Thu Apr 02, 2009 2:41 pm    Post subject: Reply with quote

Or random styles, i tryd it once, but on some things it looks retarded, but anyways, my code looked like this:

Code:

function Tick(float DeltaTime)
{
    local float decision;   
   Count += DeltaTime;
   if (Count>0.2)
   {
      skin=randskins[rand(6)];
      multiskins[0]=randskins[rand(6)];
      multiskins[1]=randskins[rand(6)];
      multiskins[2]=randskins[rand(6)];
      multiskins[3]=randskins[rand(6)];
      multiskins[4]=randskins[rand(6)];
      multiskins[5]=randskins[rand(6)];
      multiskins[6]=randskins[rand(6)];
      multiskins[7]=randskins[rand(6)];
      texture=randskins[rand(6)];
      Count=0.0;
      
      decision = FRand();   
      if (decision < 0.2)
      Style=STY_None;   
      else if (decision < 0.4)   
      Style=STY_Normal;
      else if (decision < 0.6)       
      Style=STY_Masked;   
      else if (decision < 0.8)       
      Style=STY_Translucent;     
     else
       Style=STY_Modulated;         
   }
}

_________________
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group