Page 1 of 1

textures script

Posted: June 5th, 2011, 7:00 pm
by Goro92
someone can tell me how to change textures like at the end of monkeys_home?pls :mrgreen:

Re: textures script

Posted: June 5th, 2011, 9:44 pm
by Nekoneko
changing textures would be awesome, it might work with a fx changing decal,
but Im pretty sure its just moving textured brushes.

So just take some brush_models and keep moving them in an infinite loop

Re: textures script

Posted: June 6th, 2011, 3:46 am
by megazor
it would be better to have just one brushmodel made out of multiple frame-brushes.

Re: textures script

Posted: June 6th, 2011, 1:45 pm
by Nekoneko
Could you explain that?
Now I'm interested :P

Re: textures script

Posted: June 6th, 2011, 2:44 pm
by Goro92
Nekoneko wrote:Could you explain that?
Now I'm interested :P
Agree :D

Re: textures script

Posted: June 6th, 2011, 5:30 pm
by Oi!mel
i used brushes with different textures.

Code: Select all

texture_switch()
{
  brush_1 = getent("brush_1",targetname");
  brush_2 = getent("brush_2",targetname");

  while(1)
  {
      brush_1 hide();
      brush_2 show();

      wait 5;

      brush_1 show();
      brush_2 hide();

      wait 5;
  }
}

Re: textures script

Posted: June 6th, 2011, 7:59 pm
by Goro92
Oi!mel wrote:i used brushes with different textures.

Code: Select all

texture_switch()
{
  brush_1 = getent("brush_1",targetname");
  brush_2 = getent("brush_2",targetname");

  while(1)
  {
      brush_1 hide();
      brush_2 show();

      wait 5;

      brush_1 show();
      brush_2 hide();

      wait 5;
  }
}
oh my god u pro
ah and good job for monkeys home...for me the best map ever done

Re: textures script

Posted: June 7th, 2011, 12:48 am
by megazor
that way is good but i had 200 frames for my movie, so having a single brushmodel was the best choice.

i wrote a post a year ago, read it through:

http://codjumper.com/forums/viewtopic.p ... 69#p125669

Re: textures script

Posted: June 7th, 2011, 1:39 pm
by Goro92
megazor wrote:that way is good but i had 200 frames for my movie, so having a single brushmodel was the best choice.

i wrote a post a year ago, read it through:

http://codjumper.com/forums/viewtopic.p ... 69#p125669
thx megazor but i used oimel's code...i think it's easier than ur(i'm little noob with with script)

:D