Changed all of the isometric functionality to mapinfo and playerinfo variables. Retained function of most of the CVars.
This commit is contained in:
parent
d2c2c93cf1
commit
dc897eacc0
15 changed files with 101 additions and 34 deletions
|
|
@ -1803,6 +1803,8 @@ void FLevelLocals::Init()
|
|||
flags3 = 0;
|
||||
ImpactDecalCount = 0;
|
||||
frozenstate = 0;
|
||||
isocam_pitch = 30.f;
|
||||
iso_dist = 300.f;
|
||||
|
||||
info = FindLevelInfo (MapName.GetChars());
|
||||
|
||||
|
|
@ -1833,6 +1835,12 @@ void FLevelLocals::Init()
|
|||
if (info->gravity == DBL_MAX) gravity = 0;
|
||||
else gravity = info->gravity * 35/TICRATE;
|
||||
}
|
||||
if (info->isocam_pitch < 0.f) isocam_pitch = 0.f;
|
||||
else if (info->isocam_pitch > 89.f) isocam_pitch = 89.f;
|
||||
else isocam_pitch = info->isocam_pitch;
|
||||
if (info->iso_dist < 1.f) iso_dist = 1.f;
|
||||
if (info->iso_dist > 1000.f) iso_dist = 1000.f;
|
||||
else iso_dist = info->iso_dist;
|
||||
if (info->aircontrol != 0.f)
|
||||
{
|
||||
aircontrol = info->aircontrol;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue