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

[CS] game_player_equip HE grenade server crash #1951

Open
tyftler opened this issue Feb 5, 2013 · 5 comments
Open

[CS] game_player_equip HE grenade server crash #1951

tyftler opened this issue Feb 5, 2013 · 5 comments

Comments

@tyftler
Copy link

tyftler commented Feb 5, 2013

If a player triggers a game_player_equip and receives a HE grenade, but already has one, you can see a small HE model falling slowly down at the point where the player is standing for about 1 or 2 seconds. If this player now moves away and another one touches this model, the server will crash.

@ghost ghost self-assigned this Feb 5, 2013
@alfred-valve
Copy link
Contributor

is this not related to/a dupe of #1270 ?

@tyftler
Copy link
Author

tyftler commented Feb 5, 2013

No, it's another issue and has nothing to do with that.

@xPaw
Copy link

xPaw commented Feb 5, 2013

@alfred-valve I also sent you crash dumps via email, and a map related to this crashing issue.

@LevShisterov
Copy link

[proposed code change]
In
void CBasePlayerItem::AttachToPlayer ( CBasePlayer *pPlayer )
change
pev->nextthink = gpGlobals->time + .1;
to
pev->nextthink = 0;
SetThink( NULL );
[/proposed code change]
this will prevent further attempts to materialize item, which again assign Touch which triggers second AddToPlayer, which schedule item removal and then leads to delayed crash in GetWeaponData because item is deleted while still attached to player.

This is a bug in HLSDK. It is very similar to described in topic start. There is a map for HLDM named "endcamp" with destroyable crates. When you destroy them, weapon_satchel is spawned on a height of about 60 units. If player catch them in fly - server crashes.

@kisak-valve kisak-valve transferred this issue from ValveSoftware/steam-for-linux Nov 12, 2018
@SamVanheer
Copy link

I tested this out using a map designed to have a bot receive grenades every second. The grenade falls through a clip brush so a player can touch the grenade. I am unable to pick up the grenade as it falls, even after it has touched the ground.

Picking up a grenade and then touching the other one produces no change in behavior.

afbeelding

Note that i tested this in Condition Zero, but i doubt there is any difference in code that could affect this. The code that i checked involving the spawning, falling and touching of grenades seems to be identical.

Perhaps it was fixed and the issue was never closed, or the crash was caused by a plugin?
I recommend checking the commit history for the code in question to see if anything was changed.

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

No branches or pull requests

6 participants