Commit graph

60 commits

Author SHA1 Message Date
BjossiAlfreds
51b1eeb6a9 Merge branch 'master' into pvs 2019-09-28 15:25:51 +00:00
Yamagi Burmeister
4466b3111a Add back blindfire support lost in 99073e.
This was lost at the very beginning, when I first merged the baseq2 and
xatrix bugfixes into rogue. I did that by hand, not with my infamous
cleanup script. That came later for the big cleanup before version
2.00... For some reason my playstyle has a very low chance to trigger
blindfiring, so I never realized that it's missing and wasn't able to
reproduce the problem when it was reported in yquake2/yquake2#435.

Reported by @BjossiAlfreds in #34, closes #34.
2019-09-28 17:08:36 +02:00
Yamagi
b059224bc3
Merge pull request #49 from BjossiAlfreds/mutant
Restored mutant rogue features
2019-09-28 17:05:53 +02:00
Yamagi
65ea25f58e
Merge pull request #47 from BjossiAlfreds/float
Restored floater rogue features
2019-09-28 17:01:52 +02:00
Yamagi
2769c7cdfb
Merge pull request #46 from BjossiAlfreds/boss2
Restored boss2(hornet) rogue features and tweaks
2019-09-28 17:00:20 +02:00
Yamagi
f5d5331b8a
Merge pull request #43 from BjossiAlfreds/berserker
Restored berserker rogue features
2019-09-28 16:57:25 +02:00
BjossiAlfreds
2c9565314b Restored mutant rogue features 2019-09-28 03:47:30 +00:00
BjossiAlfreds
c7b32d15b4 Restored floater rogue features 2019-09-28 03:05:02 +00:00
BjossiAlfreds
d9ea84915e Restored boss2(hornet) rogue features and tweaks 2019-09-28 00:35:58 +00:00
BjossiAlfreds
2c475d1dc5 Restored berserker rogue features 2019-09-27 22:48:03 +00:00
BjossiAlfreds
72922a60cc Restored blocked code for gladiator 2019-09-27 21:59:03 +00:00
BjossiAlfreds
704cc0178a Merge branch 'master' into pvs 2019-09-27 10:31:12 +00:00
BjossiAlfreds
f7e9b2c150 Makron torso flashes red like the legs 2019-09-26 12:42:57 +00:00
BjossiAlfreds
f76ce1d64b Fixed medics unable to heal makrons 2019-09-26 12:23:57 +00:00
BjossiAlfreds
c2188ed5f6 Investigated PVS report for monster code and addressed a number of issues 2019-09-25 19:01:47 +00:00
Yamagi Burmeister
59cc08fd96 Fix floater melee / zap damage getting applied if enemy is out of range.
Found by @BjossiAlfreds, closes yquake2/yquake2#454.
2019-09-23 17:30:57 +02:00
BjossiAlfreds
c79de3adfa Fix for insane marines pain sounds 2019-09-15 13:52:26 +00:00
Yamagi Burmeister
d289d0f302 Fix medic commander playing the wrong sound when retracting it's hook.
There's a sound commander_sound_hook_retract, it even get's precached,
but it wasn't refrerenced. Analysed and fix suggested by @BjossiAlfreds.
Closes #21.
2019-09-15 09:29:48 +02:00
BjossiAlfreds
baf90e941c Rogue bugfix for monsters not fighting back against parasites 2019-09-14 08:12:33 +00:00
Yamagi Burmeister
8be3688b1a Fix berserker fidget animation aborting attack.
M_MoveFrame() calls first the AI functions that decide if a monster
should attack or not. After that the monsters think function is called
which walks through berserk_frames_stand[]. Even if the AI function found
an enemy and decided to attack, the monster is still standing for this
frame and berserker_fidget() is called. It may override the earlier
earlier decision, aborting the attack. Even worse this may let the
berserker stuck, because AI_STAND_GROUND may be cleared which prevents
further attacks.

This bug was present in the original code, so this is small gameplay
change. It's likely also present in both addons.

Reported and analyzed by @BjossiAlfreds in issue #433. He also suggested
the fix.
2019-08-31 11:08:44 +02:00
Daniel Gibson
000da6a653 Parasite doesn't leech through walls anymore
The problem was that its head was too close to/in the wall, so the trace
towards the player (to decide if he's reachable) started *in* the wall,
so the wall itself wasn't hit/detected.
Now the trace start is 8 units behind the head and it seems to work.

Fixes #9
2019-05-11 19:44:59 +02:00
Yamagi Burmeister
cf6bf166ff Fix missing sanity check, self->enemy can be null.
Suggested by @maraakate, closes #7.
2019-05-09 18:33:23 +02:00
Yamagi Burmeister
1f82ad2154 Fix parasite, return true instead of false when checking attacks.
This was one of those stupid brainos where you know it better and still
do it wrong... In standard C the return value of a non-void function is
undefined if the closing } is reached. MSVC++5 and 6 returned 1 for
functions with return type int. Since qboolean == int parasite_blocked()
and parasite_checkattack() should return true and not false.

BUT: The true in parasite_blocked() was correct, in the original MSVC++6
build parasites always thought that they're blocked and tried to free
themself.

In parasite_checkattack() the false was wrong, so change it to true. And
yes, the function is crap. The better part of it doesn't make sense and
just burns CPU cycles for nothing. But it's working now and everyone is
happy, so let's leave it alone.

This fixes yquake2 issue #359.
2019-01-30 18:32:17 +01:00
Daniel Gibson
82d8b31d02 Switch to Enforcers bloody skin when he's killed
When killing the enforcer with one shot (instead of damaging him first
without killing, which will switch to the bloody skin), the skin wasn't
changed. Now it is.
2018-10-03 17:45:47 +02:00
Yamagi Burmeister
40183c82ae fix misplaced braces in the last else case
Submitted by: Ozkan Sezer
2015-08-31 18:33:50 +02:00
Yamagi Burmeister
d8eb7037a4 Use correct flavor of abs() 2014-08-03 11:29:47 +02:00
Yamagi Burmeister
bac51c8d95 Whitespace cleanup 2014-02-22 13:20:22 +01:00
Yamagi Burmeister
f4058dc8e9 Remove to unsued variables not found by Clang 2014-02-13 08:10:06 +01:00
Yamagi Burmeister
069ded5e88 Bring back the Medic Commander, lost during early cleanup 2014-02-11 19:07:07 +01:00
Yamagi Burmeister
2bbb79e56b Bring back the Deadalus, lost during early cleanup 2014-02-11 19:06:23 +01:00
Yamagi Burmeister
f69e6aa98a Cleanup window (both stages) and add sanity checks 2014-02-06 18:49:22 +01:00
Yamagi Burmeister
eb4dc2b586 Cleanup turret and add sanity checks 2014-02-06 18:46:12 +01:00
Yamagi Burmeister
342c157e15 Cleanup tank and add sanity checks 2014-02-06 18:45:56 +01:00
Yamagi Burmeister
e77291f8c7 Cleanup supertank and add sanity checks 2014-02-06 18:42:23 +01:00
Yamagi Burmeister
cb95ec45a0 Cleanup stalker and add sanity checks 2014-02-06 18:42:06 +01:00
Yamagi Burmeister
f10b7137ff Cleanup soldier and add sanity checks 2014-02-06 18:41:49 +01:00
Yamagi Burmeister
af65bf67e0 Cleanup parasite and add sanity checks 2014-02-05 19:46:50 +01:00
Yamagi Burmeister
8bf6b098b2 Cleanup mutant and add sanity checks 2014-02-05 19:46:32 +01:00
Yamagi Burmeister
ea8149e344 Cleanup player animations 2014-02-05 19:46:18 +01:00
Yamagi Burmeister
93b666e830 Cleanup move.c and add sanity checks 2014-02-05 19:45:59 +01:00
Yamagi Burmeister
817cb17c10 Cleanup medic and add sanity checks 2014-02-05 19:45:37 +01:00
Yamagi Burmeister
f13744b79e Cleanup insane and add sanity checks 2014-02-05 19:43:50 +01:00
Yamagi Burmeister
b123f6870d Cleanup infantry and add sanity checks 2014-02-05 19:43:26 +01:00
Yamagi Burmeister
cc4c996cd5 Cleanup hover and add sanity checks 2014-02-04 17:32:13 +01:00
Yamagi Burmeister
c9f4d792f9 Cleanup gunner and add sanity checks 2014-02-04 17:31:41 +01:00
Yamagi Burmeister
a3eb6b72aa Cleanup gladiator and add sanity checks 2014-02-04 17:31:19 +01:00
Yamagi Burmeister
08e453217d Cleanup flyer and add sanity checks 2014-02-04 17:29:42 +01:00
Yamagi Burmeister
73899ec20c Cleanup floater and add sanity checks 2014-02-04 17:29:21 +01:00
Yamagi Burmeister
e2edf54062 Cleanup flipper and add sanity checks 2014-02-04 17:29:01 +01:00
Yamagi Burmeister
d3710d28e1 Cleanup chick and add sanity checks 2014-02-03 17:51:47 +01:00