Giter VIP home page Giter VIP logo

Comments (5)

alfred-valve avatar alfred-valve commented on August 24, 2024

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

from halflife.

tyftler avatar tyftler commented on August 24, 2024

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

from halflife.

xPaw avatar xPaw commented on August 24, 2024

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

from halflife.

LevShisterov avatar LevShisterov commented on August 24, 2024

[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.

from halflife.

SamVanheer avatar SamVanheer commented on August 24, 2024

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.

from halflife.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.