|
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
|
03-31-2018
, 22:26
Re: [L4D & L4D2] Gear Transfer (1.5.12) [17-Jul-2017]
|
#229
|
Many thanks for this very useful plugin !!!
Quote:
Code:
if( strcmp(s_Model, "models/survivors/survivor_coach.mdl") == 0 ) { Format(s_Model,9,"coach"); i_Type = 1; }
else if( strcmp(s_Model, "models/survivors/survivor_gambler.mdl") == 0 ) { Format(s_Model,9,"gambler"); i_Type = 2; }
else if( strcmp(s_Model, "models/survivors/survivor_mechanic.mdl") == 0 ) { Format(s_Model,9,"mechanic"); i_Type = 3; }
else if( strcmp(s_Model, "models/survivors/survivor_producer.mdl") == 0 ) { Format(s_Model,9,"producer"); i_Type = 4; }
else if( strcmp(s_Model, "models/survivors/survivor_namvet.mdl") == 0 ) { Format(s_Model,9,"NamVet"); i_Type = 5; }
else if( strcmp(s_Model, "models/survivors/survivor_biker.mdl") == 0 ) { Format(s_Model,9,"Biker"); i_Type = 6; }
else if( strcmp(s_Model, "models/survivors/survivor_manager.mdl") == 0 ) { Format(s_Model,9,"Manager"); i_Type = 7; }
else if( strcmp(s_Model, "models/survivors/survivor_teenangst.mdl") == 0 ) { Format(s_Model,9,"TeenGirl"); i_Type = 8; }
else { LogError("failed to vocalize %s for %s", s_Class, s_Model); return; }
|
Okay, I think it's a bit incorrect, because if I change my skin to custom, plugin is starting to spam in sm-errors log, like:
Quote:
L 04/01/2018 - 03:26:25: [l4d_gear_transfer.smx] failed to vocalize weapon_molotov for models/survivors/my_lovely_model.mdl
|
Can you please place some voice as a default instead of error placeholder?
|
|
|
|