Skip to content

Commit 1d5f888

Browse files
committed
misc changes
1 parent f623c81 commit 1d5f888

File tree

8 files changed

+59
-2
lines changed

8 files changed

+59
-2
lines changed

game/quiver/cfg/valve.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ stuffcmds
1515

1616
// display the startup level
1717
startupmenu
18-
map_background background01
18+
//map_background background01
1919

2020
sv_unlockedchapters 99

game/quiver/info_changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
Quiver Private Alpha 1.2.0:
2+
23
Details:
34
- Fixed a bug where the mini-crit damage effect doesn't show up when your shield breaks.
45
- Added an intro.
6+
- Fixed a bug with prop_detail texture aspect ratios
7+
- Added seamless cubemaps.
8+
- Suppressed the "Node Graph out of Date. Rebuilding..." message.
9+
- Fixed zoomed-in viewmodels flipping upside down at higher FOVs.
10+
- Fixed env_sun sprite disappearing when you look at it.
511

612
Quiver Private Alpha 1.1.0:
713
Whitelists:

game/quiver/info_credits.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ Credits:
22
- TheBetaM for the custom schema code.
33
- Sae35 for help with compiling a few maps.
44
- castaway.tf for documenting older weapon changes that inspired some Quiver Fortress weapon balances.
5-
- rafradek for some bot AI changes (sigsegv-mvm)
5+
- rafradek for some bot AI changes (sigsegv-mvm)
6+
- The Valve Developer Community for the following articles:
7+
https://developer.valvesoftware.com/wiki/Detail_props/Aspect_ratio_fix
8+
https://developer.valvesoftware.com/wiki/General_SDK_Snippets_%2526_Fixes

src/game/client/detailobjectsystem.cpp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,7 @@ void CDetailObjectSystem::LevelInitPreEntity()
14721472
}
14731473
}
14741474

1475+
#ifndef BDSBASE
14751476
if ( m_DetailObjects.Count() || m_DetailSpriteDict.Count() )
14761477
{
14771478
// There are detail objects in the level, so precache the material
@@ -1490,6 +1491,7 @@ void CDetailObjectSystem::LevelInitPreEntity()
14901491
}
14911492
}
14921493
}
1494+
#endif
14931495

14941496
int detailPropLightingLump;
14951497
if( g_pMaterialSystemHardwareConfig->GetHDRType() != HDR_TYPE_NONE )
@@ -1513,13 +1515,40 @@ void CDetailObjectSystem::LevelInitPreEntity()
15131515

15141516
void CDetailObjectSystem::LevelInitPostEntity()
15151517
{
1518+
#ifdef BDSBASE
1519+
if (m_DetailObjects.Count() || m_DetailSpriteDict.Count())
1520+
{
1521+
const char* pDetailSpriteMaterial = DETAIL_SPRITE_MATERIAL;
1522+
C_World* pWorld = GetClientWorldEntity();
1523+
if (pWorld && pWorld->GetDetailSpriteMaterial() && *(pWorld->GetDetailSpriteMaterial()))
1524+
pDetailSpriteMaterial = pWorld->GetDetailSpriteMaterial();
1525+
1526+
m_DetailSpriteMaterial.Init(pDetailSpriteMaterial, TEXTURE_GROUP_OTHER);
1527+
PrecacheMaterial(pDetailSpriteMaterial);
1528+
IMaterial* pMat = m_DetailSpriteMaterial;
1529+
1530+
// adjust for non-square textures (cropped)
1531+
float flRatio = pMat->GetMappingWidth() / pMat->GetMappingHeight();
1532+
if (flRatio > 1.0)
1533+
{
1534+
for (int i = 0; i < m_DetailSpriteDict.Count(); i++)
1535+
{
1536+
m_DetailSpriteDict[i].m_TexUL.y *= flRatio;
1537+
m_DetailSpriteDict[i].m_TexLR.y *= flRatio;
1538+
m_DetailSpriteDictFlipped[i].m_TexUL.y *= flRatio;
1539+
m_DetailSpriteDictFlipped[i].m_TexLR.y *= flRatio;
1540+
}
1541+
}
1542+
}
1543+
#else
15161544
const char *pDetailSpriteMaterial = DETAIL_SPRITE_MATERIAL;
15171545
C_World *pWorld = GetClientWorldEntity();
15181546
if ( pWorld && pWorld->GetDetailSpriteMaterial() && *(pWorld->GetDetailSpriteMaterial()) )
15191547
{
15201548
pDetailSpriteMaterial = pWorld->GetDetailSpriteMaterial();
15211549
}
15221550
m_DetailSpriteMaterial.Init( pDetailSpriteMaterial, TEXTURE_GROUP_OTHER );
1551+
#endif
15231552

15241553
if ( GetDetailController() )
15251554
{

src/game/client/glow_overlay.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ void CGlowOverlay::UpdateSkyGlowObstruction( float zFar, bool bCacheFullSceneSta
159159
if ( PixelVisibility_IsAvailable() )
160160
{
161161
// Trace a ray at the object.
162+
#ifdef BDSBASE
163+
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.99f;
164+
#else
162165
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.999f;
166+
#endif
163167

164168
// UNDONE: Can probably do only the pixelvis query in this case if you can figure out where
165169
// to put it - or save the position of this trace

src/game/client/view.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,13 @@ void CViewRender::SetUpViews()
744744
float fDefaultFov = default_fov.GetFloat();
745745
float flFOVOffset = fDefaultFov - viewEye.fov;
746746

747+
#ifdef BDSBASE
748+
//Adjust the viewmodel's FOV to move with any FOV offsets on the viewer's end
749+
viewEye.fovViewmodel = fabs(g_pClientMode->GetViewModelFOV() - MIN(flFOVOffset, g_pClientMode->GetViewModelFOV()));
750+
#else
747751
//Adjust the viewmodel's FOV to move with any FOV offsets on the viewer's end
748752
viewEye.fovViewmodel = g_pClientMode->GetViewModelFOV() - flFOVOffset;
753+
#endif
749754

750755
if ( UseVR() )
751756
{

src/game/client/viewrender.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,11 @@ void CViewRender::RenderView( const CViewSetup &viewRender, int nClearFlags, int
21062106

21072107
m_CurrentView = viewRender;
21082108

2109+
#ifdef BDSBASE
2110+
if (building_cubemaps.GetBool())
2111+
m_CurrentView.fov = RAD2DEG(2.0f * atanf(64.0f / (64 - 0.5f)));
2112+
#endif
2113+
21092114
C_BaseAnimating::AutoAllowBoneAccess boneaccess( true, true );
21102115
VPROF( "CViewRender::RenderView" );
21112116
tmZone( TELEMETRY_LEVEL0, TMZF_NONE, "%s", __FUNCTION__ );

src/game/server/ai_networkmanager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,12 @@ void CAI_NetworkManager::DelayedInit( void )
11101110
#endif
11111111

11121112
DevMsg( "Node Graph out of Date. Rebuilding... (%d, %d, %d)\n", (int)m_bDontSaveGraph, (int)!CAI_NetworkManager::NetworksLoaded(), (int) engine->IsInEditMode() );
1113+
#ifdef BDSBASE
1114+
if (developer.GetBool())
1115+
UTIL_CenterPrintAll("Node Graph out of Date. Rebuilding...\n");
1116+
#else
11131117
UTIL_CenterPrintAll( "Node Graph out of Date. Rebuilding...\n" );
1118+
#endif
11141119
m_bNeedGraphRebuild = true;
11151120
g_pAINetworkManager->SetNextThink( gpGlobals->curtime + 1 );
11161121
return;

0 commit comments

Comments
 (0)