Commit graph

12 commits

Author SHA1 Message Date
Yamagi Burmeister
244e0cfa01 Fix monsters not fighting back when attacked by a a parasite.
This is another corner case. Parasites have a bbox height of 24,
walkmonster_start_go() hardcodes a viewheight of 25. Therefor most
traces in other functions like visible() overshoot the parasite.
Fix this by not overriding the monster viewheight.

Analyzed and fix suggested by @BjossiAlfreds. Closes issue
yquake2/yquake2#440.
2019-09-06 06:54:47 +02:00
Yamagi Burmeister
57c80dccf7 Don't accelerate upper entities, let them be pushed by the lower ent.
A long time ago in 2b4f223 I introduced a small logic change to the
handling of stacked entities. If two entities were standing on each
other the original code set the movement speed of the upper entity
to 0. It would be pushed or dragged by the lower entity. I changed
that in way that the upper entity got the same speed as the lower
entity. With that change it wasn't pushed or dragged but moving on
it's own. I hoped to fix some of the 'elevator hurts player or monster'
bugs.

That hope was wrong, at a later time we quirked all elevators that hurt
the player. Additionally the change lead to physics bugs if entities are
standing on high speed elevators (more than 200 units per seconds). So
revert it
2018-10-07 12:05:24 +02:00
Yamagi Burmeister
5c004e2c22 Take into account that the player origin may not be in his center
This is another corner case that looks more correct in baseq2. This was
reported by maraakate in yquake2 issue #160.
2016-12-17 11:06:40 +01:00
Yamagi Burmeister
fe0f0ad86f In M_CheckGround() use the trace velocity.
I have no clue what this is about. But when in doupt baseq2 is right...
:) This was reported by maraakate in yquake2 issue #160.
2016-12-17 11:05:52 +01:00
Yamagi Burmeister
0e00bb0d9f Only start monsters with max_health == health if max_health isn't set.
I dont' know if any monsters start with max_health != health, but this
looks more correct. This was reported by maraakate in yquake2 issue 160.
2016-12-17 11:04:34 +01:00
Yamagi Burmeister
00f0bb8df1 Remove superfluous whitespaces and end of lines
With this commit 'xatrix' is cleaned up. Every single line was audited,
many bugs removed and hundered of sanity checks added. Additionally the
code was reformated. All in all 'Xatrix' should now be much more
reliable and for the first time in ~15 years completeable without any
crashes, logic bugs or the like. Until now about 130 hours spread over
more than a year were spend for this project.

Of course this code is totaly untested. The next step is testing,
testing and testing. After that the spawn points needs to be fixed
so that all maps can pe started by "map $mapname".
2013-02-12 18:49:17 +01:00
Yamagi Burmeister
8caf0ff519 Cleanup g_monster.c and add sanity checks 2013-01-05 12:58:11 +01:00
Yamagi Burmeister
0226b07f48 Remove several dead assignements 2012-06-26 14:11:56 +02:00
Yamagi Burmeister
62f3b1319f Rearrange files and add a new Makefile 2011-10-11 14:00:27 +00:00
Yamagi Burmeister
8a29fa1c66 Remove static. 2011-10-11 10:07:52 +00:00
Yamagi Burmeister
b8e40ec947 rogue-cleanup, zweiter teil 2009-03-12 17:20:42 +00:00
Yamagi Burmeister
7283829715 Code zu "The Reconing" eingefügCode zu "The Reconing" eingefügt 2009-03-12 16:16:47 +00:00