Compare commits

..

5 Commits

Author SHA1 Message Date
f7e0e02932 Revert "initial GamepadUI from EZ2"
This reverts commit 19ce478dd0.
2024-10-19 21:07:07 +03:00
8dbab45f13 Revert "Some GamepadUI fixes"
This reverts commit 091308106b.
2024-10-19 21:07:01 +03:00
fd60fa6bfb LightState_t fix 2024-10-19 21:01:47 +03:00
091308106b Some GamepadUI fixes 2024-04-13 20:16:45 +03:00
19ce478dd0 initial GamepadUI from EZ2 2024-04-13 19:58:55 +03:00
2 changed files with 1 additions and 7 deletions

View File

@@ -255,12 +255,6 @@ float CalculatePhysicsImpactDamage( int index, gamevcollisionevent_t *pEvent, co
if ( pEvent->pEntities[0] == pEvent->pEntities[1] )
return 0;
if (pEvent->pEntities[otherIndex]->GetCollisionGroup() == COLLISION_GROUP_VEHICLE)
{
//Our friend is 100% vehicle, reassigning to the damage type.
damageType = DMG_VEHICLE;
}
if ( pEvent->pObjects[otherIndex]->GetGameFlags() & FVPHYSICS_NO_NPC_IMPACT_DMG )
{
if( pEvent->pEntities[index]->IsNPC() || pEvent->pEntities[index]->IsPlayer() )

View File

@@ -36,8 +36,8 @@ struct LightState_t
{
int m_nNumLights;
bool m_bAmbientLight;
bool m_bStaticLightTexel;
bool m_bStaticLightVertex;
bool m_bStaticLightTexel;
inline int HasDynamicLight() { return (m_bAmbientLight || (m_nNumLights > 0)) ? 1 : 0; }
};