Bump ZScript version to match the GZDoom version that has all the localization work in it.
Fix missing Boss footstep sound (filename longer than 8 chars, oops). Began working on the activatables for Heretic.
This commit is contained in:
parent
8d72c5c78b
commit
1ed7083113
6 changed files with 25 additions and 7 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue