View Single Post
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 05-02-2015 , 17:31   Re: [CS:S] Ammo From Dead
Reply With Quote #169

I'm close to test this new combination, but I've noticed you've used boxsrounds.mdl everywhere, I've changed that:

Code:
	HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_pistolammo_model", "models/items/boxsrounds.mdl", 
	"Specify the model to use for pistol ammo boxes.")), OnPistolModelChanged);
	GetConVarString(hRandom, g_sPistolModel, sizeof(g_sPistolModel));
	SetAppend(appended);
	
	HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_otherammo_model", "models/items/boxmrounds.mdl", 
	"Specify the model to use for other weapon ammo boxes.")), OnOtherModelChanged);
	GetConVarString(hRandom, g_sOtherModel, sizeof(g_sOtherModel));
	SetAppend(appended);
	
	HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_sgammo_model", "models/items/boxbuckshot.mdl", 
	"Specify the model to use for shotgun ammo boxes.")), OnSGModelChanged);
	GetConVarString(hRandom, g_sSGModel, sizeof(g_sSGModel));
	SetAppend(appended);
EDIT:
And I recieve this error, while compiling using SM 1.7.1:

Quote:
// X:\sourcemod-1.7.1-windows\addons\sourcemod\scripting\include\sm lib/entities.inc(33) : error 138: const was specified twice

Last edited by GrO; 05-02-2015 at 18:20.
GrO is offline