aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/player_ghost.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/shared/player_ghost.lua')
-rw-r--r--gamemode/shared/player_ghost.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/gamemode/shared/player_ghost.lua b/gamemode/shared/player_ghost.lua
index ef61422..7cf11d0 100644
--- a/gamemode/shared/player_ghost.lua
+++ b/gamemode/shared/player_ghost.lua
@@ -54,6 +54,12 @@ else
local CanP = pl:CanPlaceStructure(Pos)
Pos = Pos.HitPos
+ if(pl:KeyDown(IN_SPEED)) then
+ Pos.x = Pos.x - (Pos.x%20)
+ Pos.y = Pos.y - (Pos.y%20)
+ Pos.z = Pos.z - (Pos.z%20)
+ Aim.yaw = Aim.yaw - (Aim.yaw%15)
+ end
for k,v in pairs(pl.GhostItem.Ghost) do
local OffPos = v.Pos*1