PDA

Просмотр полной версии : хренов бег


supernewbie
26.09.2010, 02:30
timer:=TTimer.Create(nil);
timer.OnTimer:=@Idet;
timer.interval:=10;
timer.enabled:=false;

procedure Idet(Sender: TObject);
begin
if (nextx>endx-10) and (nextx<endx+10) and (nexty>endy-10) and (nexty<endy+10) and (nextz>endz-10) and (nextz<endz+10) then
begin
timer.enabled:=false;
exit;
end;
nextx:=startx+Round(vx*offset);
nexty:=starty+Round(vy*offset);
nextz:=startz+Round(vz*offset);
x:=nextx;
y:=nexty;
z:=nextz;
offset:=offset+1;
end;

procedure MoveToLocation;
begin
if id=ReadD(2) then
begin
startx:=ReadD(18);
starty:=ReadD(22);
startz:=ReadD(26);
x:=startx;
y:=starty;
z:=startz;
endx:=ReadD(6);
endy:=ReadD(10);
endz:=ReadD(14);
dx:=endx-startx;
dy:=endy-starty;
dz:=endz-startz;
path:=sqrt((dx*dx)+(dy*dy)+(dz*dz));
time1:=(path / speed);
vx:=dx / time1;
vy:=dy / time1;
vz:=dz / time1;
vx:=vx / 100;
vy:=vy / 100;
vz:=vz / 100;
offset:=1;
timer.enabled:=true;
exit;
end;
end;

playOK
29.09.2010, 21:16
ЭТАШТО

supernewbie
29.09.2010, 21:36
ЭТАШТО
http://www.imglink.ru/pictures/29-09-10/0ca6a257b1a7675a7bf2309aa126bfb1.jpg

baton4eg
30.09.2010, 14:02
playOK, это хренов быдлокод судя по всему xD
Меня не банить ^_^

supernewbie
30.09.2010, 14:11
http://www.imglink.ru/pictures/30-09-10/1635c7bff9450ed409e20282730171ac.jpg

Anafema
30.09.2010, 14:51
http://www.promotinglinux.com/images/pages/linux/Linux-Babies-Angry.jpg
http://l.yimg.com/g/images/spaceball.gif
http://farm4.static.flickr.com/3352/3337523475_45fdd21b19.jpg
http://www.kevinstilley.com/wp-content/uploads/2008/11/anger.jpg

supernewbie
30.09.2010, 15:20
http://www.imglink.ru/pictures/30-09-10/073c30ea5013d44efff8b272b7d11918.jpg

baton4eg
30.09.2010, 15:35
http://s61.radikal.ru/i171/1009/8b/f88fb7ebd6ed.jpg (http://www.radikal.ru)

supernewbie
30.09.2010, 15:44
http://www.imglink.ru/pictures/30-09-10/11b723ea2cee65cb7666ca25e636d114.jpg

baton4eg
30.09.2010, 15:52
http://imglink.ru/pictures/30-09-10/90e8572ac7fc888a391a00110a2a226b.jpg (http://imglink.ru)

supernewbie
30.09.2010, 15:55
http://imglink.ru/pictures/29-09-10/cf84e476d8b6a1202cfa704a1f395da1.jpg

baton4eg
30.09.2010, 16:09
http://imglink.ru/pictures/30-09-10/222d659029d172ca4fba9fba8cb24021.jpg (http://imglink.ru)

Добавлено через 8 минут
http://imglink.ru/pictures/30-09-10/b5e63269b2ccef13c4e8c60e4869b0dd.jpg (http://imglink.ru)

supernewbie
30.09.2010, 16:22
http://www.imglink.ru/pictures/30-09-10/54267bf4e0581ab36bed6dbf725e400d.jpg