Results 1 to 3 of 3

Thread: would this work

  1. #1
    Member *LimJ*CREATURE's Avatar
    Join Date
    Jun 2012
    Location
    no where
    Posts
    190
    Points
    441
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    no where
    Posts
    190
    Points
    441
    Gamer IDs

    PSN ID: LimJMONSTER

    Default would this work

    i found this on a diff website looking for new things i found this and wanted to know if it would work
    [SIZE=12px]

    doMapElevator()//add as a function in a menu
    {
    orig = self getOrigin();
    wait 0.05;
    level.bunkers[1] = createdreen( ( orig +(0, 0, 1000) ), ( 0, 90, 0 ), 1 );
    level.bunkers[2] = createdreen( ( orig +(0, 35, 1000) ), ( 0, 90, 0 ), 2 );
    level.bunkers[3] = createdreen( ( orig +(0, 70, 1035) ), ( 0, 90, 0 ), 3 );
    level.bunkers[4] = createdreen( ( orig +(0, -35, 1035) ), ( 0, 90, 0 ), 4 );
    self thread doElevator();
    }

    Movingdown()
    {
    level.crateD[1] moveTo( ( orig +(0, 0, 20) ), 5 );
    level.crateD[2] moveTo( ( orig +(0, 35, 20) ), 5 );
    level.crateD[3] moveTo( ( orig +(0, 70, 55) ), 5 );
    level.crateD[4] moveTo( ( orig +(0, -35, 55) ), 5 );
    }



    Goingup()
    {
    level.crateD[1] moveTo( ( orig +(0, 0, 1000) ), 6 );
    level.crateD[2] moveTo( ( orig +(0, 35, 1000) ), 6 );
    level.crateD[3] moveTo( ( orig +(0, 70, 1035) ), 6 );
    level.crateD[4] moveTo( ( orig +(0, -35, 1035) ), 6 );
    }

    createdreen( pos, angle, num ) // Crate for Moving Doors
    {
    level.crateD[num] = spawn( "script_model", pos );
    level.crateD[num] setModel( "mp_supplydrop_ally" );
    level.crateD[num].angles = angle;
    }

    doElevator()
    {
    self.leetohyeah = 1;
    self endon("death");
    for (;;) {
    if (self.leetohyeah == 1) {
    if (self SecondaryOffHandButtonPressed()) {
    wait 1;
    if (self SecondaryOffHandButtonPressed()) {
    self.leetohyeah = 0;
    self thread Movingdown();
    wait 5.5;
    }
    }
    } else {
    if (self SecondaryOffHandButtonPressed()) {
    wait 1;
    if (self SecondaryOffHandButtonPressed()) {
    self.leetohyeah = 1;
    self thread Goingup();
    wait 5;
    }
    }
    }
    wait 0.01;
    }
    }
    [/SIZE]

    0 Not allowed! Not allowed!
    *LimJ*MONSTER/CREATURE

  2. #2
    silenthitman7
    Zombie Modder
    BaTMaN's Avatar
    Join Date
    Feb 2012
    Posts
    235
    Points
    520
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    235
    Points
    520

    Default

    It looks okay, but I would suggest you add wait times between the moves, also add orig = self getOrigin();
    to the Goingup and MovingDown thread because "orig" is undefined in those two threads, other than that, it might work...

    Example:
    Code:
    Movingdown()
    {
    	orig = self getOrigin();
        level.crateD[1] moveTo( ( orig +(0, 0, 20) ), 5 );
    	wait 5;
        level.crateD[2] moveTo( ( orig +(0, 35, 20) ), 5 );
    	wait 5;
        level.crateD[3] moveTo( ( orig +(0, 70, 55) ), 5 );
    	wait 5;
        level.crateD[4] moveTo( ( orig +(0, -35, 55) ), 5 );
    }
     
     
     
    Goingup()
    {
    	orig = self getOrigin();
        level.crateD[1] moveTo( ( orig +(0, 0, 1000) ), 6 );
    	wait 6;
        level.crateD[2] moveTo( ( orig +(0, 35, 1000) ), 6 );
    	wait 6;
        level.crateD[3] moveTo( ( orig +(0, 70, 1035) ), 6 );
    	wait 6;
        level.crateD[4] moveTo( ( orig +(0, -35, 1035) ), 6 );
    }

    0 Not allowed! Not allowed!
    Last edited by BaTMaN; 07-24-2012 at 07:16 PM.

  3. #3
    Member *LimJ*CREATURE's Avatar
    Join Date
    Jun 2012
    Location
    no where
    Posts
    190
    Points
    441
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    no where
    Posts
    190
    Points
    441
    Gamer IDs

    PSN ID: LimJMONSTER

    Default

    so how would i add it to a mod menu like rewinds would it be like this
    self addoption elavtor spawn elavtor like that

    0 Not allowed! Not allowed!
    *LimJ*MONSTER/CREATURE

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:55 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.