Raised This Month: $ Target: $400
 0% 

game_player_equip


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-17-2010 , 19:45   Re: game_player_equip
Reply With Quote #7

I'm idiot, I was aware. Last time I have decompiled PlayerSpawn() for Connor and it's quite the same as the HLSDK one and we can see well it search for game_player_equip automatically :

Code:
void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer ) {     if ( pPlayer->m_bJustConnected )     {         return;     }     bool addDefault = true;     CBaseEntity *pWeapon = NULL;         pPlayer->pev->weapons |= ( 1 << WEAPON_SUIT );     while ( pWeapon = UTIL_FindEntityByClassname( pWeapon, "game_player_equip" ) )     {         pWeapon->Touch( pPlayer );         addDefault = false;     }     if ( pPlayer->m_bNotKilled )     {         addDefault = false;     }         if ( addDefault || pPlayer->m_bIsVIP )     {         pPlayer->GiveDefaultItems();     }     pPlayer->SetPlayerModel(); }
__________________

Last edited by Arkshine; 03-17-2010 at 19:51.
Arkshine is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode