mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +00:00
This commit is contained in:
commit
4eef1d99ee
16 changed files with 32 additions and 32 deletions
|
@ -193,7 +193,7 @@ void DBot::Dofire (ticcmd_t *cmd)
|
|||
else
|
||||
{
|
||||
//*4 is for atmosphere, the chainsaws sounding and all..
|
||||
no_fire = (Dist > MELEERANGE*4);
|
||||
no_fire = (Dist > DEFMELEERANGE*4);
|
||||
}
|
||||
}
|
||||
else if (player->ReadyWeapon->WeaponFlags & WIF_BOT_BFG)
|
||||
|
|
|
@ -2093,7 +2093,7 @@ DEFINE_ACTION_FUNCTION(AStateProvider, A_CustomPunch)
|
|||
damage *= pr_cwpunch() % 8 + 1;
|
||||
|
||||
angle = self->Angles.Yaw + pr_cwpunch.Random2() * (5.625 / 256);
|
||||
if (range == 0) range = MELEERANGE;
|
||||
if (range == 0) range = DEFMELEERANGE;
|
||||
pitch = P_AimLineAttack (self, angle, range, &t);
|
||||
|
||||
// only use ammo when actually hitting something!
|
||||
|
|
|
@ -62,7 +62,7 @@ extern int bmapnegy;
|
|||
#define TALKRANGE (128.)
|
||||
#define USERANGE (64.)
|
||||
|
||||
#define MELEERANGE (64.)
|
||||
#define DEFMELEERANGE (64.)
|
||||
#define SAWRANGE (64.+(1./65536.)) // use meleerange + 1 so the puff doesn't skip the flash (i.e. plays all states)
|
||||
#define MISSILERANGE (32*64.)
|
||||
#define PLAYERMISSILERANGE (8192.) // [RH] New MISSILERANGE for players
|
||||
|
|
|
@ -871,7 +871,7 @@ enum ELineAttackFlags
|
|||
LAF_NOINTERACT = 8,
|
||||
}
|
||||
|
||||
const MELEERANGE = 64;
|
||||
const DEFMELEERANGE = 64;
|
||||
const SAWRANGE = (64.+(1./65536.)); // use meleerange + 1 so the puff doesn't skip the flash (i.e. plays all states)
|
||||
const MISSILERANGE = (32*64);
|
||||
const PLAYERMISSILERANGE = 8192; // [RH] New MISSILERANGE for players
|
||||
|
|
|
@ -372,8 +372,8 @@ class ScriptedMarine : Actor
|
|||
|
||||
A_FaceTarget ();
|
||||
double ang = angle + random2[SMarinePunch]() * (5.625 / 256);
|
||||
double pitch = AimLineAttack (ang, MELEERANGE);
|
||||
LineAttack (ang, MELEERANGE, pitch, damage, 'Melee', "BulletPuff", true, t);
|
||||
double pitch = AimLineAttack (ang, DEFMELEERANGE);
|
||||
LineAttack (ang, DEFMELEERANGE, pitch, damage, 'Melee', "BulletPuff", true, t);
|
||||
|
||||
// turn to face target
|
||||
if (t.linetarget)
|
||||
|
|
|
@ -65,9 +65,9 @@ extend class Actor
|
|||
damage *= 10;
|
||||
|
||||
double ang = angle + Random2[Punch]() * (5.625 / 256);
|
||||
double pitch = AimLineAttack (ang, MELEERANGE);
|
||||
double pitch = AimLineAttack (ang, DEFMELEERANGE);
|
||||
|
||||
LineAttack (ang, MELEERANGE, pitch, damage, 'Melee', "BulletPuff", LAF_ISMELEEATTACK, t);
|
||||
LineAttack (ang, DEFMELEERANGE, pitch, damage, 'Melee', "BulletPuff", LAF_ISMELEEATTACK, t);
|
||||
|
||||
// turn to face target
|
||||
if (t.linetarget)
|
||||
|
|
|
@ -77,8 +77,8 @@ class Beak : Weapon
|
|||
|
||||
int damage = random[BeakAtk](1,3);
|
||||
double ang = angle;
|
||||
double slope = AimLineAttack (ang, MELEERANGE);
|
||||
LineAttack (ang, MELEERANGE, slope, damage, 'Melee', "BeakPuff", true, t);
|
||||
double slope = AimLineAttack (ang, DEFMELEERANGE);
|
||||
LineAttack (ang, DEFMELEERANGE, slope, damage, 'Melee', "BeakPuff", true, t);
|
||||
if (t.linetarget)
|
||||
{
|
||||
angle = t.angleFromSource;
|
||||
|
@ -125,8 +125,8 @@ class BeakPowered : Beak
|
|||
|
||||
int damage = random[BeakAtk](1,8) * 4;
|
||||
double ang = angle;
|
||||
double slope = AimLineAttack (ang, MELEERANGE);
|
||||
LineAttack (ang, MELEERANGE, slope, damage, 'Melee', "BeakPuff", true, t);
|
||||
double slope = AimLineAttack (ang, DEFMELEERANGE);
|
||||
LineAttack (ang, DEFMELEERANGE, slope, damage, 'Melee', "BeakPuff", true, t);
|
||||
if (t.linetarget)
|
||||
{
|
||||
angle = t.angleFromSource;
|
||||
|
|
|
@ -74,7 +74,7 @@ class Gauntlets : Weapon
|
|||
if (power)
|
||||
{
|
||||
damage = random[GauntletAtk](1, 8) * 2;
|
||||
dist = 4*MELEERANGE;
|
||||
dist = 4*DEFMELEERANGE;
|
||||
ang += random2[GauntletAtk]() * (2.8125 / 256);
|
||||
pufftype = "GauntletPuff2";
|
||||
}
|
||||
|
|
|
@ -54,8 +54,8 @@ class Staff : HereticWeapon
|
|||
return;
|
||||
}
|
||||
double ang = angle + Random2[StaffAtk]() * (5.625 / 256);
|
||||
double slope = AimLineAttack (ang, MELEERANGE);
|
||||
LineAttack (ang, MELEERANGE, slope, damage, 'Melee', puff, true, t);
|
||||
double slope = AimLineAttack (ang, DEFMELEERANGE);
|
||||
LineAttack (ang, DEFMELEERANGE, slope, damage, 'Melee', puff, true, t);
|
||||
if (t.linetarget)
|
||||
{
|
||||
//S_StartSound(player.mo, sfx_stfhit);
|
||||
|
|
|
@ -66,10 +66,10 @@ class CWeapMace : ClericWeapon
|
|||
for (int j = 1; j >= -1; j -= 2)
|
||||
{
|
||||
double ang = angle + j*i*(45. / 16);
|
||||
double slope = AimLineAttack(ang, 2 * MELEERANGE, t);
|
||||
double slope = AimLineAttack(ang, 2 * DEFMELEERANGE, t);
|
||||
if (t.linetarget)
|
||||
{
|
||||
LineAttack(ang, 2 * MELEERANGE, slope, damage, 'Melee', "HammerPuff", true, t);
|
||||
LineAttack(ang, 2 * DEFMELEERANGE, slope, damage, 'Melee', "HammerPuff", true, t);
|
||||
if (t.linetarget != null)
|
||||
{
|
||||
AdjustPlayerAngle(t);
|
||||
|
@ -81,7 +81,7 @@ class CWeapMace : ClericWeapon
|
|||
// didn't find any creatures, so try to strike any walls
|
||||
weaponspecial = 0;
|
||||
|
||||
double slope = AimLineAttack (angle, MELEERANGE);
|
||||
LineAttack (angle, MELEERANGE, slope, damage, 'Melee', "HammerPuff");
|
||||
double slope = AimLineAttack (angle, DEFMELEERANGE);
|
||||
LineAttack (angle, DEFMELEERANGE, slope, damage, 'Melee', "HammerPuff");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,10 +74,10 @@ class CWeapStaff : ClericWeapon
|
|||
for (int j = 1; j >= -1; j -= 2)
|
||||
{
|
||||
double ang = angle + j*i*(45. / 16);
|
||||
double slope = AimLineAttack(ang, 1.5 * MELEERANGE, t, 0., ALF_CHECK3D);
|
||||
double slope = AimLineAttack(ang, 1.5 * DEFMELEERANGE, t, 0., ALF_CHECK3D);
|
||||
if (t.linetarget)
|
||||
{
|
||||
LineAttack(ang, 1.5 * MELEERANGE, slope, damage, 'Melee', "CStaffPuff", false, t);
|
||||
LineAttack(ang, 1.5 * DEFMELEERANGE, slope, damage, 'Melee', "CStaffPuff", false, t);
|
||||
if (t.linetarget != null)
|
||||
{
|
||||
angle = t.angleFromSource;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
class FWeapAxe : FighterWeapon
|
||||
{
|
||||
const AXERANGE = (2.25 * MELEERANGE);
|
||||
const AXERANGE = (2.25 * DEFMELEERANGE);
|
||||
|
||||
Default
|
||||
{
|
||||
|
@ -273,8 +273,8 @@ class FWeapAxe : FighterWeapon
|
|||
// didn't find any creatures, so try to strike any walls
|
||||
self.weaponspecial = 0;
|
||||
|
||||
double slope = AimLineAttack (angle, MELEERANGE);
|
||||
LineAttack (angle, MELEERANGE, slope, damage, 'Melee', pufftype, true);
|
||||
double slope = AimLineAttack (angle, DEFMELEERANGE);
|
||||
LineAttack (angle, DEFMELEERANGE, slope, damage, 'Melee', pufftype, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ class FWeapFist : FighterWeapon
|
|||
Class<Actor> pufftype;
|
||||
FTranslatedLineTarget t;
|
||||
|
||||
double slope = AimLineAttack (angle, 2*MELEERANGE, t);
|
||||
double slope = AimLineAttack (angle, 2*DEFMELEERANGE, t);
|
||||
if (t.linetarget != null)
|
||||
{
|
||||
if (++weaponspecial >= 3)
|
||||
|
@ -69,7 +69,7 @@ class FWeapFist : FighterWeapon
|
|||
{
|
||||
pufftype = "PunchPuff";
|
||||
}
|
||||
LineAttack (angle, 2*MELEERANGE, slope, damage, 'Melee', pufftype, true, t);
|
||||
LineAttack (angle, 2*DEFMELEERANGE, slope, damage, 'Melee', pufftype, true, t);
|
||||
if (t.linetarget != null)
|
||||
{
|
||||
// The mass threshold has been changed to CommanderKeen's value which has been used most often for 'unmovable' stuff.
|
||||
|
@ -117,8 +117,8 @@ class FWeapFist : FighterWeapon
|
|||
// didn't find any creatures, so try to strike any walls
|
||||
weaponspecial = 0;
|
||||
|
||||
double slope = AimLineAttack (angle, MELEERANGE);
|
||||
LineAttack (angle, MELEERANGE, slope, damage, 'Melee', "PunchPuff", true);
|
||||
double slope = AimLineAttack (angle, DEFMELEERANGE);
|
||||
LineAttack (angle, DEFMELEERANGE, slope, damage, 'Melee', "PunchPuff", true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
class FWeapHammer : FighterWeapon
|
||||
{
|
||||
const HAMMER_RANGE = 1.5 * MELEERANGE;
|
||||
const HAMMER_RANGE = 1.5 * DEFMELEERANGE;
|
||||
|
||||
Default
|
||||
{
|
||||
|
|
|
@ -72,7 +72,7 @@ class MWeapFrost : MageWeapon
|
|||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
double ang = angle + i*(45./16);
|
||||
double slope = AimLineAttack (ang, MELEERANGE, t, 0., ALF_CHECK3D);
|
||||
double slope = AimLineAttack (ang, DEFMELEERANGE, t, 0., ALF_CHECK3D);
|
||||
if (t.linetarget)
|
||||
{
|
||||
t.linetarget.DamageMobj (self, self, damage, 'Ice', DMG_USEANGLE, t.angleFromSource);
|
||||
|
|
|
@ -70,8 +70,8 @@ class Snout : Weapon
|
|||
|
||||
int damage = random[SnoutAttack](3, 6);
|
||||
double ang = angle;
|
||||
double slope = AimLineAttack(ang, MELEERANGE);
|
||||
Actor puff = LineAttack(ang, MELEERANGE, slope, damage, 'Melee', "SnoutPuff", true, t);
|
||||
double slope = AimLineAttack(ang, DEFMELEERANGE);
|
||||
Actor puff = LineAttack(ang, DEFMELEERANGE, slope, damage, 'Melee', "SnoutPuff", true, t);
|
||||
A_PlaySound("PigActive", CHAN_VOICE);
|
||||
if(t.linetarget)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue