mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +00:00
- more fixes in blastradius.txt.
This commit is contained in:
parent
2b24fee53d
commit
898e2900b3
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ extend class Actor
|
||||||
action void A_Blast(int blastflags = 0, double strength = 255, double radius = 255, double speed = 20, class<Actor> blasteffect = "BlastEffect", sound blastsound = "BlastRadius")
|
action void A_Blast(int blastflags = 0, double strength = 255, double radius = 255, double speed = 20, class<Actor> blasteffect = "BlastEffect", sound blastsound = "BlastRadius")
|
||||||
{
|
{
|
||||||
|
|
||||||
if (player && (blastflags & BF_USEAMMO) && invoker == weapon && stateinfo != null && stateinfo.mStateType == STATE_Psprite)
|
if (player && (blastflags & BF_USEAMMO) && invoker == player.ReadyWeapon && stateinfo != null && stateinfo.mStateType == STATE_Psprite)
|
||||||
{
|
{
|
||||||
Weapon weapon = player.ReadyWeapon;
|
Weapon weapon = player.ReadyWeapon;
|
||||||
if (weapon != null && !weapon.DepleteAmmo(weapon.bAltFire))
|
if (weapon != null && !weapon.DepleteAmmo(weapon.bAltFire))
|
||||||
|
@ -116,7 +116,7 @@ extend class Actor
|
||||||
|
|
||||||
if (!(blastflags & BF_DONTWARN))
|
if (!(blastflags & BF_DONTWARN))
|
||||||
{
|
{
|
||||||
NoiseAlert (self);
|
SoundAlert (self);
|
||||||
}
|
}
|
||||||
ThinkerIterator it = ThinkerIterator.Create("Actor");
|
ThinkerIterator it = ThinkerIterator.Create("Actor");
|
||||||
Actor mo;
|
Actor mo;
|
||||||
|
|
Loading…
Reference in a new issue