Page 1 of 1

Coveyer Belt

Posted: Wed Aug 11, 2004 1:47 am
by MasterMind
Does anyone have a script for a coveyer belt?? It seems mine doesnt work :(

belt

Posted: Wed Aug 11, 2004 7:38 am
by tltrude
Use a scrolling texture. Here is the shader for one.

Code: Select all

textures/belt/movingbelt 
{ 
   qer_keyword signs 
   surfaceparm metal
   surfaceparm nomarks 
   { 
      map textures/belt/movingbelt.tga 
      depthWrite 
      tcMod scroll 1 0 //adjust this line for direction and speed 
      tcMod scale 1 1 
   } 
   { 
      map $lightmap 
      rgbGen identity 
      blendFunc GL_DST_COLOR GL_ZERO 
      depthFunc equal 
   } 
} 
Needs a custom texture, but you can try some other image just to see it work.

Posted: Wed Aug 11, 2004 12:16 pm
by MasterMind
Thanks :D Now what I need is a script for the moving parts of the conveyer belt :)

Posted: Wed Aug 11, 2004 1:16 pm
by At0miC
This is an example of a loop for moving objects, is this what u mean? this is used in my new map (thnx tom):
targetname: part (what ever u want) and u need to make waypoints for the script_object.

Code: Select all

partloop: 

	wait 5 // what ever you want 

	$part time .001 // time from wayD to wayA
	$part moveto $wayA  
	$part waitmove

	$part show
	$part time 10.6  // the time that would be used to go from wayA to wayB
	$part moveto $wayB 
	$part waitmove

	$part hide
	$part time .001 // time from wayC to wayD
	$part moveto $wayC 
	$part waitmove
 
	$part time .001 // time from wayD to wayA
	$part moveto $wayD  
	$part waitmove
 
	goto partloop

end
waypoints C and D should be under your map, so you won't see the back trip of the object :)

Posted: Wed Aug 11, 2004 1:28 pm
by MasterMind
How would this work for all the parts? :?

Posted: Wed Aug 11, 2004 2:16 pm
by MasterMind
I found out what was wrong with my script, thanks anyway :D

Posted: Wed Aug 11, 2004 3:36 pm
by MasterMind
Does anyone have a complete script for a conveyer belt? There was a big error in mine :(

Posted: Wed Aug 11, 2004 7:24 pm
by MasterMind
How do I rotate the bars that support the conveyer belt??

I still need that complete script :)

rotate

Posted: Thu Aug 12, 2004 5:32 am
by tltrude
$myroller rotateX 360

Make a script_object roller and clone it. Then give them all the same targetname (myroller). That line can just go in prespawn, and they will rotate for the entire game. The number is degrees per second, I think.

If you are having poblems with your script, post it.

Posted: Thu Aug 12, 2004 1:29 pm
by MasterMind
Works Great :D Thanks :wink:

Posted: Sat Aug 14, 2004 10:32 pm
by G3mInI
http://www.decalattack.com/recyclebin/s ... ames.shtml


This is a page that has a little map you can download with a working conveyor belt. It has some other nice little add ons also.

Peace,
G3mInI

Posted: Sun Aug 15, 2004 7:08 pm
by MasterMind
Thanks :D :D :D

Posted: Mon Aug 16, 2004 12:03 am
by MasterMind
Which map has the conveyer belt??

Posted: Mon Aug 16, 2004 1:59 am
by lizardkid
jeez. look around the site wouldya?

misc-movingbelt.pk3...

:evil: