Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doPlazmaticWall(startA, startB, loops)
- {
- D = distance(startA, startB);
- pointe = maps\mp\gametypes\_rank::roundUp(D/13);
- CX = startA[0] - startB[0];
- CY = startA[1] - startB[1];
- CZ = startA[2] - startB[2];
- XA = CX/pointe;
- YA = CY/pointe;
- CXY = distance((startA[0], startA[1], 0), (startB[0], startB[1], 0));
- Temp = VectorToAngles(startA - startB);
- BA = (Temp[2] + 90, Temp[1] + 90, Temp[0]);
- for(lup = loops; lup > 0; lup--)
- {
- for(b = pointe; b > -1; b--)
- {
- point = spawn( "script_model", (startB + ((XA, YA, 0) * b)) );
- point setModel("weapon_c4_bombsquad");
- point.angles = BA;
- point CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
- }
- startB += (0,0, 9);
- }
- wait 0.01;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement