Skip to content

Commit

Permalink
#287 Fix for issue with trails not being removed on death
Browse files Browse the repository at this point in the history
  • Loading branch information
handsomematt committed Sep 29, 2018
1 parent 3c4b105 commit 511a2e3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/pointshop/items/trails/electric.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ITEM.Price = 150
ITEM.Material = 'trails/electric.vmt'

function ITEM:OnEquip(ply, modifications)
SafeRemoveEntity(ply.ElectricTrail)
ply.ElectricTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

Expand Down
1 change: 1 addition & 0 deletions lua/pointshop/items/trails/laser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ITEM.Price = 150
ITEM.Material = 'trails/laser.vmt'

function ITEM:OnEquip(ply, modifications)
SafeRemoveEntity(ply.LaserTrail)
ply.LaserTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

Expand Down
1 change: 1 addition & 0 deletions lua/pointshop/items/trails/loltrail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ITEM.Price = 150
ITEM.Material = 'trails/lol.vmt'

function ITEM:OnEquip(ply, modifications)
SafeRemoveEntity(ply.LolTrail)
ply.LolTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

Expand Down
1 change: 1 addition & 0 deletions lua/pointshop/items/trails/lovetrail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ITEM.Price = 150
ITEM.Material = 'trails/love.vmt'

function ITEM:OnEquip(ply, modifications)
SafeRemoveEntity(ply.LoveTrail)
ply.LoveTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

Expand Down
1 change: 1 addition & 0 deletions lua/pointshop/items/trails/plasmatrail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ITEM.Price = 150
ITEM.Material = 'trails/plasma.vmt'

function ITEM:OnEquip(ply, modifications)
SafeRemoveEntity(ply.PlasmaTrail)
ply.PlasmaTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

Expand Down
1 change: 1 addition & 0 deletions lua/pointshop/items/trails/smoke.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ITEM.Price = 150
ITEM.Material = 'trails/smoke.vmt'

function ITEM:OnEquip(ply, modifications)
SafeRemoveEntity(ply.SmokeTrail)
ply.SmokeTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

Expand Down
1 change: 1 addition & 0 deletions lua/pointshop/items/trails/tube.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ITEM.Price = 150
ITEM.Material = 'trails/tube.vmt'

function ITEM:OnEquip(ply, modifications)
SafeRemoveEntity(ply.TubeTrail)
ply.TubeTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

Expand Down

0 comments on commit 511a2e3

Please sign in to comment.