diff options
Diffstat (limited to 'gamemode/itemsystem/items/shack.lua')
| -rw-r--r-- | gamemode/itemsystem/items/shack.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gamemode/itemsystem/items/shack.lua b/gamemode/itemsystem/items/shack.lua index f66fe38..96790d6 100644 --- a/gamemode/itemsystem/items/shack.lua +++ b/gamemode/itemsystem/items/shack.lua @@ -1,7 +1,7 @@ ITEM.Name = "Shack"
ITEM.Class = "structure"
-ITEM.Desc = "An actual building... how convenient."
+ITEM.Desc = "An actual building... how convenient.\nHold down shift to snap"
ITEM.Model = "models/props_debris/wood_board07a.mdl"
ITEM.Icon = Material("settlement/icon_shack")
ITEM.Recipe = {
@@ -83,6 +83,13 @@ function ITEM:OnPrimary(pl,tr) local Ang = Angle(0,pl:GetAimVector():Angle().y+90,0)
local Pos = tr.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)
+ Ang.yaw = Ang.yaw - (Ang.yaw%15)
+ end
+
for k,v in pairs(self.Ghost) do
local Off = v.Pos*1
Off:Rotate(Ang)
|
