The look direction of the players is now also randomized.

master
Robert Zenz 2015-09-13 14:46:19 +02:00
parent 19086eb7b1
commit 0d12dfc386
1 changed files with 3 additions and 0 deletions

View File

@ -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.