When using the func_tank reset the FOV and hide the v_ model of knife etc.

This commit is contained in:
s1lentq 2016-02-01 16:46:31 +06:00
parent b1ebf5fb11
commit 4e3e9351fe
3 changed files with 9 additions and 2 deletions

View File

@ -29,7 +29,9 @@ class RegamedllVersionInfo {
return sb.toString()
}
String asVersion() {
sprintf("%i.%i.%i", majorVersion, minorVersion, countCommit)
StringBuilder sb = new StringBuilder()
sb.append(majorVersion).append('.' + minorVersion).append('.' + countCommit);
return sb;
}
String asMavenVersion() {
format('.', '-', true)

View File

@ -427,5 +427,7 @@ task generateAppVersion {
renderedFile.delete()
renderedFile.write(content, 'utf-8')
println 'The current ReGameDLL version is ' + verInfo.asVersion().toString() + ', maven version is ' + verInfo.asMavenVersion().toString();
}
}

View File

@ -269,7 +269,10 @@ BOOL CFuncTank::StartControl(CBasePlayer *pController)
{
m_pController->m_pActiveItem->Holster();
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;