From 9d4ff294129545d7266f03cd51135d43e1c47967 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 12 Mar 2016 21:51:36 -0500 Subject: Fixed bug that caused floors and ramps to not spawn at correct angles --- gamemode/itemsystem/items/floor.lua | 2 +- gamemode/itemsystem/items/floorhalf.lua | 2 +- gamemode/itemsystem/items/ramp.lua | 2 +- gamemode/itemsystem/items/ramphalf.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gamemode/itemsystem/items') diff --git a/gamemode/itemsystem/items/floor.lua b/gamemode/itemsystem/items/floor.lua index 21216f3..af3a0fd 100644 --- a/gamemode/itemsystem/items/floor.lua +++ b/gamemode/itemsystem/items/floor.lua @@ -42,7 +42,7 @@ function ITEM:OnPrimary(pl,tr) if (tr.Hit) then local drop = ents.Create("ws_prop") drop:SetModel("models/props_wasteland/wood_fence01a.mdl") - local Aim = Angle(0,pl:GetAimVector():Angle().y+90,0) + local Aim = Angle(0,pl:GetAimVector():Angle().y+90,90) local Pos = tr.HitPos if(pl:KeyDown(IN_SPEED)) then Pos.x = Pos.x - (Pos.x%20) diff --git a/gamemode/itemsystem/items/floorhalf.lua b/gamemode/itemsystem/items/floorhalf.lua index bf2783b..16c6443 100644 --- a/gamemode/itemsystem/items/floorhalf.lua +++ b/gamemode/itemsystem/items/floorhalf.lua @@ -43,7 +43,7 @@ function ITEM:OnPrimary(pl,tr) if (tr.Hit) then local drop = ents.Create("ws_prop") drop:SetModel("models/props_wasteland/wood_fence02a.mdl") - local Aim = Angle(0,pl:GetAimVector():Angle().y+90,0) + local Aim = Angle(0,pl:GetAimVector():Angle().y+90,90) local Pos = tr.HitPos if(pl:KeyDown(IN_SPEED)) then Pos.x = Pos.x - (Pos.x%20) diff --git a/gamemode/itemsystem/items/ramp.lua b/gamemode/itemsystem/items/ramp.lua index ad44c78..10575e2 100644 --- a/gamemode/itemsystem/items/ramp.lua +++ b/gamemode/itemsystem/items/ramp.lua @@ -42,7 +42,7 @@ function ITEM:OnPrimary(pl,tr) if (tr.Hit) then local drop = ents.Create("ws_prop") drop:SetModel("models/props_wasteland/wood_fence01a.mdl") - local Aim = Angle(0,pl:GetAimVector():Angle().y+90,0) + local Aim = Angle(0,pl:GetAimVector():Angle().y+90,45) local Pos = tr.HitPos if(pl:KeyDown(IN_SPEED)) then Pos.x = Pos.x - (Pos.x%20) diff --git a/gamemode/itemsystem/items/ramphalf.lua b/gamemode/itemsystem/items/ramphalf.lua index 0abc692..9335a91 100644 --- a/gamemode/itemsystem/items/ramphalf.lua +++ b/gamemode/itemsystem/items/ramphalf.lua @@ -43,7 +43,7 @@ function ITEM:OnPrimary(pl,tr) if (tr.Hit) then local drop = ents.Create("ws_prop") drop:SetModel("models/props_wasteland/wood_fence02a.mdl") - local Aim = Angle(0,pl:GetAimVector():Angle().y+90,0) + local Aim = Angle(0,pl:GetAimVector():Angle().y+90,45) local Pos = tr.HitPos if(pl:KeyDown(IN_SPEED)) then Pos.x = Pos.x - (Pos.x%20) -- cgit v1.2.3-70-g09d2