pointshop icon indicating copy to clipboard operation
pointshop copied to clipboard

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

Open PatPeter opened this issue 10 years ago • 8 comments

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.

PatPeter avatar Dec 05 '14 03:12 PatPeter

Which gamemode does this happen in? On 5 Dec 2014 03:17, "PatPeter" [email protected] 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.

handsomematt avatar Dec 05 '14 16:12 handsomematt

Trouble in Terrorist Town.

PatPeter avatar Dec 06 '14 00:12 PatPeter

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" [email protected] wrote:

Trouble in Terrorist Town.

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

handsomematt avatar Dec 06 '14 00:12 handsomematt

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

PatPeter avatar Dec 08 '14 01:12 PatPeter

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 avatar Dec 21 '14 01:12 PatPeter

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.

PatPeter avatar Dec 21 '14 03:12 PatPeter

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

Andrej-z-z avatar Jan 14 '15 14:01 Andrej-z-z

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

Rolfen1 avatar Apr 22 '21 21:04 Rolfen1