Raised This Month: $ Target: $400
 0% 

Question about groupinfo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GasmoN
Member
Join Date: Jul 2014
Old 01-30-2021 , 08:01   Re: Question about groupinfo
Reply With Quote #5

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(entpev_groupinfoGR_PALLET// When wall is created

public task_solid_human(TASK)
{
    new 
id TASK TASK_SOLID_HUMAN;
    
    if(!
is_user_connected(id))
    return;
    
    
set_pev(idpev_groupinfoGR_T);
    
g_TaskSet[id] = false;
}

public 
fw_touch_pallet(enttouched)
{    
    switch(
g_IsZombie[touched])
    {
        case 
false:
        {
            
set_pev(touchedpev_groupinfoGR_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(idpev_groupinfoGR_T)
}

public 
zp_fw_core_infect_post(id)
{
    
set_pev(idpev_groupinfoGR_T)

GasmoN is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode