AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   DLLFunc_Spawn (https://forums.alliedmods.net/showthread.php?t=101961)

meTaLiCroSS 08-28-2009 22:38

DLLFunc_Spawn
 
In Engine is DispatchSpawn?

AntiBots 08-28-2009 22:58

Re: DLLFunc_Spawn
 
Yes

Engine:
PHP Code:

static cell AMX_NATIVE_CALL DispatchSpawn(AMX *amxcell *params)
{
    
int iEnt params[1];

    
CHECK_ENTITY(iEnt);

    
edict_t *pEnt INDEXENT2(iEnt);
    
    
MDLL_Spawn(pEnt);

    return 
1;
}

#define MDLL_FUNC    gpGamedllFuncs->dllapi_table
#define MDLL_Spawn                        MDLL_FUNC->pfnSpawn 

Fakemeta:
PHP Code:

    case    DLLFunc_Spawn:    // int )                ( edict_t *pent );
        
cRet MF_GetAmxAddr(amx,params[2]);
        
index=cRet[0];
        
CHECK_ENTITY(index);
        return 
gpGamedllFuncs->dllapi_table->pfnSpawn(INDEXENT2(index)); 


meTaLiCroSS 08-28-2009 23:05

Re: DLLFunc_Spawn
 
Quote:

Originally Posted by AntiBots (Post 916178)
Yes

Engine:
PHP Code:

static cell AMX_NATIVE_CALL DispatchSpawn(AMX *amxcell *params)
{
    
int iEnt params[1];

    
CHECK_ENTITY(iEnt);

    
edict_t *pEnt INDEXENT2(iEnt);
    
    
MDLL_Spawn(pEnt);

    return 
1;
}

#define MDLL_FUNC    gpGamedllFuncs->dllapi_table
#define MDLL_Spawn                        MDLL_FUNC->pfnSpawn 

Fakemeta:
PHP Code:

    case    DLLFunc_Spawn:    // int )                ( edict_t *pent );
        
cRet MF_GetAmxAddr(amx,params[2]);
        
index=cRet[0];
        
CHECK_ENTITY(index);
        return 
gpGamedllFuncs->dllapi_table->pfnSpawn(INDEXENT2(index)); 


:crab:

Arkshine 08-29-2009 05:23

Re: DLLFunc_Spawn
 
Why don't you search yourself ? It taks 5 seconds to search on the wiki or less if you look at the .inc directly.


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

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