mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
Compare commits
1 Commits
aboba2
...
vehicle-de
| Author | SHA1 | Date | |
|---|---|---|---|
| 1724a7e754 |
@@ -255,6 +255,12 @@ 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() )
|
||||
|
||||
@@ -36,8 +36,8 @@ struct LightState_t
|
||||
{
|
||||
int m_nNumLights;
|
||||
bool m_bAmbientLight;
|
||||
bool m_bStaticLightVertex;
|
||||
bool m_bStaticLightTexel;
|
||||
bool m_bStaticLightVertex;
|
||||
inline int HasDynamicLight() { return (m_bAmbientLight || (m_nNumLights > 0)) ? 1 : 0; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user