Thread: New Ramps

Results 1 to 4 of 4
  1. #1
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6

    Question New Ramps

    I was trying to create ramps that basically stacked cps without tinting em. so u would need to jump from carepackage to carepackage to get up. The problem is that i couldnt get rid of the angle . Heres the code:
    Code:
    CreateLadders(top, bottom)
    {
        D = Distance(top, bottom);
        blocks = roundUp(D/30);
        CX = top[0] - bottom[0];
        CY = top[1] - bottom[1];
        CZ = top[2] - bottom[2];
        XA = CX/blocks;
        YA = CY/blocks;
        ZA = CZ/blocks;
        CXY = Distance((top[0], top[1], 0), (bottom[0], bottom[1], 0));
        Temp = VectorToAngles(top - bottom);
        BA = (Temp[2], Temp[1] + 90, 20);
        for(b = 0; b < blocks; b++){
            block = spawn("script_model", (bottom + ((XA, YA, ZA) * b)));
            block setModel("com_plasticcase_friendly");
            block.angles = BA;
            block Solid();
            block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
            wait 0.01;
        }
        block = spawn("script_model", (bottom + ((XA, YA, ZA) * blocks) - (0, 0, 5)));
        block setModel("com_plasticcase_friendly");
        block.angles = (BA[0] , BA[1] - 30, 0);
        block Solid();
        block CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
        wait 0.01;
    }
    Any advice ? I dont really understand the structure of the code which is why i fail. I just took it from Quarantine Chaos Mapedit.
    Last edited by kerocx; 09-13-2010 at 02:52 AM.

  2. #2
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6
    Sry for double post but somehow its the only way to get an answer XD

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,309
    My Mood
    Breezy
    Why not use CreateWall instead?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  4. #4
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6
    i dont want a wall ... i want stairs. So u need to jumpe from cp to cp to get up. But i still want to be able to just give the buttom coordinate and the top one to get a completed staircase. U understand what i mean ?

Similar Threads

  1. Happy New Years err Dave BDay!
    By Dave84311 in forum News & Announcements
    Replies: 12
    Last Post: 01-30-2012, 07:48 AM
  2. Happy New Year.
    By Flawless in forum General
    Replies: 29
    Last Post: 11-26-2009, 02:52 AM
  3. My New Years Gift.
    By Flawless in forum Spammers Corner
    Replies: 193
    Last Post: 10-16-2009, 06:01 PM
  4. New Years!
    By arunforce in forum General
    Replies: 8
    Last Post: 08-26-2008, 12:56 AM
  5. My new signature
    By arunforce in forum Art & Graphic Design
    Replies: 5
    Last Post: 01-10-2006, 04:41 PM