Project X Forums



It is currently Fri Jun 22, 2018 2:48 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Cool "Panic Tower" and "Crazy RR" Script
PostPosted: Thu Oct 22, 2009 12:34 pm 
Offline
Betatester

Joined: Wed Oct 07, 2009 8:21 pm
Posts: 73
Location: my home
Cool Script for Panic Towers or Crazy Rope Races to make mines in all map.
Code:
procedure InitHooks;
begin
  RegisterHook('OnInit', ON_INIT);
end;
procedure OnInit;
var
  I,J, NColumns, NChecks : Integer;
  ColMine : TWPobj;
  LastCol : Boolean;
begin
  ColMine := MakeMine(0,0);   
  //temprorary mine for collision checking
  NColumns := MapX div 50;
  //50 - distance between mines by X
  NChecks := MapY div 4;
  // 4 - checking resolution
   LastCol := True;
  for i := 0 to NColumns do begin
    for j := 0 to NChecks do begin
      if ColMine.IsCollidesAt(i * 50, j * 4) <> nil then begin
        if not LastCol then begin
          LastCol := True;
          MakeMine(i * 50, (j-1) * 4);
        end;   
      end else LastCol := False;
    end;
  end;
end; 


Top
 Profile  
Reply with quote  
 Post subject: Re: Cool "Panic Tower" and "Crazy RR" Script
PostPosted: Thu Oct 22, 2009 12:45 pm 
Offline
PX Developer

Joined: Mon Aug 17, 2009 12:01 pm
Posts: 91
Lol, it's my script which i wrote some time ago :mrgreen:


Top
 Profile  
Reply with quote  
 Post subject: Re: Cool "Panic Tower" and "Crazy RR" Script
PostPosted: Thu Oct 22, 2009 12:46 pm 
Offline
Betatester

Joined: Wed Oct 07, 2009 8:21 pm
Posts: 73
Location: my home
Idk :mrgreen:

I didn't said it's my script


Top
 Profile  
Reply with quote  
 Post subject: Re: Cool "Panic Tower" and "Crazy RR" Script
PostPosted: Mon Nov 09, 2009 3:03 pm 
Offline
Betatester

Joined: Mon Nov 09, 2009 1:53 pm
Posts: 11
Location: Russia, Tuapse
Entuser wrote:
Lol, it's my script which i wrote some time ago :mrgreen:

Yep lol i remember u showed it to me =)

_________________
Image
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane