The look direction of the players is now also randomized.
parent
19086eb7b1
commit
0d12dfc386
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue