Coveyer Belt

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Coveyer Belt

Post by MasterMind »

Does anyone have a script for a coveyer belt?? It seems mine doesnt work :(
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

belt

Post 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.
Tom Trude,

Image
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

Thanks :D Now what I need is a script for the moving parts of the conveyer belt :)
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post 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 :)
Last edited by At0miC on Wed Aug 11, 2004 6:18 pm, edited 1 time in total.
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

How would this work for all the parts? :?
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

I found out what was wrong with my script, thanks anyway :D
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

Does anyone have a complete script for a conveyer belt? There was a big error in mine :(
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

How do I rotate the bars that support the conveyer belt??

I still need that complete script :)
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

rotate

Post 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.
Tom Trude,

Image
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

Works Great :D Thanks :wink:
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
G3mInI
First Lieutenant
Posts: 187
Joined: Sat Jun 29, 2002 3:49 am

Post 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
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

Thanks :D :D :D
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

Which map has the conveyer belt??
Jesus built us a bridge, with 2 boards and 3 nails.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

jeez. look around the site wouldya?

misc-movingbelt.pk3...

:evil:
Post Reply