Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Death issue (respawning in grove street with a cigarette) #190

Open
Bt6K opened this issue Mar 17, 2021 · 4 comments
Open

Death issue (respawning in grove street with a cigarette) #190

Bt6K opened this issue Mar 17, 2021 · 4 comments

Comments

@Bt6K
Copy link

Bt6K commented Mar 17, 2021

There is a rare bug where by, when someone dies in a vehicle, the respawn process goes rather odd and players die and end up in grove street with a cigarette. I assume this is a weapon-config issue rather than a GTA:SA or SA:MP bug, but please correct me if I'm wrong.

This causes issue with Nex-AC, too. Whilst I can disable that anti-cheat functionality it would be best if the bug could be fixed. Tagging @NexiusTailer as I saw he was committing in this repository and may be interested in seeing a video and logs:

Video: https://streamable.com/pvcbgn

07/03/2021 22:20:05 [kill] Andre_Milano killed penzolot M4
07/03/2021 22:20:06 [death] penzolot died 255
07/03/2021 22:20:06 [Nex-AC debug] Spawn res: 1, respawn time: 119
07/03/2021 22:20:06 [Nex-AC] Suspicion on the ID 11. Reason code: 027
07/03/2021 22:20:06 OnPlayerDisconnect(11)
07/03/2021 22:20:06 [part] penzolot has left the server (11:2)

@ADRFranklin
Copy link
Collaborator

This seems like an issue with Nex-AC rather then weapon-config. As you can see you are clearly kicked for using a cheat program, now I have never used Nex-AC, so I can't really say how it works. But weapon-config doesn't spawn you in a random place, and there is no hard coded spawn position like grove street.

This is something you are doing in your code, that is causing the spawn to happen there. As for the fact you died and was immediately respawned is an issue that is difficult to detect as is, because we would need to keep track of the vehicle damage and that can be kind of hard to do since sa-mp doesn't offer these capabilities, though they could maybe be added by SKY. I would need a valid reason to implement such a thing.

@f0Re3t
Copy link

f0Re3t commented Mar 17, 2021

Do not use fast spawn protection if you use weapon-config and nex-ac together. Since there is a bug and a quick spawn can happen without using cheats.

@NexiusTailer
Copy link
Contributor

NexiusTailer commented Mar 17, 2021

This causes issue with Nex-AC, too. Whilst I can disable that anti-cheat functionality it would be best if the bug could be fixed. Tagging @NexiusTailer as I saw he was committing in this repository and may be interested in seeing a video and logs

This seems like an issue with Nex-AC rather then weapon-config. As you can see you are clearly kicked for using a cheat program, now I have never used Nex-AC, so I can't really say how it works. But weapon-config doesn't spawn you in a random place, and there is no hard coded spawn position like grove street.

Well, actually I'm aware of this problem and faced it before. From my attempts to observe the reasons, I can say for sure that the problem is caused precisely when using the weapon-config (anticheat just handle the already obvious fact of a quick spawn in this case, which happens with or without it). This happens only when an explosion occurs in some vehicles, so that the player dies with a real client death, not a server one.

Another find I came across while trying to figure out the reasons for this and testing some weird code combinations is when you try to heal a player and restore his health during client death, and just after that apply to him ClearAnimations/SetPlayerPos (or any other function that could reset animation or speed), then the player will instantly spawn without waiting for the end of death. That was the 100% way to reproduce that, but I didn't found any similar native chain in weapon-config so it was not the case. Perhaps there are some other combinations of procedures that "break" the game client death and make the player spawn instantly, but I haven't found anything else.

@NexiusTailer
Copy link
Contributor

NexiusTailer commented Mar 17, 2021

UPD: As for spawn on groove st/with a cigarette in hand, it is the second part of such bug or even another bug. Firstly you, for some reason, just quick spawned and if you still not kicked by anti-fast spawn checks in case it's disabled, then you will be spawned twice with cigarette or wine in hand (and maybe even with cj skin and maybe even on groove street, that's not obligatory and less common). It is worth mentioning that the second spawn occurs locally for the player and is not sent to the server as a spawn event. Btw could be also related to #32, #35, #141, #145 and probably #171.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants