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/
ayar_inc.h
PythonApplication.cpp
Ara
Bu Şekilde Değiştir
PythonApplicationModule.cpp
bul
Ekle
PythonSystem.cpp
Ara
PythonSystem.h
Ara
Ekle
Ara
PythonSystemModule.cpp
Ara
Ekle
Ara
Ekle
uisystemoption.py
Ara
Ekle
Ara
Ekle
Ara
Ekle
Ara
Ekle
uiscript/systemoptiondialog.py
locale_xx/xx/locale_interface.txt
Fixlenmiş halidir https://forum.turkmmo.com/konu/3784891-celeronn11-gorus-alani-genisletme/
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
sonra Ekle:typedef struct SConfig
{
DWORD width;
DWORD height;
DWORD bpp;
DWORD frequency;
bool is_software_cursor;
bool is_object_culling;
int iDistance;
int iShadowLevel;
#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
Ekleint GetDistance();
int GetShadowLevel();
void SetShadowLevel(unsigned int level);
#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:
https://forum.turkmmo.com/konu/3784891-celeronn11-gorus-alani-genisletme/
paylaşılmıştı zaten.
paylaşılmıştı zaten.
PythonApplication.cpp
kayan nokta fFOV = m_pySystem . GetFOVLevel (); [kayan nokta derken]
kayan nokta fFOV = m_pySystem . GetFOVLevel (); [kayan nokta derken]
Kodları Farklı
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 15
- Görüntüleme
- 731
Altın Konu
Oyun içi imsakiye & iftar/sahur alarmı
- Cevaplar
- 29
- Görüntüleme
- 3K
