adamdburton / pointshop

PointShop is a shop system for Garry's Mod 13
http://pointshop.burt0n.net/
MIT License
69 stars 101 forks source link

Players get trails in spectator if they kill themselves before and as the round starts #174

Open PatPeter opened 9 years ago

PatPeter commented 9 years ago

If you kill yourself in console, and then you kill yourself right as the round starts, it will apply the trail to the spectator's body.

handsomematt commented 9 years ago

Which gamemode does this happen in? On 5 Dec 2014 03:17, "PatPeter" notifications@github.com wrote:

If you kill yourself in console, and then you kill yourself right as the round starts, it will apply the trail to the spectator's body.

— Reply to this email directly or view it on GitHub https://github.com/adamdburton/pointshop/issues/174.

PatPeter commented 9 years ago

Trouble in Terrorist Town.

handsomematt commented 9 years ago

Are you sure you're using the latest version of pointshop and aren't using any stupid addons like SpecDM that might be interfering? I remember fixing this years ago. On 6 Dec 2014 00:32, "PatPeter" notifications@github.com wrote:

Trouble in Terrorist Town.

— Reply to this email directly or view it on GitHub https://github.com/adamdburton/pointshop/issues/174#issuecomment-65876350 .

PatPeter commented 9 years ago

I'll delete and reinstall Pointshop on my server next chance I get. My maintenance hours for this weekend are already spent.

PatPeter commented 9 years ago

I installed the Pointshop on February 7th of this year, and the update checker never told me a new version was available. I have to say, the new version looks beautiful!

PatPeter commented 9 years ago

Nope... one of my moderators was just about to reproduce this. He killed himself in preround and then killed himself as soon as the round started.

Andrej-z-z commented 9 years ago

Ye i have the same problem. Its same with specdm and without it...

Rolfen1 commented 3 years ago

For people of the future, this might help.

Something similar happens in Prop Hunt gamemode, I made a workaround editing the ITEM:OnEquip function of each trail in my server. It now looks like this:

function ITEM:OnEquip(ply, modifications)
  SafeRemoveEntity(ply.LolTrail)
  if ply:Team() == 1 then // This is new
    ply.LolTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
  end // This is new
end

It seems that the OnEquip is being called every round start (just speculations)

Note: player team number might be different across gamemodes as stated in gmod docs