eukara / freecs

Clean-room Counter-Strike 1.5 in QuakeC, using Nuclide SDK. Previously known as OpenCS! (2016)
https://www.frag-net.com/projects.html
ISC License
195 stars 16 forks source link

Instant death by fall #7

Open Unargent opened 2 years ago

Unargent commented 2 years ago

If you jump and accidentally "catch" on objects and hang like that for a couple of seconds, there will be instant death because of the fall.

https://user-images.githubusercontent.com/106993968/188642506-18949ffd-c88f-44c1-bf9a-2760986bb1af.mp4

This bug can also be reproduced in FreeHL:

https://user-images.githubusercontent.com/106993968/188642687-c7c3cf97-bee6-4647-808f-a139e1137afc.mp4

Tested on: Commits: https://github.com/eukara/freecs/commit/e744c22f40992acdab75b299e7c2140bd4da545468 https://github.com/eukara/freehl/commit/5b9db50f2c40778d36e318ca55a672f6e938b49c https://github.com/VeraVisions/nuclide/commit/9deb12b68de6485285c81975d20eb93dc9af547b OS: Debian 11 Backend: SDL2 Render type: OpenGL Data files: Shareware (from the script)

Unargent commented 1 year ago

Small update: If you try to repeat this bug in Quake, on the same map, this bug will not be there. It looks like the problem is in the size of the model or its collision. Also, this bug is not in the steam version of CS 1.6.

eukara commented 1 year ago

I do all the physics in QuakeC so we can do our own prediction properly (and allow modders to change whatever they want) there's some error correction that will need to be done along slopes and I just haven't found the right solution just yet. I did however fix the door bug you reported on cs_estate in the process when I dug around as a result. CS:S and other Sources games can also run into this bug because they do collision differently from GoldSrc (I'm guessing, as they don't use hulls like Q1/HL does) and all it requires is more testing against the surrounding planes I am assuming. Not really sure just yet.