More airfist tweaks
This commit is contained in:
parent
f9515fb630
commit
085cf83564
23
airfist.qc
23
airfist.qc
|
@ -289,12 +289,25 @@ void() launch_horn =
|
||||||
// If on the ground, makem go up, up, and away
|
// If on the ground, makem go up, up, and away
|
||||||
// But this makes no sense..
|
// But this makes no sense..
|
||||||
|
|
||||||
if (delta_z < 0)
|
if (e.classname == "player" || IsMonster(e))
|
||||||
delta_z = delta_z / -5;
|
{
|
||||||
delta = delta * 0.7;
|
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.classname == "player") {
|
||||||
if (e.cutf_items & CUTF_HWGUY)
|
if (e.cutf_items & CUTF_HWGUY)
|
||||||
delta *= 0.3;
|
delta *= 0.3;
|
||||||
|
@ -306,10 +319,6 @@ void() launch_horn =
|
||||||
else if (!IsMonster(e))
|
else if (!IsMonster(e))
|
||||||
delta *= 5;
|
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(self.waterlevel > 2) // if under water, change the blast amount
|
||||||
{
|
{
|
||||||
// if within 1/2 radius of the blast
|
// if within 1/2 radius of the blast
|
||||||
|
|
Loading…
Reference in New Issue