mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-02-21 11:31:03 +00:00
Make airfist not send people with aspect of hwguy flying
This commit is contained in:
parent
a1ee1acd9e
commit
6d7deb1152
2 changed files with 5 additions and 1 deletions
1
BUGS
1
BUGS
|
@ -1,2 +1,3 @@
|
|||
- info string length exceeded :/
|
||||
- duplicate connects
|
||||
- the curse color is rejected by the color changing code
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue