PrimeXT icon indicating copy to clipboard operation
PrimeXT copied to clipboard

No saverestore in game_player_equip (FIX)

Open Aynekko opened this issue 5 years ago • 0 comments

Server, maprules.cpp: Add:

BEGIN_DATADESC( CGamePlayerEquip )
	DEFINE_AUTO_ARRAY( m_weaponCount, FIELD_INTEGER ),
	DEFINE_AUTO_ARRAY( m_weaponNames, FIELD_STRING ),
	DEFINE_FUNCTION( EquipPlayer ),
END_DATADESC()

Before the line LINK_ENTITY_TO_CLASS( game_player_equip, CGamePlayerEquip );

Also add: DECLARE_DATADESC(); into class CGamePlayerEquip : public CRulePointEntity

Aynekko avatar Nov 26 '20 15:11 Aynekko