mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-23 20:52:29 +00:00
More airfist tweaks
This commit is contained in:
parent
f9515fb630
commit
085cf83564
1 changed files with 16 additions and 7 deletions
23
airfist.qc
23
airfist.qc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue