Talk:Shadowsource

From Valve Developer Community
Jump to: navigation, search

physics.cpp, ShouldCollide function, line 579. Causes ep2_outland_12 to crash every time according to the mdmp. --TheRealJman 17:08, 11 April 2010 (UTC)

Some random fixes, the dynamic respawn crashed for me a lot, so I added a 3 second wait to respawning in multiplay_gamerules.cpp

float CMultiplayRules::FlPlayerSpawnTime( CBasePlayer *pPlayer )
{
	return gpGlobals->curtime + 3;//now!
}

If one of your players dies during a scripted_sequence, the ai will stop going through their sequence altogether. A quick fix is to edit hl2_player.cpp's event_killed function. You can remove or just blank the notifyscriptsofdeath function if you want.

void CHL2_Player::Event_Killed( const CTakeDamageInfo &info )
{
	BaseClass::Event_Killed( info );

	//FirePlayerProxyOutput( "PlayerDied", variant_t(), this, this );
	//NotifyScriptsOfDeath();
}

To fix the attackchopper crashing levels such as ep2_outland_08, change the IsThrownByPlayer function in npc_attackchopper.cpp by removing the IsPlayer check.

bool CGrenadeHelicopter::IsThrownByPlayer()
{
// if player is the owner and we're set to explode on contact, then the player threw this grenade.
#ifdef SS_Enable_Fixed_Multiplayer_AI	
return ( m_bExplodeOnContact ); 
#else
return ( ( GetOwnerEntity() == UTIL_GetLocalPlayer() ) && m_bExplodeOnContact );
#endif //SS_Enable_Fixed_Multiplayer_AI

Patch Install Issues

I was going through the extra fixes after the 1.75 patch and the "find x" bits for gameinterface.cpp don't exist in the file - not even touched in the patch. Something with next version or? --Lost 16:35, 2 May 2010 (UTC)

Yes you're quite correct I appear to have been using an enhanced V1.75 when I added in those extra fixes. I would have been able to find out for you sooner if my PSU hadn't given up on my gaming PC ;)

Anyway put:

#ifdef SS_USE_PLAYERCLASSES

extern int AssaulterPlayerNumbers;

extern int SupporterPlayerNumbers;

extern int MedicPlayerNumbers;

extern int HeavyPlayerNumbers;

AssaulterPlayerNumbers = 0;

SupporterPlayerNumbers = 0;

MedicPlayerNumbers = 0;

HeavyPlayerNumbers = 0;

#endif //SS_USE_PLAYERCLASSES

in CServerGameDLL::LevelShutdown of gameinterface.cpp

--Chiefwhosm 13:40, 23 May 2010 (UTC)