Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // chair
- function makestoel(px,py,pz,richting){
- // back
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,384,512,512);
- SetGraphicScale(2,2);
- if (richting == "noord") { SetGraphicAngle(0,0,0); DrawGraphic3D(px,py,pz-64); }
- if (richting == "oost") { SetGraphicAngle(0,90,0); DrawGraphic3D(px-64,py,pz); }
- if (richting == "zuid") { SetGraphicAngle(0,0,0); DrawGraphic3D(px,py,pz+64); }
- if (richting == "west") { SetGraphicAngle(0,90,0); DrawGraphic3D(px+64,py,pz); }
- // seat
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,448,512,512);
- SetGraphicAngle(90,0,90);
- SetGraphicScale(2,2);
- DrawGraphic3D(px,py-128,pz);
- // leg right front
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,0,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px+48,py-192,pz+48);
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,90,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px+48,py-192,pz+48);
- // leg right back
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,0,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px+48,py-192,pz-48);
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,90,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px+48,py-192,pz-48);
- // leg left front
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,0,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px-48,py-192,pz+48);
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,90,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px-48,py-192,pz+48);
- // leg left back
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,0,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px-48,py-192,pz-48);
- SetTexture(lobbytafel);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetColor(100,100,100);
- SetGraphicRect(448,0,512,256);
- SetGraphicAngle(0,90,0);
- SetGraphicScale(0.25,0.5);
- DrawGraphic3D(px-48,py-192,pz-48);
- }
Advertisement
Add Comment
Please, Sign In to add comment