Raised This Month: $32 Target: $400
 8% 

Ayuda con FM_AddToFullPack


  
 
 
Thread Tools Display Modes
UnrealT
Member
Join Date: Jul 2013
Old 07-28-2013 , 19:49   Re: Ayuda con FM_AddToFullPack
#11

Quote:
Originally Posted by r0ma View Post
Lo mejor que pude hacer es esto para mi es una negrada:

PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < fakemeta >
#include < xs >

#define PLUGIN "Test"
#define VERSION "1.0.0"
#define AUTHOR "r0ma'"

new const model[ ] = "models/box.mdl";
new 
g_ent;

public 
plugin_precache( ) {
    
precache_modelmodel );
}

public 
plugin_init( ) {
    
register_pluginPLUGINVERSIONAUTHOR );
    
    
register_forwardFM_AddToFullPack"fw_AddToFullPack" );
    
register_forwardFM_AddToFullPack"fw_AddToFullPack");
    
RegisterHamHam_Touch"info_target""fw_Touch" );
    
//register_forward( FM_Touch, "fw_Touch" );
    
    
register_clcmd"test""clcmd_test" );
    
    
g_ent engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString"info_target" ) );
    
    
set_pevg_entpev_classname"test_ent" );
    
set_pevg_entpev_solidSOLID_NOT );
    
    
engfuncEngFunc_SetModelg_entmodel );
    
engfuncEngFunc_SetSizeg_entFloat:{ -16.7, -16.70.0 }, Float:{ 16.716.733.4 } );
}

public 
clcmd_testid ) {
    new 
Float:Origin];
    
    
pevidpev_originOrigin );
    
    
Origin] += 64.0;
    
    
engfuncEngFunc_SetOriging_entOrigin );
    
    return 
PLUGIN_HANDLED;
}

public 
fw_AddToFullPackeseenthosthostflagplayerpSet ) {
    if( 
ent == g_ent && is_user_alivehost ) && get_user_teamhost ) == ) {
        
set_esesES_SolidSOLID_BBOX );
        
ExecuteHamBHam_Touchenthost );
    }
}

public 
fw_Touchentid ) {
    static 
Float:Origin], Float:Origin2];
    
peventpev_originOrigin );
    
pevidpev_originOrigin2 );
    
    if( 
ent == g_ent && get_distance_fOriginOrigin2 ) <= 25.0 ) {
        
// Esto lo saque del sma de una bubble
        
        
new Float:Origin];
        new 
Float:Center];
        new 
Float:Direction];
        
        
pevidpev_originOrigin );
        
peventpev_originCenter );
        
        
xs_vec_subOriginCenterDirection );
        
xs_vec_mul_scalarDirection2.5Direction );
        
        
set_pevidpev_velocityDirection );
    }

Es solo en ejemplo de una entidad "solida" para los TT y no solida para los CT.
Disculpa , parercera estúpida mi pregunta, pero nunca etendi esto
PHP Code:
engfuncEngFunc_SetSizeg_entFloat:{ -16.7, -16.70.0 }, Float:{ 16.716.733.4 } ); 
Como puedo saber cuanto es el min y max del model? o esos valores lo tiras al azar? jajaja

Last edited by UnrealT; 07-28-2013 at 19:52.
UnrealT is offline
_Pro_
Senior Member
Join Date: Mar 2012
Location: Argentina
Old 07-28-2013 , 19:54   Re: Ayuda con FM_AddToFullPack
#12

No se como hacer para medir las unidades del model, pero son los minimos y maximos, si no me equivoco es el largo, ancho y hueco de la entidad medido en unidades como las que cuenta/mide el lj stats... si estoy mal corrijanme
_Pro_ is offline
Send a message via MSN to _Pro_ Send a message via Skype™ to _Pro_
Anti
Senior Member
Join Date: Jul 2012
Location: sky
Old 07-28-2013 , 21:08   Re: Ayuda con FM_AddToFullPack
#13

el 'hueco' lo cambiaria por profundidad :/
Anti is offline
Send a message via Skype™ to Anti
r0ma
Senior Member
Join Date: Apr 2012
Location: Great Tomb of Nazarick
Old 07-28-2013 , 22:06   Re: Ayuda con FM_AddToFullPack
#14

Para saber los mins y maxs del model lo tenes que ver con HLMV -> Options -> Dump Model info. O anda por algun lado una stock para ver tambien solo hay que editar 2 cositas.
__________________
Discord:FluffyDeveloper#4753
Github: https://github.com/francoromaniello
AMX-ES: https://amxmodx-es.com/r0ma'
r0ma is offline
Send a message via MSN to r0ma
 



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 22:21.


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