diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-03-12 21:51:36 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-03-12 21:51:36 -0500 |
| commit | 9d4ff294129545d7266f03cd51135d43e1c47967 (patch) | |
| tree | 46053b6a20e8d38d708d190b82e38cd99e1cd556 /gamemode/itemsystem | |
| parent | 12c1327a1878cdcd76524a60673e5cf346b9a3da (diff) | |
| download | wintersurvival2-9d4ff294129545d7266f03cd51135d43e1c47967.tar.gz wintersurvival2-9d4ff294129545d7266f03cd51135d43e1c47967.tar.bz2 wintersurvival2-9d4ff294129545d7266f03cd51135d43e1c47967.zip | |
Fixed bug that caused floors and ramps to not spawn at correct angles
Diffstat (limited to 'gamemode/itemsystem')
| -rw-r--r-- | gamemode/itemsystem/items/floor.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/floorhalf.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/ramp.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/items/ramphalf.lua | 2 |
4 files changed, 4 insertions, 4 deletions
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) |
