Ulysses
General => Developers Corner => Topic started by: Doomed on June 18, 2017, 07:55:47 PM
-
In my gamemode, there is this weird, inconsistent bug where players will sometimes hold their weapons like a pistol and will not take headshot damage. When they join they are given weapons based on what class they are. I spawned a few bots, and it seems as though there is a 50/50 chance of this glitch affecting them. Also, yes I did set each SWEP's hold type in their shared files. Is there any explanation for this?
-
Without seeing all the gamemode code (which, honestly, many of us don't have time for), it's really difficult to tell from your description.
We might as well flip a coin while guessing.
My coin toss...
You have spawn loadout code twice - one normal, one custom.
Both get executed, 50 50 chance of either one executing last.
-
EDIT: Fixed, just had to change the setholdtype function