mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
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…
x
Reference in New Issue
Block a user