Skip to content

Commit

Permalink
Arbeit turrets only comment on being picked up if they're not on thei…
Browse files Browse the repository at this point in the history
…r side (fixes turret on table in c5_2)
  • Loading branch information
Blixibon committed Sep 7, 2021
1 parent fbee9f3 commit 99564fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp/src/game/server/hl2/npc_turret_floor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ void CNPC_Arbeit_FloorTurret::OnPhysGunPickup( CBasePlayer *pPhysGunUser, PhysGu
{
BaseClass::OnPhysGunPickup( pPhysGunUser, reason );

if (pPhysGunUser && IRelationType( pPhysGunUser ) <= D_FR && IsAlive())
if (pPhysGunUser && IRelationType( pPhysGunUser ) <= D_FR && (IsAlive() && !OnSide()))
{
SpeakIfAllowed( TLK_PICKUP );
}
Expand Down

0 comments on commit 99564fb

Please sign in to comment.