diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-04 13:26:04 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-04 13:26:04 -0500 |
| commit | 698b6eedf1d6d2806c77895775bcf8245ce02229 (patch) | |
| tree | dd408a93a59c2484cb97e3be95b9d26b14d30cda /gamemode/shared/player_ghost.lua | |
| parent | ad6b6494ace327d04c71fdc8f74e2b2f26033d6a (diff) | |
| download | wintersurvival2-698b6eedf1d6d2806c77895775bcf8245ce02229.tar.gz wintersurvival2-698b6eedf1d6d2806c77895775bcf8245ce02229.tar.bz2 wintersurvival2-698b6eedf1d6d2806c77895775bcf8245ce02229.zip | |
Added building snap
Diffstat (limited to 'gamemode/shared/player_ghost.lua')
| -rw-r--r-- | gamemode/shared/player_ghost.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gamemode/shared/player_ghost.lua b/gamemode/shared/player_ghost.lua index ef61422..d2eade8 100644 --- a/gamemode/shared/player_ghost.lua +++ b/gamemode/shared/player_ghost.lua @@ -54,6 +54,11 @@ 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)
+ end
for k,v in pairs(pl.GhostItem.Ghost) do
local OffPos = v.Pos*1
|
