mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-12 23:54:33 +00:00
- Fixed: Hexen's fourth weapon pieces did not play the correct pickup sound,
and when they were fully assembled, they did not play the sound across the entire level. SVN r1213 (trunk)
This commit is contained in:
parent
f08e2949dc
commit
4ffa924929
8 changed files with 51 additions and 27 deletions
|
@ -1,4 +1,7 @@
|
||||||
September 11, 2008
|
September 11, 2008
|
||||||
|
- Fixed: Hexen's fourth weapon pieces did not play the correct pickup sound,
|
||||||
|
and when they were fully assembled, they did not play the sound across the
|
||||||
|
entire level.
|
||||||
- Antialiasing of lines is now controlled solely by the vid_hwaalines cvar,
|
- Antialiasing of lines is now controlled solely by the vid_hwaalines cvar,
|
||||||
ignoring what the driver reports, since ATI is apparently just as bad as
|
ignoring what the driver reports, since ATI is apparently just as bad as
|
||||||
NVidia.
|
NVidia.
|
||||||
|
|
|
@ -981,10 +981,24 @@ const char *AInventory::PickupMessage ()
|
||||||
|
|
||||||
void AInventory::PlayPickupSound (AActor *toucher)
|
void AInventory::PlayPickupSound (AActor *toucher)
|
||||||
{
|
{
|
||||||
S_Sound (toucher, CHAN_PICKUP, PickupSound, 1,
|
float atten;
|
||||||
(ItemFlags & IF_FANCYPICKUPSOUND) &&
|
|
||||||
(toucher == NULL || toucher->CheckLocalView (consoleplayer))
|
if (ItemFlags & IF_NOATTENPICKUPSOUND)
|
||||||
? ATTN_NONE : ATTN_NORM);
|
{
|
||||||
|
atten = ATTN_NONE;
|
||||||
|
}
|
||||||
|
#if 0
|
||||||
|
else if ((ItemFlags & IF_FANCYPICKUPSOUND) &&
|
||||||
|
(toucher == NULL || toucher->CheckLocalView(consoeplayer)))
|
||||||
|
{
|
||||||
|
atten = ATTN_NONE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
else
|
||||||
|
{
|
||||||
|
atten = ATTN_NORM;
|
||||||
|
}
|
||||||
|
S_Sound (toucher, CHAN_PICKUP, PickupSound, 1, atten);
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -99,6 +99,7 @@ enum
|
||||||
IF_IGNORESKILL = 1<<14, // Ignores any skill related multiplicators when giving this item.
|
IF_IGNORESKILL = 1<<14, // Ignores any skill related multiplicators when giving this item.
|
||||||
IF_CREATECOPYMOVED = 1<<15, // CreateCopy changed the owner (copy's Owner field holds new owner).
|
IF_CREATECOPYMOVED = 1<<15, // CreateCopy changed the owner (copy's Owner field holds new owner).
|
||||||
IF_INITEFFECTFAILED = 1<<16, // CreateCopy tried to activate a powerup and activation failed (can happen with PowerMorph)
|
IF_INITEFFECTFAILED = 1<<16, // CreateCopy tried to activate a powerup and activation failed (can happen with PowerMorph)
|
||||||
|
IF_NOATTENPICKUPSOUND = 1<<17, // Play pickup sound with ATTN_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
struct vissprite_t;
|
struct vissprite_t;
|
||||||
|
|
|
@ -146,7 +146,13 @@ const char *AWeaponPiece::PickupMessage ()
|
||||||
|
|
||||||
void AWeaponPiece::PlayPickupSound (AActor *toucher)
|
void AWeaponPiece::PlayPickupSound (AActor *toucher)
|
||||||
{
|
{
|
||||||
if (FullWeapon) FullWeapon->PlayPickupSound(toucher);
|
if (FullWeapon)
|
||||||
else Super::PlayPickupSound(toucher);
|
{
|
||||||
|
FullWeapon->PlayPickupSound(toucher);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Super::PlayPickupSound(toucher);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -284,6 +284,7 @@ static flagdef InventoryFlags[] =
|
||||||
DEFINE_FLAG(IF, KEEPDEPLETED, AInventory, ItemFlags),
|
DEFINE_FLAG(IF, KEEPDEPLETED, AInventory, ItemFlags),
|
||||||
DEFINE_FLAG(IF, IGNORESKILL, AInventory, ItemFlags),
|
DEFINE_FLAG(IF, IGNORESKILL, AInventory, ItemFlags),
|
||||||
DEFINE_FLAG(IF, ADDITIVETIME, AInventory, ItemFlags),
|
DEFINE_FLAG(IF, ADDITIVETIME, AInventory, ItemFlags),
|
||||||
|
DEFINE_FLAG(IF, NOATTENPICKUPSOUND, AInventory, ItemFlags),
|
||||||
|
|
||||||
DEFINE_DEPRECATED_FLAG(PICKUPFLASH),
|
DEFINE_DEPRECATED_FLAG(PICKUPFLASH),
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
|
|
||||||
ACTOR ClericWeaponPiece : WeaponPiece native
|
ACTOR ClericWeaponPiece : WeaponPiece native
|
||||||
{
|
{
|
||||||
|
Inventory.PickupSound "misc/w_pkup"
|
||||||
Inventory.PickupMessage "$TXT_WRAITHVERGE_PIECE"
|
Inventory.PickupMessage "$TXT_WRAITHVERGE_PIECE"
|
||||||
|
WeaponPiece.Weapon CWeapWraithverge
|
||||||
|
+FLOATBOB
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleric Weapon Piece 1 ----------------------------------------------------
|
// Cleric Weapon Piece 1 ----------------------------------------------------
|
||||||
|
@ -12,10 +15,7 @@ ACTOR CWeaponPiece1 : ClericWeaponPiece 18
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 33
|
SpawnID 33
|
||||||
+FLOATBOB
|
|
||||||
Inventory.PickupMessage "$TXT_WRAITHVERGE_PIECE"
|
|
||||||
WeaponPiece.Number 1
|
WeaponPiece.Number 1
|
||||||
WeaponPiece.Weapon CWeapWraithverge
|
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Spawn:
|
Spawn:
|
||||||
|
@ -26,11 +26,10 @@ ACTOR CWeaponPiece1 : ClericWeaponPiece 18
|
||||||
|
|
||||||
// Cleric Weapon Piece 2 ----------------------------------------------------
|
// Cleric Weapon Piece 2 ----------------------------------------------------
|
||||||
|
|
||||||
ACTOR CWeaponPiece2 : CWeaponPiece1 19
|
ACTOR CWeaponPiece2 : ClericWeaponPiece 19
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 34
|
SpawnID 34
|
||||||
+FLOATBOB
|
|
||||||
WeaponPiece.Number 2
|
WeaponPiece.Number 2
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
|
@ -42,11 +41,10 @@ ACTOR CWeaponPiece2 : CWeaponPiece1 19
|
||||||
|
|
||||||
// Cleric Weapon Piece 3 ----------------------------------------------------
|
// Cleric Weapon Piece 3 ----------------------------------------------------
|
||||||
|
|
||||||
ACTOR CWeaponPiece3 : CWeaponPiece1 20
|
ACTOR CWeaponPiece3 : ClericWeaponPiece 20
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 35
|
SpawnID 35
|
||||||
+FLOATBOB
|
|
||||||
WeaponPiece.Number 3
|
WeaponPiece.Number 3
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
|
@ -76,6 +74,7 @@ ACTOR CWeapWraithverge : ClericWeapon native
|
||||||
Health 3
|
Health 3
|
||||||
Weapon.SelectionOrder 3000
|
Weapon.SelectionOrder 3000
|
||||||
+WEAPON.PRIMARY_USES_BOTH
|
+WEAPON.PRIMARY_USES_BOTH
|
||||||
|
+Inventory.NoAttenPickupSound
|
||||||
Weapon.AmmoUse1 18
|
Weapon.AmmoUse1 18
|
||||||
Weapon.AmmoUse2 18
|
Weapon.AmmoUse2 18
|
||||||
Weapon.AmmoGive1 20
|
Weapon.AmmoGive1 20
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
|
|
||||||
ACTOR FighterWeaponPiece : WeaponPiece native
|
ACTOR FighterWeaponPiece : WeaponPiece native
|
||||||
{
|
{
|
||||||
|
Inventory.PickupSound "misc/w_pkup"
|
||||||
|
Inventory.PickupMessage "$TXT_QUIETUS_PIECE"
|
||||||
|
WeaponPiece.Weapon FWeapQuietus
|
||||||
|
+FLOATBOB
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fighter Weapon Piece 1 ---------------------------------------------------
|
// Fighter Weapon Piece 1 ---------------------------------------------------
|
||||||
|
@ -11,10 +15,7 @@ ACTOR FWeaponPiece1 : FighterWeaponPiece 12
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 29
|
SpawnID 29
|
||||||
Inventory.PickupMessage "$TXT_QUIETUS_PIECE"
|
|
||||||
WeaponPiece.Number 1
|
WeaponPiece.Number 1
|
||||||
WeaponPiece.Weapon FWeapQuietus
|
|
||||||
+FLOATBOB
|
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Spawn:
|
Spawn:
|
||||||
|
@ -25,12 +26,11 @@ ACTOR FWeaponPiece1 : FighterWeaponPiece 12
|
||||||
|
|
||||||
// Fighter Weapon Piece 2 ---------------------------------------------------
|
// Fighter Weapon Piece 2 ---------------------------------------------------
|
||||||
|
|
||||||
ACTOR FWeaponPiece2 : FWeaponPiece1 13
|
ACTOR FWeaponPiece2 : FighterWeaponPiece 13
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 30
|
SpawnID 30
|
||||||
WeaponPiece.Number 2
|
WeaponPiece.Number 2
|
||||||
+FLOATBOB
|
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Spawn:
|
Spawn:
|
||||||
|
@ -41,12 +41,11 @@ ACTOR FWeaponPiece2 : FWeaponPiece1 13
|
||||||
|
|
||||||
// Fighter Weapon Piece 3 ---------------------------------------------------
|
// Fighter Weapon Piece 3 ---------------------------------------------------
|
||||||
|
|
||||||
ACTOR FWeaponPiece3 : FWeaponPiece1 16
|
ACTOR FWeaponPiece3 : FighterWeaponPiece 16
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 31
|
SpawnID 31
|
||||||
WeaponPiece.Number 3
|
WeaponPiece.Number 3
|
||||||
+FLOATBOB
|
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Spawn:
|
Spawn:
|
||||||
|
@ -75,6 +74,7 @@ ACTOR FWeapQuietus : FighterWeapon
|
||||||
Health 3
|
Health 3
|
||||||
Weapon.SelectionOrder 2900
|
Weapon.SelectionOrder 2900
|
||||||
+WEAPON.PRIMARY_USES_BOTH
|
+WEAPON.PRIMARY_USES_BOTH
|
||||||
|
+Inventory.NoAttenPickupSound
|
||||||
Weapon.AmmoUse1 14
|
Weapon.AmmoUse1 14
|
||||||
Weapon.AmmoUse2 14
|
Weapon.AmmoUse2 14
|
||||||
Weapon.AmmoGive1 20
|
Weapon.AmmoGive1 20
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
|
|
||||||
ACTOR MageWeaponPiece : WeaponPiece native
|
ACTOR MageWeaponPiece : WeaponPiece native
|
||||||
{
|
{
|
||||||
|
Inventory.PickupSound "misc/w_pkup"
|
||||||
|
Inventory.PickupMessage "$TXT_BLOODSCOURGE_PIECE"
|
||||||
|
WeaponPiece.Weapon MWeapBloodscourge
|
||||||
|
+FLOATBOB
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mage Weapon Piece 1 ------------------------------------------------------
|
// Mage Weapon Piece 1 ------------------------------------------------------
|
||||||
|
@ -11,10 +15,7 @@ ACTOR MWeaponPiece1 : MageWeaponPiece 21
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 37
|
SpawnID 37
|
||||||
+FLOATBOB
|
|
||||||
Inventory.PickupMessage "$TXT_BLOODSCOURGE_PIECE"
|
|
||||||
WeaponPiece.Number 1
|
WeaponPiece.Number 1
|
||||||
WeaponPiece.Weapon MWeapBloodscourge
|
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
Spawn:
|
Spawn:
|
||||||
|
@ -25,11 +26,10 @@ ACTOR MWeaponPiece1 : MageWeaponPiece 21
|
||||||
|
|
||||||
// Mage Weapon Piece 2 ------------------------------------------------------
|
// Mage Weapon Piece 2 ------------------------------------------------------
|
||||||
|
|
||||||
ACTOR MWeaponPiece2 : MWeaponPiece1 22
|
ACTOR MWeaponPiece2 : MageWeaponPiece 22
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 38
|
SpawnID 38
|
||||||
+FLOATBOB
|
|
||||||
WeaponPiece.Number 2
|
WeaponPiece.Number 2
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
|
@ -41,11 +41,10 @@ ACTOR MWeaponPiece2 : MWeaponPiece1 22
|
||||||
|
|
||||||
// Mage Weapon Piece 3 ------------------------------------------------------
|
// Mage Weapon Piece 3 ------------------------------------------------------
|
||||||
|
|
||||||
ACTOR MWeaponPiece3 : MWeaponPiece1 23
|
ACTOR MWeaponPiece3 : MageWeaponPiece 23
|
||||||
{
|
{
|
||||||
Game Hexen
|
Game Hexen
|
||||||
SpawnID 39
|
SpawnID 39
|
||||||
+FLOATBOB
|
|
||||||
WeaponPiece.Number 3
|
WeaponPiece.Number 3
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
|
@ -83,6 +82,7 @@ ACTOR MWeapBloodscourge : MageWeapon native
|
||||||
Weapon.AmmoType1 "Mana1"
|
Weapon.AmmoType1 "Mana1"
|
||||||
Weapon.AmmoType2 "Mana2"
|
Weapon.AmmoType2 "Mana2"
|
||||||
+WEAPON.PRIMARY_USES_BOTH
|
+WEAPON.PRIMARY_USES_BOTH
|
||||||
|
+Inventory.NoAttenPickupSound
|
||||||
Inventory.PickupMessage "$TXT_WEAPON_M4"
|
Inventory.PickupMessage "$TXT_WEAPON_M4"
|
||||||
Inventory.PickupSound "WeaponBuild"
|
Inventory.PickupSound "WeaponBuild"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue