Merge branch 'devel' into experimental

This commit is contained in:
Marisa the Magician 2019-04-28 11:30:59 +02:00
commit 9b1ea9d84e
6 changed files with 25 additions and 7 deletions

View file

@ -57,6 +57,7 @@ This mod requires GZDoom 4.0.0 or later.
- Lava/Slime footstep sounds?
- UT gore system (toggleable)
- Heretic compatibility
- Localization in all languages supported by the original game
## Future plans
@ -72,6 +73,7 @@ This mod requires GZDoom 4.0.0 or later.
- Unreal 1 weapons mod and maybe also a monsters mod
- Port some of my UT weapon mods (and maybe also some of my personal faves by
others, such as Psi Weapon Dreams)
- Hexen compatibility ???
## Known bugs

View file

@ -162,7 +162,7 @@ ut/playerfootstep2 stone04
ut/playerfootstep3 stone05
$random ut/playerfootstep { ut/playerfootstep1 ut/playerfootstep2 ut/playerfootstep3 }
ut/bossfootstep bfootstep
ut/bossfootstep bfootstp
ut/playerfootstepwet lsplash
ut/wetsplash dsplash
@ -205,10 +205,6 @@ misc/gibp3 gibp4
misc/gibp4 gibp5
misc/gibp5 gibp6
$random misc/gibp { misc/gibp1 misc/gibp2 misc/gibp3 misc/gibp4 misc/gibp5 }
// universal gibs compat
$alias UniversalGibs/Gib misc/gibbed
// droplets compat
$alias blood/hit misc/gibp
impact/select imppick
impact/pull impaltst

View file

@ -1,4 +1,4 @@
version "4.0"
version "4.1"
#include "zscript/dt_matrix.zsc"
#include "zscript/dt_coordutil.zsc"

View file

@ -47,6 +47,23 @@ Class UTHereticBlueKey : KeyBlue
}
}
// TODO Base class for items that can be activated from the inventory bar
Class UTActivatable : Inventory
{
Default
{
+INVENTORY.INVBAR;
}
}
// These have to be subclassed from HealthPickup for auto-use
Class UTActivatableHealth : HealthPickup
{
Default
{
}
}
// Alternative player classes for compatibility with Heretic sprites
Class UTPlayerHereticCompat : UTPlayer
{

View file

@ -160,7 +160,10 @@ Class UTPlayer : DoomPlayer
{
let type = (class<Inventory>)(AllActorClasses[i]);
if ( !type ) continue;
let def = GetDefaultByType (type);
let def = GetDefaultByType(type);
if ( !(self is "UTPlayerHereticCompat")
&& ((type is "UTActivatable") || (type is "UTActivatableHealth")) )
continue; // don't give these outside of Heretic/Hexen
if ( def.Icon.isValid() && (def.MaxAmount > 1) &&
!(type is "PuzzleItem") && !(type is "Powerup") && !(type is "Ammo") && !(type is "Armor"))
{