mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
When using the func_tank reset the FOV and hide the v_ model of knife etc.
This commit is contained in:
parent
b1ebf5fb11
commit
4e3e9351fe
@ -29,7 +29,9 @@ class RegamedllVersionInfo {
|
|||||||
return sb.toString()
|
return sb.toString()
|
||||||
}
|
}
|
||||||
String asVersion() {
|
String asVersion() {
|
||||||
sprintf("%i.%i.%i", majorVersion, minorVersion, countCommit)
|
StringBuilder sb = new StringBuilder()
|
||||||
|
sb.append(majorVersion).append('.' + minorVersion).append('.' + countCommit);
|
||||||
|
return sb;
|
||||||
}
|
}
|
||||||
String asMavenVersion() {
|
String asMavenVersion() {
|
||||||
format('.', '-', true)
|
format('.', '-', true)
|
||||||
|
@ -427,5 +427,7 @@ task generateAppVersion {
|
|||||||
|
|
||||||
renderedFile.delete()
|
renderedFile.delete()
|
||||||
renderedFile.write(content, 'utf-8')
|
renderedFile.write(content, 'utf-8')
|
||||||
|
|
||||||
|
println 'The current ReGameDLL version is ' + verInfo.asVersion().toString() + ', maven version is ' + verInfo.asMavenVersion().toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,10 @@ BOOL CFuncTank::StartControl(CBasePlayer *pController)
|
|||||||
{
|
{
|
||||||
m_pController->m_pActiveItem->Holster();
|
m_pController->m_pActiveItem->Holster();
|
||||||
m_pController->pev->weaponmodel = 0;
|
m_pController->pev->weaponmodel = 0;
|
||||||
//m_pController->pev->viewmodel = 0;
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
m_pController->pev->viewmodel = 0;
|
||||||
|
m_pController->m_iFOV = DEFAULT_FOV;
|
||||||
|
#endif // REGAMEDLL_FIXES
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pController->m_iHideHUD |= HIDEHUD_WEAPONS;
|
m_pController->m_iHideHUD |= HIDEHUD_WEAPONS;
|
||||||
|
Loading…
Reference in New Issue
Block a user