Notes |
|
|
Is the land command specific to Skulltag/Zandronum? |
|
|
(0005042)
|
Esum
|
2012-10-07 18:05
|
|
The land command is not specific to Zandronum and exists in ZDoom. It interrupts flight and make the player who used it fall. |
|
|
|
I see. I thought it was specific to Zandronum since it wouldn't respond when called from the console offline. Speaking of which, perhaps spectators should be allowed to use the land command properly. |
|
|
(0009802)
|
Esum
|
2014-06-30 11:37
(edited on: 2014-06-30 12:28) |
|
Here is the relevant part of the code:
Quote from p_user.cpp
3121 // Allow the spectator to do a few things, then break out.
3122 if ( player->bSpectating )
3123 {
... ...
3133 // Allow the player to fly around when a spectator.
3134 player->mo->flags |= MF_NOGRAVITY;
3135 player->mo->flags2 |= MF2_FLY;
... ...
3200 if ( cmd->ucmd.upmove == -32768 )
3201 { // Only land if in the air
3202 if ((player->mo->flags2 & MF2_FLY) && player->mo->waterlevel < 2)
3203 {
3204 player->mo->flags2 &= ~MF2_FLY;
3205 player->mo->flags &= ~MF_NOGRAVITY;
3206 }
3207 }
... ...
3225 // Done with spectator specific logic.
3226 return;
3227 }
If a spectator uses the land command he loses his ability to fly and becomes subject to gravity for one tick.
This issue is related to'http://zandronum.com/tracker/view.php?id=1641 [^]'
|
|
|
(0009833)
|
Esum
|
2014-07-04 11:22
|
|
|
|
(0013211)
|
cobalt
|
2015-08-11 19:04
|
|
|
|
|
Tested this with 3.0-alpha-150819-2351. The land command causes me to fall out of the sky and land on the ground with gravity in effect permantely. I have to use FLY to float around again. Not sure if this behavior is correct. |
|
|
|
Yes that's what it's supposed to do. |
|