Guest User

h

a guest
Dec 27th, 2014
1,137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.56 KB | None | 0 0
  1. // chair
  2. function makestoel(px,py,pz,richting){
  3.  
  4.     // back
  5.     SetTexture(lobbytafel);
  6.     SetRenderState(ALPHA);
  7.     SetAlpha(255);
  8.     SetColor(100,100,100);
  9.     SetGraphicRect(448,384,512,512);
  10.     SetGraphicScale(2,2);
  11.     if (richting == "noord") { SetGraphicAngle(0,0,0); DrawGraphic3D(px,py,pz-64); }
  12.     if (richting == "oost") { SetGraphicAngle(0,90,0); DrawGraphic3D(px-64,py,pz); }
  13.     if (richting == "zuid") { SetGraphicAngle(0,0,0); DrawGraphic3D(px,py,pz+64); }
  14.     if (richting == "west") { SetGraphicAngle(0,90,0); DrawGraphic3D(px+64,py,pz); }   
  15.  
  16.     // seat
  17.     SetTexture(lobbytafel);
  18.     SetRenderState(ALPHA);
  19.     SetAlpha(255);
  20.     SetColor(100,100,100);
  21.     SetGraphicRect(448,448,512,512);
  22.     SetGraphicAngle(90,0,90);
  23.     SetGraphicScale(2,2);
  24.     DrawGraphic3D(px,py-128,pz);
  25.    
  26.     // leg right front
  27.     SetTexture(lobbytafel);
  28.     SetRenderState(ALPHA);
  29.     SetAlpha(255);
  30.     SetColor(100,100,100);
  31.     SetGraphicRect(448,0,512,256);
  32.     SetGraphicAngle(0,0,0);
  33.     SetGraphicScale(0.25,0.5);
  34.     DrawGraphic3D(px+48,py-192,pz+48);
  35.    
  36.     SetTexture(lobbytafel);
  37.     SetRenderState(ALPHA);
  38.     SetAlpha(255);
  39.     SetColor(100,100,100);
  40.     SetGraphicRect(448,0,512,256);
  41.     SetGraphicAngle(0,90,0);
  42.     SetGraphicScale(0.25,0.5);
  43.     DrawGraphic3D(px+48,py-192,pz+48);
  44.    
  45.     // leg right back
  46.     SetTexture(lobbytafel);
  47.     SetRenderState(ALPHA);
  48.     SetAlpha(255);
  49.     SetColor(100,100,100);
  50.     SetGraphicRect(448,0,512,256);
  51.     SetGraphicAngle(0,0,0);
  52.     SetGraphicScale(0.25,0.5);
  53.     DrawGraphic3D(px+48,py-192,pz-48);
  54.    
  55.     SetTexture(lobbytafel);
  56.     SetRenderState(ALPHA);
  57.     SetAlpha(255);
  58.     SetColor(100,100,100);
  59.     SetGraphicRect(448,0,512,256);
  60.     SetGraphicAngle(0,90,0);
  61.     SetGraphicScale(0.25,0.5);
  62.     DrawGraphic3D(px+48,py-192,pz-48);
  63.    
  64.     // leg left front
  65.     SetTexture(lobbytafel);
  66.     SetRenderState(ALPHA);
  67.     SetAlpha(255);
  68.     SetColor(100,100,100);
  69.     SetGraphicRect(448,0,512,256);
  70.     SetGraphicAngle(0,0,0);
  71.     SetGraphicScale(0.25,0.5);
  72.     DrawGraphic3D(px-48,py-192,pz+48);
  73.    
  74.     SetTexture(lobbytafel);
  75.     SetRenderState(ALPHA);
  76.     SetAlpha(255);
  77.     SetColor(100,100,100);
  78.     SetGraphicRect(448,0,512,256);
  79.     SetGraphicAngle(0,90,0);
  80.     SetGraphicScale(0.25,0.5);
  81.     DrawGraphic3D(px-48,py-192,pz+48);
  82.    
  83.     // leg left back
  84.     SetTexture(lobbytafel);
  85.     SetRenderState(ALPHA);
  86.     SetAlpha(255);
  87.     SetColor(100,100,100);
  88.     SetGraphicRect(448,0,512,256);
  89.     SetGraphicAngle(0,0,0);
  90.     SetGraphicScale(0.25,0.5);
  91.     DrawGraphic3D(px-48,py-192,pz-48);
  92.    
  93.     SetTexture(lobbytafel);
  94.     SetRenderState(ALPHA);
  95.     SetAlpha(255);
  96.     SetColor(100,100,100);
  97.     SetGraphicRect(448,0,512,256);
  98.     SetGraphicAngle(0,90,0);
  99.     SetGraphicScale(0.25,0.5);
  100.     DrawGraphic3D(px-48,py-192,pz-48);
  101. }
Advertisement
Add Comment
Please, Sign In to add comment