Arizard / deathrun

Arizard's Deathrun gamemode for Garry's Mod
63 stars 38 forks source link

Connecting player triggers map spawn kill #100

Closed Violat0r closed 4 years ago

Violat0r commented 8 years ago

On a map such as deathrun_family_guy_final2 when a player is connecting/loading in and the round is just starting, it triggers the builtin map spawn killer. This happens on multiple maps and it looks like the player spawns in the game but isn't fully loaded when this happens. It happens during and after pre-round. I have tested this on a vanilla server with no addons or extra lua or changed any files other than setting the gamemode and start map.

Violat0r commented 7 years ago

Might be related, newest connected player is always selected as death as well. I am thinking we might need player is valid somewhere and some recoding of death being selected.

Arizard commented 7 years ago

Newest connected player is usually death because the gamemode prioritises death selection based on which players have been death the least. As for triggering the map spawn killer, I'm still not sure why that happens

Violat0r commented 7 years ago

I think it has to do with the round state. If a player connects when the round is lets say a minute in, it won't trigger. But it does trigger when a new round does begin.

Violat0r commented 7 years ago

Also might be related to this is when I am messing with the loadout hook, when someone connects, everyone's weapons goes missing. I had to put in player is valid for it to stop doing that.

zzzz1111iw commented 6 years ago

May or may not be worth mentioning. The maps that have this issue use a trigger hurt that is activated on touch vs maps that don't have this issue use a trigger hurt activated on map spawn.