mirror of https://github.com/FWGS/hlsdk-xash3d
Fix weapon respawn
This commit is contained in:
parent
90ed3bb8d2
commit
cb47acfe45
|
@ -600,7 +600,7 @@ CBaseEntity* CBasePlayerItem::Respawn( void )
|
|||
{
|
||||
// make a copy of this weapon that is invisible and inaccessible to players (no touch function). The weapon spawn/respawn code
|
||||
// will decide when to make the weapon visible and touchable.
|
||||
CBaseEntity *pNewWeapon = CBaseEntity::Create( STRING( pev->classname ), g_pGameRules->VecWeaponRespawnSpot( this ), pev->angles, pev->owner );
|
||||
CBaseEntity *pNewWeapon = CBaseEntity::Create( STRING( pev->classname ), m_SpawnPoint, m_SpawnAngles, pev->owner );
|
||||
|
||||
if( pNewWeapon )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue