From 0d12dfc386c65d86231397fddb73e0df833233e6 Mon Sep 17 00:00:00 2001 From: Robert Zenz Date: Sun, 13 Sep 2015 14:46:19 +0200 Subject: [PATCH] The look direction of the players is now also randomized. --- mods/spawn_usher/spawnusher.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/spawn_usher/spawnusher.lua b/mods/spawn_usher/spawnusher.lua index 021a675..4d9ae46 100644 --- a/mods/spawn_usher/spawnusher.lua +++ b/mods/spawn_usher/spawnusher.lua @@ -188,6 +188,9 @@ function spawnusher.move_player(player) -- Awesome! Place the user here. player:setpos(pos) + -- Randomize the direction in which the player looks. + player:set_look_yaw(spawnusher.random:next(0, math.rad(360))) + -- Reset the physics override. player:set_physics_override(spawnusher.player_physics[player:get_player_name()]) -- Remove the saved one.