mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Added PLAYERINFO_FOV and PLAYERINFO_DESIREDFOV for use with GetPlayerInfo. PLAYERINFO_FOV is
the player's current FOV, and PLAYERINFO_DESIREDFOV is the FOV that was set with the fov console command. SVN r3835 (trunk)
This commit is contained in:
parent
bc30b1a806
commit
8a021c4b4b
2 changed files with 7 additions and 2 deletions
|
@ -6934,7 +6934,8 @@ scriptwait:
|
|||
}
|
||||
else
|
||||
{
|
||||
userinfo_t *userinfo = &players[STACK(2)].userinfo;
|
||||
player_t *pl = &players[STACK(2)];
|
||||
userinfo_t *userinfo = &pl->userinfo;
|
||||
switch (STACK(1))
|
||||
{
|
||||
case PLAYERINFO_TEAM: STACK(2) = userinfo->team; break;
|
||||
|
@ -6945,6 +6946,8 @@ scriptwait:
|
|||
case PLAYERINFO_MOVEBOB: STACK(2) = userinfo->MoveBob; break;
|
||||
case PLAYERINFO_STILLBOB: STACK(2) = userinfo->StillBob; break;
|
||||
case PLAYERINFO_PLAYERCLASS: STACK(2) = userinfo->PlayerClass; break;
|
||||
case PLAYERINFO_DESIREDFOV: STACK(2) = (int)pl->DesiredFOV; break;
|
||||
case PLAYERINFO_FOV: STACK(2) = (int)pl->FOV; break;
|
||||
default: STACK(2) = 0; break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -664,7 +664,9 @@ public:
|
|||
PLAYERINFO_NEVERSWITCH,
|
||||
PLAYERINFO_MOVEBOB,
|
||||
PLAYERINFO_STILLBOB,
|
||||
PLAYERINFO_PLAYERCLASS
|
||||
PLAYERINFO_PLAYERCLASS,
|
||||
PLAYERINFO_FOV,
|
||||
PLAYERINFO_DESIREDFOV,
|
||||
};
|
||||
|
||||
enum EScriptState
|
||||
|
|
Loading…
Reference in a new issue