Raised This Month: $ Target: $400
 0% 

AddToFullPack question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pacheco
Senior Member
Join Date: Jul 2011
Old 07-03-2013 , 20:50   AddToFullPack question
Reply With Quote #1

Hi, I'm trying to turn my entity to SOLID_NOT for CTs, with AddToFullPack.
I tried so many times.. but no results w/ server crashes .. And finally ..

PHP Code:
public plugin_init()
{
        
// [....]
         
register_forwardFM_AddToFullPack,    "FwdFullPack",   );
}

// [....]

public FwdFullPack(eseiEntityidiFlagsiPlayerpSet)
{
    new 
CsTeamsteam cs_get_user_team(id);

    new 
szName[32]
    
pev(iEntitypev_classnameszName31)
    if (
equal(szName"amxx_pallets"))
    {
        if(
iPlayer && team == CS_TEAM_CT)
            
set_es(esES_SolidSOLID_NOT);
    }
    else
        
set_es(esES_SolidSOLID_BBOX);

Doesn't work. What is wrong and what i have to do?
__________________



pacheco is offline
a7811311622
Member
Join Date: Apr 2010
Old 07-03-2013 , 23:20   Re: AddToFullPack question
Reply With Quote #2

PHP Code:
public FwdFullPack(eseiEntityidiFlagsiPlayerpSet)
{
    new 
CsTeamsteam cs_get_user_team(id);

    new 
szName[32]
    
pev(iEntitypev_classnameszName31)
    if (
equal(szName"amxx_pallets"))
    {
        if(
iPlayer && team == CS_TEAM_CT)
            
set_es(esES_SolidSOLID_NOT);
    }
    else
        
set_es(esES_SolidSOLID_BBOX);

change to
PHP Code:
public FwdFullPack(eseiEntityidiFlagsiPlayerpSet)
{
    if (!
is_user_alive(id)) return FMRES_IGNORED;
    
    new 
CsTeamsteam cs_get_user_team(id);
    
    if (!
pev_valid(iEntity)) return FMRES_IGNORED;
    
    new 
szName[32]
    
pev(iEntitypev_classnameszName31)
    if (
equal(szName"amxx_pallets"))
    {
        if(
iPlayer && team == CS_TEAM_CT)
            
set_es(esES_SolidSOLID_NOT);
    }
    else
        
set_es(esES_SolidSOLID_BBOX);
    
    return 
FMRES_IGNORED;

__________________
a7811311622 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-04-2013 , 00:41   Re: AddToFullPack question
Reply With Quote #3

Quote:
Originally Posted by pacheco View Post

Doesn't work. What is wrong and what i have to do?
AddToFullPack is not a function for this.

AddToFullPack is a function when the game is rendering entities (players and non players) for a specific player. More that rendering, it sends all entities properties to that specific player so player can predict his own movements.

When player receives the info (code you made) that entity is not solid, he is not affected by predicting slow down (little slow down effect), and if not, there is a little slow down right before touch.


So, AddToFullPack is only for rendering and predicting, and is not sent when the engine is processing physics, touchs etc..., as you can see here : https://forums.alliedmods.net/showpo...59&postcount=6

AddToFullPack is sent during SV_SendClientMessages part of engine routine.


Semiclip has to be managed during SV_ExecuteClientMessage, or some properties has to be set permanently so during this phase semiclip will be effective.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-04-2013 at 00:42.
ConnorMcLeod is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 07-04-2013 , 11:36   Re: AddToFullPack question
Reply With Quote #4

@a7811311622, thanks for your help.

Connor, thanks for explain.
So, AddToFullpack won't work here..

The correct is in Player_PreThink_Post to make the ent not_solid?
__________________



pacheco is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-04-2013 , 12:50   Re: AddToFullPack question
Reply With Quote #5

There are tutorial and semiclip plugins, just open codes ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 07-04-2013 , 17:22   Re: AddToFullPack question
Reply With Quote #6

Ok, thanks.
__________________



pacheco is offline
Reply



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 01:29.


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