Make airfist not send people with aspect of hwguy flying

This commit is contained in:
Adam Olsen 2001-07-21 03:57:34 +00:00
parent a1ee1acd9e
commit 6d7deb1152
2 changed files with 5 additions and 1 deletions

1
BUGS
View file

@ -1,2 +1,3 @@
- info string length exceeded :/
- duplicate connects
- the curse color is rejected by the color changing code

View file

@ -273,7 +273,7 @@ void() launch_horn =
// Convert distance to a percentage.
percent = (inRange - dist) / inRange;
if (e.flags & #FL_ONGROUND)
if (e.flags & #FL_ONGROUND && !(e.classname == "player" && e.cutf_items & #CUTF_HWGUY))
{
// If there on the ground, raise them up so that the velocity will
// take affect.
@ -295,6 +295,9 @@ void() launch_horn =
delta_z = 100;
}
if (e.classname == "player" && e.cutf_items & #CUTF_HWGUY)
delta = '0 0 0';
// calculate the velocity adjustment.
delta = normalize(delta);
delta = delta * percent * strength;