Donetsk/hook_lib/party.cpp
Sku-111 1f9319f845 added custom weapdef loading
added custom weapdef loading/dumping
moved LoadInventory & autoexec back to PartyHost_StartPrivateParty_Detour
2023-11-01 20:08:30 +01:00

14 lines
383 B
C++

#include "party.h"
#include "game_inc.h"
void PartyHost_StartPrivateParty_Detour(int localClientNum, int localControllerIndex, bool currentlyActive, int hostType)
{
partyhost_startprivateparty.stub<void>(localClientNum, localControllerIndex, currentlyActive, hostType);
static bool autoexec = false;
if (!autoexec)
{
Cbuf_AddText("exec autoexec.cfg");
LoadInventory();
}
}