mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-25 22:24:16 +00:00
Merge pull request #99 from FreeSlave/rpg_laserspot
Don't show rpg laser spot when player using func_tank
This commit is contained in:
commit
f75929a4b7
@ -535,6 +535,9 @@ void CRpg::UpdateSpot( void )
|
|||||||
#ifndef CLIENT_DLL
|
#ifndef CLIENT_DLL
|
||||||
if( m_fSpotActive )
|
if( m_fSpotActive )
|
||||||
{
|
{
|
||||||
|
if (m_pPlayer->pev->viewmodel == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if( !m_pSpot )
|
if( !m_pSpot )
|
||||||
{
|
{
|
||||||
m_pSpot = CLaserSpot::CreateSpot();
|
m_pSpot = CLaserSpot::CreateSpot();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user