Advertisement
4FunPlayin

Plasmatic Wall

Oct 4th, 2011
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. doPlazmaticWall(startA, startB, loops)
  2. {
  3. D = distance(startA, startB);
  4. pointe = maps\mp\gametypes\_rank::roundUp(D/13);
  5. CX = startA[0] - startB[0];
  6. CY = startA[1] - startB[1];
  7. CZ = startA[2] - startB[2];
  8. XA = CX/pointe;
  9. YA = CY/pointe;
  10. CXY = distance((startA[0], startA[1], 0), (startB[0], startB[1], 0));
  11. Temp = VectorToAngles(startA - startB);
  12. BA = (Temp[2] + 90, Temp[1] + 90, Temp[0]);
  13. for(lup = loops; lup > 0; lup--)
  14. {
  15. for(b = pointe; b > -1; b--)
  16. {
  17. point = spawn( "script_model", (startB + ((XA, YA, 0) * b)) );
  18. point setModel("weapon_c4_bombsquad");
  19. point.angles = BA;
  20. point CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
  21. }
  22. startB += (0,0, 9);
  23. }
  24. wait 0.01;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement