Results 1 to 8 of 8

Thread: Demonstration of K~Portal

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    That's quite clever. Well done!

    What does that use? GetEye() to place the portals where you look?

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Ty

    Yep, function is like:

    Code:
    lookAt(toIgnore)
    {
        player = self;
    
        originStart = player getEye() + (0,0,25);
        angles = player getPlayerAngles();
        forward = anglesToForward(angles);
    
        originEnd = originStart + std\math::vectorScale(forward, 1000000);
    
        trace = bullettrace(originStart, originEnd, false, toIgnore);
    
        if (trace["fraction"] == 1)
            return undefined;
    
        return trace;
    }
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •