Results 1 to 10 of 16

Thread: Get angle of wall

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    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
    Uploaded my old portal mod: https://github.com/kungfooman/cod2_portal/

    Video:



    https://github.com/kungfooman/cod2_p...portal.gsc#L47
    Code:
    bluePortal.angles = utils\math::orientToNormal(newPos["normal"]+(0.01,0.01,0.01));
    Can't really remember why I added the 0.01, probably because wall vectors are mostly like 0,0,1 or 0,1,0 etc. and orientToNormal() didn't work with zero values.

    Edit: Server is testable here: /connect root.killtube.org:29900

    Server will run till root is restarted (aka screen session killed).
    Last edited by kung foo man; 26th October 2016 at 06:06. Reason: Add connect info
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    kubislav23 (30th October 2016)

Posting Permissions

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