True, but than when stop touching the entity, it will still be NOT solid. Also, in the mid time, wall would't take any damage if CT is touching it because of it's SOLID_NOT flag.
So, I only came up with this poor way to do this, so if anyone got any other idea, I am open for suggestions/advices.
PHP Code:
#define TASK_SOLID_HUMAN 192382
#define GR_CT 2 & 1
#define GR_T 2 | 1
#define GR_PALLET 1
new bool:g_TaskSet[33];
set_pev(ent, pev_groupinfo, GR_PALLET) // When wall is created
public task_solid_human(TASK)
{
new id = TASK - TASK_SOLID_HUMAN;
if(!is_user_connected(id))
return;
set_pev(id, pev_groupinfo, GR_T);
g_TaskSet[id] = false;
}
public fw_touch_pallet(ent, touched)
{
switch(g_IsZombie[touched])
{
case false:
{
set_pev(touched, pev_groupinfo, GR_CT);
switch(g_TaskSet[touched])
{
case false:
{
remove_task(touched+TASK_SOLID_HUMAN);
set_task(1.0, "task_solid_human", touched+TASK_SOLID_HUMAN);
g_TaskSet[touched] = true;
}
}
}
}
}
public zp_fw_core_cure_post(id)
{
set_pev(id, pev_groupinfo, GR_T)
}
public zp_fw_core_infect_post(id)
{
set_pev(id, pev_groupinfo, GR_T)
}