Coveyer Belt
Moderator: Moderators
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
Coveyer Belt
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.
belt
Use a scrolling texture. Here is the shader for one.
Needs a custom texture, but you can try some other image just to see it work.
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
}
}
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
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.
waypoints C and D should be under your map, so you won't see the back trip of the object 
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
Last edited by At0miC on Wed Aug 11, 2004 6:18 pm, edited 1 time in total.
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
rotate
$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.
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.
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
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
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
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
- MasterMind
- Major
- Posts: 316
- Joined: Thu Jul 15, 2004 12:10 am
