Best Studio 1
Best Studio
Bvural41 1
Bvural41
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Hikaye Ekle

Farklı Kamera Açısı

  • Konuyu başlatan Konuyu başlatan CorPix
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 14
  • Görüntüleme Görüntüleme 2K
5.00 yıldız(lar) 1 Değerlendirme Değerlendirenler

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

Selamlar arşivde duruyordu farklı kamera açısı ancak şuanda forumda olanlardan zom olayı biraz daha farklı
Fixlenmiş halidir https://forum.turkmmo.com/konu/3784891-celeronn11-gorus-alani-genisletme/
picture.gif


ayar_inc.h
Kod:
#define ENABLE_FOV_OPTION

PythonApplication.cpp

Ara
m_pyGrafik . SetPerspective ( 30.0f , fAspect , 100.0 , fFarClip );

Bu Şekilde Değiştir
#ifdef ENABLE_FOV_OPTION
kayan nokta fFOV = m_pySystem . GetFOVLevel ();
m_pyGrafik . SetPerspective ( fFOV , fAspect , 100.0 , fFarClip ); #else
m_pyGraphic . SetPerspective ( 30.0f , fAspect , 100.0 , fFarClip ); #endif

PythonApplicationModule.cpp

bul
#ifdef USE_OPENID
PyModule_AddIntConstant(poModule, "USE_OPENID", 1);
if (openid_test)
PyModule_AddIntConstant(poModule, "OPENID_TEST", 1);
else
PyModule_AddIntConstant(poModule, "OPENID_TEST", 0);
#else
PyModule_AddIntConstant(poModule, "USE_OPENID", 1);
PyModule_AddIntConstant(poModule, "OPENID_TEST", 1);
#endif /* USE_OPENID */

Ekle
#ifdef ENABLE_FOV_OPTION
PyModule_AddIntConstant(poModule, "ENABLE_FOV_OPTION", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_FOV_OPTION", 0);
#endif

PythonSystem.cpp

Ara
typedef struct SConfig
{
DWORD width;
DWORD height;
DWORD bpp;
DWORD frequency;
bool is_software_cursor;
bool is_object_culling;
int iDistance;
int iShadowLevel;
sonra Ekle:
#ifdef ENABLE_FOV_OPTION
FLOAT iFOVLevel;
#endif

PythonSystem.h

Ara
typedef struct SConfig
{
DWORD width;
DWORD height;
DWORD bpp;
DWORD frequency;
bool is_software_cursor;
bool is_object_culling;
int iDistance;
int iShadowLevel;

Ekle
#ifdef ENABLE_FOV_OPTION
FLOAT iFOVLevel;
#endif

Ara
int GetDistance();
int GetShadowLevel();
void SetShadowLevel(unsigned int level);
Ekle
#ifdef ENABLE_FOV_OPTION
float GetFOVLevel();
void SetFOVLevel(float fFOV);
#endif

PythonSystemModule.cpp

Ara
PyObject * systemSetMusicVolume(PyObject * poSelf, PyObject * poArgs)
{
float fVolume;
if (!PyTuple_GetFloat(poArgs, 0, &fVolume))
return Py_BuildException();
CPythonSystem::Instance().SetMusicVolume(fVolume);
return Py_BuildNone();
}

Ekle
#ifdef ENABLE_FOV_OPTION
PyObject * systemSetFOVLevel(PyObject * poSelf, PyObject * poArgs)
{
float fFOV;
if (!PyTuple_GetFloat(poArgs, 0, &fFOV))
return Py_BuildException();
CPythonSystem::Instance().SetFOVLevel(fFOV);
return Py_BuildNone();
}
PyObject * systemGetFOVLevel(PyObject * poSelf, PyObject * poArgs)
{
return Py_BuildValue("f", CPythonSystem::Instance().GetFOVLevel());
}
#endif

Ara
{ "GetShadowLevel", systemGetShadowLevel, METH_VARARGS },
{ "SetShadowLevel", systemSetShadowLevel, METH_VARARGS },

Ekle
#ifdef ENABLE_FOV_OPTION
{ "GetFOVLevel", systemGetFOVLevel, METH_VARARGS },
{ "SetFOVLevel", systemSetFOVLevel, METH_VARARGS },
#endif

uisystemoption.py

Ara
self.tilingModeButtonList = []
# self.ctrlShadowQuality = 0

Ekle
if app.ENABLE_FOV_OPTION:
self.changeFOV = 2

Ara
self.tilingModeButtonList.append(GetObject("tiling_cpu"))
self.tilingModeButtonList.append(GetObject("tiling_gpu"))
self.tilingApplyButton=GetObject("tiling_apply")

Ekle
if app.ENABLE_FOV_OPTION:
self.changeFOV = GetObject("fov_bar")

Ara
self.ctrlMusicVolume.SetSliderPos(float(systemSetting.GetMusicVolume()))
self.ctrlMusicVolume.SetEvent(ui.__mem_func__(self.OnChangeMusicVolume))
self.ctrlSoundVolume.SetSliderPos(float(systemSetting.GetSoundVolume()) / 5.0)
self.ctrlSoundVolume.SetEvent(ui.__mem_func__(self.OnChangeSoundVolume))

Ekle
if app.ENABLE_FOV_OPTION:
self.changeFOV.SetSliderPos(float(systemSetting.GetFOVLevel()) / 5.0)
self.changeFOV.SetEvent(ui.__mem_func__(self.OnChangeFOV))

Ara
def OnChangeSoundVolume(self):
pos = self.ctrlSoundVolume.GetSliderPos()
snd.SetSoundVolumef(pos)
systemSetting.SetSoundVolumef(pos)

Ekle
if app.ENABLE_FOV_OPTION:
def OnChangeFOV(self):
pos = self.changeFOV.GetSliderPos()
systemSetting.SetFOVLevel(int(pos / 0.005))

uiscript/systemoptiondialog.py
Kod:
                {
                    "name" : "fov_mode",
                    "type" : "text",
                    "x" : 30,
                    "y" : 210,
                    "text" : uiScriptLocale.OPTION_FOV,
                },
               
                {
                    "name" : "fov_bar",
                    "type" : "sliderbar",
                    "x" : 110,
                    "y" : 210,
                },


locale_xx/xx/locale_interface.txt
OPTION_FOV Field of View
 
Son düzenleme:

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst