diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-07 21:30:10 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-07 21:30:10 -0500 |
| commit | 43a6f971730a8441b47a44008a023e5af8cdb91c (patch) | |
| tree | afa57b2b3f0740f96037431863962c15a865b26c /gamemode/shared/player_ghost.lua | |
| parent | 12e7fff3321b4f0c827ddd3bb8dca7f8a58c6fc2 (diff) | |
| parent | 2de3779c361160a956f3da2c8e8a97b6af5d0783 (diff) | |
| download | wintersurvival2-43a6f971730a8441b47a44008a023e5af8cdb91c.tar.gz wintersurvival2-43a6f971730a8441b47a44008a023e5af8cdb91c.tar.bz2 wintersurvival2-43a6f971730a8441b47a44008a023e5af8cdb91c.zip | |
Fix for research table also snapping
Diffstat (limited to 'gamemode/shared/player_ghost.lua')
| -rw-r--r-- | gamemode/shared/player_ghost.lua | 6 |
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
|
