So the video shows a rough work in progress idea for a portal gun script ... it currently shows teleporting to random places on the map after you run through the portal generated by the gun, it could be made to teleport to a random pick from a known list of exit points, but I quite like the completely random idea (I'm also working on a procedural random placement of enemies script - which is starting to work OK to add a bit more of that "different play each time run same level" twist).
One problem I've got for the random placement is that I can't think of a way to pre-determine the terrain height at an X,Z co-ordinate - so I'm having to drop the player in from a large height to stop spawning inside hills. Anyone any better ideas or would this need an engine change?
The other issue (for the portal gun itself) is that I can't determine within lua which weapon the player is using - am I missing something obvious? I can tell which was last picked-up and all weapons in the collection, but not the one that is actually in use.
Oh - and thanks to Cosmic Prophet and Unfamilia for the steampunk weapons in the FPSC community pack (one of which is seen in the video as the portal gun).