More airfist tweaks

This commit is contained in:
Finny Merrill 2003-11-29 15:45:56 +00:00
parent f9515fb630
commit 085cf83564
1 changed files with 16 additions and 7 deletions

View File

@ -289,12 +289,25 @@ void() launch_horn =
// If on the ground, makem go up, up, and away
// But this makes no sense..
if (delta_z < 0)
delta_z = delta_z / -5;
delta = delta * 0.7;
if (e.classname == "player" || IsMonster(e))
{
if (delta_z < 0)
delta_z = delta_z / -5;
delta = delta * 0.7;
} else {
if (delta_z < 0)
delta_z = delta_z / -2;
delta = delta * 0.7;
if (delta_z < 100)
delta_z = 100;
}
}
delta = normalize(delta);
delta *= percent * strength;
if (e.classname == "player") {
if (e.cutf_items & CUTF_HWGUY)
delta *= 0.3;
@ -306,10 +319,6 @@ void() launch_horn =
else if (!IsMonster(e))
delta *= 5;
// calculate the velocity adjustment.
delta = normalize(delta);
delta = delta * percent * strength;
if(self.waterlevel > 2) // if under water, change the blast amount
{
// if within 1/2 radius of the blast