twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
382 stars 146 forks source link

Tell the client what objects are breakable so that Gauss Gun shots won't be visibly reflected #222

Open Toodles2You opened 1 year ago

Toodles2You commented 1 year ago

This updates the "hack" to tell the client what objects are breakable glass by setting the pev->playerclass field. Constants have been defined to make it more clear what's going on. An extra bit is sent via delta.lst to flag objects as breakable and a check is performed in the weapon code for the Gauss Gun fire.