aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared
diff options
context:
space:
mode:
authorAlexander Pickering <Apickx@cogarr.org>2016-01-08 00:31:35 -0500
committerAlexander Pickering <Apickx@cogarr.org>2016-01-08 00:31:35 -0500
commita4d3a0f6509ff0b1f1811a9e34f55526b01a3db6 (patch)
treebfd40c00fa4547982cb08a54d9bdd7a540d3e187 /gamemode/shared
parent790e96ffa5cb5e9eb3c44f6ede09612bafda2239 (diff)
parent02ffa95e931d0a1968593da29b93bedcfc280799 (diff)
downloadwintersurvival2-a4d3a0f6509ff0b1f1811a9e34f55526b01a3db6.tar.gz
wintersurvival2-a4d3a0f6509ff0b1f1811a9e34f55526b01a3db6.tar.bz2
wintersurvival2-a4d3a0f6509ff0b1f1811a9e34f55526b01a3db6.zip
Updated queue to ai overhaul
Diffstat (limited to 'gamemode/shared')
-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