Minas láser
#26
(26/02/2015, 12:50 AM)mongito100 escribió:
(25/02/2015, 10:12 PM)ErikMav94 escribió: linea 207 aprox , error de tipeo tuyo :B

Código PHP:
PrintColorid,"^x04[ %s ]^x0 1No puedes^x04 remover^x01 lasers.",g_szCommunity 

^x0 1 --> ^x01

sino , no aparece nada en el chat solo el prefijo de "g_szCommunity".

-----------------------------

Después con lo de no romper un laser del mismo team, siendo ct y quiero romper mi propio laser y no podría

También probé el code de mongito para cuando se explota un laser te impulse , pero no funciona

---------------------------------


Si rompo un laser solamente con el cuchillo y con el slash , no se crea explosión y el laser sigue ahí , solo se remueve el model :p

[Imagen: AoHrnma.jpg]
Yo lo probe al code q pase y andaba no se con las nuevas actualizaciones si cambio algo

en el code que pasaste usas GetUserTeam, treki no usa mas eso , lo actualizo
Responder
#27
(26/02/2015, 01:04 AM)ErikMav94 escribió:
(26/02/2015, 12:50 AM)mongito100 escribió:
(25/02/2015, 10:12 PM)ErikMav94 escribió: linea 207 aprox , error de tipeo tuyo :B

Código PHP:
PrintColorid,"^x04[ %s ]^x0 1No puedes^x04 remover^x01 lasers.",g_szCommunity 

^x0 1 --> ^x01

sino , no aparece nada en el chat solo el prefijo de "g_szCommunity".

-----------------------------

Después con lo de no romper un laser del mismo team, siendo ct y quiero romper mi propio laser y no podría

También probé el code de mongito para cuando se explota un laser te impulse , pero no funciona

---------------------------------


Si rompo un laser solamente con el cuchillo y con el slash , no se crea explosión y el laser sigue ahí , solo se remueve el model :p

[Imagen: AoHrnma.jpg]
Yo lo probe al code q pase y andaba no se con las nuevas actualizaciones si cambio algo

en el code que pasaste usas GetUserTeam, treki no usa mas eso , lo actualizo

Bueno pero eso es algo q podes cambiar creo q tenes los conocimientos...
[TUT] Carnage

Fight

"El limite de los backdoors de gente q sabe programar como nostros lo impone nuestra maldad interior y creeme q soy muy malo en el interior"

Anónimo
Responder
#28
(25/02/2015, 10:12 PM)ErikMav94 escribió: linea 207 aprox , error de tipeo tuyo :B

Código PHP:
PrintColorid,"^x04[ %s ]^x0 1No puedes^x04 remover^x01 lasers.",g_szCommunity 

^x0 1 --> ^x01

sino , no aparece nada en el chat solo el prefijo de "g_szCommunity".

-----------------------------

Después con lo de no romper un laser del mismo team, siendo ct y quiero romper mi propio laser y no podría

También probé el code de mongito para cuando se explota un laser te impulse , pero no funciona

---------------------------------


Si rompo un laser solamente con el cuchillo y con el slash , no se crea explosión y el laser sigue ahí , solo se remueve el model :p

[Imagen: AoHrnma.jpg]

Ahí arregle el error de tipeo y lo del dueño del láser ( o se supone xP ). Lo del slash del cuchillo nunca me pasó, no tocaste nada?

Saludos.
No hago trabajos privados. Si necesitás ayuda, abrí un nuevo tema.
¿Buscás un ejemplo o algún modo de juego? Podés echarle un vistazo a mis aportes
.
Responder
#29
los lasers tienen 1 solo color?
Responder
#30
(26/02/2015, 04:27 PM)cLi escribió: los lasers tienen 1 solo color?

Rojo para TT, azul para CT, podes editar el sourcecode sino, no es difícil cambiarlo.
Responder
#31
bug
Código PHP:
public fw_LaserTakeDamageiEnt,iInflictor,iAttacker,Float:fDamage,iDamageBits )
{
    if( 
IsPlayerBitg_ServerDataPLAYER_ALIVE ],iAttacker ) && ( get_user_teamiAttacker ) == peviEnt,LASER_TEAM ) ) && ( peviEnt,pev_owner ) != iAttacker ) )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;


-------------------------->

Código PHP:
public fw_LaserTakeDamageiEnt,iInflictor,iAttacker,Float:fDamage,iDamageBits )
{
    if( 
IsPlayerBitg_ServerDataPLAYER_ALIVE ],iAttacker ) || ( peviEnt,LASER_OWNER) != iAttacker ) )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;


Pd: Treki no me respondiste lo de los angulos
[TUT] Carnage

Fight

"El limite de los backdoors de gente q sabe programar como nostros lo impone nuestra maldad interior y creeme q soy muy malo en el interior"

Anónimo
Responder
#32
que parte del source seria para editar los colores del team ?
Código PHP:
DrawLaserBeamiEnt )
{
    static 
Float:fColor],Float:fVectorLASER_VECTOR ][ ],Float:fMins],Float:fMaxs],iBeam;
    
    
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } );
    
iBeam engfuncEngFunc_CreateNamedEntity,g_ServerDataBEAM_ENTITY ] );
    
    
set_peviBeam,pev_flagspeviBeam,pev_flags ) | FL_CUSTOMENTITY )
    
    
set_peviBeam,pev_model,g_ServerResourcesRES_BEAM ] )
    
set_peviBeam,pev_modelindex,g_ServerDataBEAM_MODELINDEX ] )
    
    
set_peviBeam,pev_body,);
    
set_peviBeam,pev_scale,5.0 );
    
set_peviBeam,pev_animtime,255.0 );
    
    
set_peviBeam,pev_renderamt,255.0 );
    
set_peviBeam,pev_rendercolor,fColor );
    
    
peviEnt,LASER_END,fVectorLV_END ] );
    
peviEnt,LASER_ORIGIN,fVectorLV_PLAYER ] );
    
    
set_peviBeam,LASER_ORIGIN,fVectorLV_END ] );
    
set_peviBeam,LASER_ANGLES,fVectorLV_PLAYER ] );
    
    
fMins] = floatminfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMins] = floatminfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMins] = floatminfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
    
fMaxs] = floatmaxfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMaxs] = floatmaxfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMaxs] = floatmaxfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
    
engfuncEngFunc_SetSize,iBeam,fMins,fMaxs )
    
engfuncEngFunc_SetOrigin,iBeam,fVectorLV_END ] )
    
    
set_peviEnt,LASER_BEAM,iBeam )


Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ); 

creo que es ese el color del laser... pero nose que tendria que hacer para crer otro

Código PHP:
if get_user_team 
es algo asi ?
Responder
#33
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ) 

azul CT { 0.0,0.0,255.0 }
rojo TT { 255.0,0.0,0.0 }

cambialo por el color q quieras en combinacion de RGB
[TUT] Carnage

Fight

"El limite de los backdoors de gente q sabe programar como nostros lo impone nuestra maldad interior y creeme q soy muy malo en el interior"

Anónimo
Responder
#34
Viendo las cucarachas de metalicross saque un stock que usa él para ver si una entidad esta "trabada" o no

y bueno se me ocurrió usarla para detectar cuando las minas laser se bugean con un player que las devuelva a su creador
------------------------------------------------------------

esto ya esta definido en el plugin de los lasers y lo uso en el stock de abajo
Código PHP:
#define IsPlayerValid(%1) ( 1 <= %1 <= 32 ) 

luego en public fw_LaserThink( iEnt )

Código PHP:
case LASER_POWERUP:
        {
            
set_peviEnt,pev_solid,SOLID_BBOX )
            
set_peviEnt,pev_takedamage,1.0 )
            
            
set_peviEnt,LASER_STEP,LASER_ACTIVATED )
            
            
DrawLaserBeamiEnt )
            
            
emit_soundiEnt,CHAN_VOICE,g_ServerResourcesRES_ACTIVATED ],0.5,ATTN_NORM,1,75 );
            
            
set_peviEnt,pev_nextthink,get_gametime( ) + 0.2 );
       
       static 
Float:fOriginLASER[3];
       
peviEnt,LASER_ORIGIN,fOriginLASER);
       
       if(
IsEntityStuckedPlayeriEnt,fOriginLASER)){
           new 
owner peviEnt,LASER_OWNER )
        
RemoveLaseriEnt );
        
PrintColorowner,"^x04[ %s ]^x01 Lasermine^x04 devuelto^x01 por bug.",g_szCommunity )
        if(
g_UserDataowner ][ LASER_AMOUNT ] < 3)
        
g_UserDataowner ][ LASER_AMOUNT ]++
       }
       
            
            return 
HAM_IGNORED;
        } 

acá el stock

Código PHP:
bool:IsEntityStuckedPlayer(iEnt, const Float:vecPosition[3])
{
    
engfunc(EngFunc_TraceMonsterHulliEntvecPositionvecPositionDONT_IGNORE_MONSTERSiEnt0);
    
    return 
IsPlayerValid(get_tr2(0TR_pHit))
    

Responder
#35
si el laser queda en el aire te lo devolveria ?
Responder
#36
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } );
                                                       
// Color laser ct               Color laser TT 

Fuck me ganan pacman
[Imagen: bvpq9q-6.png]

NO DOY AYUDA VIA MENSAJE PRIVADO

* Si requieres algún servicio de pago puedes contactarme vía MP o en mi facebook
Responder
#37
Mongito puse el color pero no cambia el color del laser son los 2 azules
Responder
#38
(26/02/2015, 05:56 PM)cLi escribió: Mongito puse el color pero no cambia el color del laser son los 2 azules

Por q habras puesto en los 2 el mismo color uno es para tt y el otro para ct elprimero es ct el segundo tt
[TUT] Carnage

Fight

"El limite de los backdoors de gente q sabe programar como nostros lo impone nuestra maldad interior y creeme q soy muy malo en el interior"

Anónimo
Responder
#39
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ); 
lo puse identicamente como me lo paso kikizon y soy tt y pongo lasers celestes

code entero Whatdone
Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#include <xs>
#if AMXX_VERSION_NUM <= 182
const Ham:Ham_CS_Player_ResetMaxSpeed Ham_Item_PreFrame;
#endif 

/* ===========================================================================?====================================
 *                 [ Enums & Macros ]
 * ===========================================================================?====================================*/

#define MarkPlayerBit(%1,%2)     ( %1 |= ( 1 << ( %2 & 31 ) ) )
#define ClearPlayerBit(%1,%2)    ( %1 &= ~( 1 << ( %2 & 31 ) ) )
#define IsPlayerBit(%1,%2)         ( %1 & ( 1 << ( %2 & 31 ) ) )

#define IsPlayerValid(%1) ( 1 <= %1 <= 32 )

#define TASK_LASER 1111
#define ID_TASK ( iTask - TASK_LASER )

enum _:LASER_VECTOR {
    
Float:LV_PLAYER,
    
Float:LV_ANGLES,
    
Float:LV_END,
    
Float:LV_NORMAL,
}

enum _:LASER_PROPS {
    
LASER_OWNER pev_iuser1,
    
LASER_BEAM pev_iuser2,
    
LASER_TEAM pev_iuser3,
    
LASER_STEP pev_iuser4,
    
LASER_END pev_vuser1,
    
LASER_ANGLES pev_angles,
    
LASER_ORIGIN pev_origin,
    
LASER_POWERUP 0,
    
LASER_ACTIVATED 1,
    
LASER_EXPLODE 2,
    
LASER_BUY 3,
    
LASER_CREATE 4,
    
LASER_REMOVE 5
}

enum _:SERVER_DATA {
    
LASER_ABLE,
    
PLAYER_FROZEN,
    
PLAYER_ALIVE,
    
LASER_ENTITY,
    
BEAM_ENTITY,
    
BEAM_MODELINDEX,
    
SPRITE_EXPLOSION,
    
BAR_MSG,
    
SAY_TEXT
}

enum _:USER_DATA {
    
LASER_MAXIMUM,
    
LASER_AMOUNT,
    
LASER_DEPLOYED
}

enum _:SERVER_RES {
    
LASER_CLASSNAME,
    
RES_MODEL,
    
RES_BUY,
    
RES_DIED,
    
RES_POWERUP,
    
RES_DEPLOY,
    
RES_ACTIVATED,
    
RES_GLASS1,
    
RES_GLASS2,
    
RES_GLASSGIBS,
    
RES_EXPLODE,
    
RES_BEAM
}

new 
g_ServerDataSERVER_DATA ],g_UserData33 ][ USER_DATA ];

new const 
g_szCommunity[ ] = "AmxModX-ES";
new const 
g_ServerResourcesSERVER_RES ][ ] = {
    
"LaserMine",
    
"models/lasermines/laser.mdl",
    
"lasermines/buy.wav",
    
"lasermines/died.wav",
    
"lasermines/powerup.wav",
    
"lasermines/deploy.wav",
    
"lasermines/activated.wav",
    
"debris/bustglass1.wav",
    
"debris/bustglass2.wav",
    
"models/glassgibs.mdl",
    
"sprites/lasermines/explode.spr",
    
"sprites/lasermines/beam.spr"
}

/* ===========================================================================?====================================
 *                 [ Plugin Stuff ]
 * ===========================================================================?====================================*/

public plugin_precache( )
{
    
precache_modelg_ServerResourcesRES_MODEL ] )
    
precache_modelg_ServerResourcesRES_GLASSGIBS ] )
    
    
g_ServerDataBEAM_MODELINDEX ] = precache_modelg_ServerResourcesRES_BEAM ] )
    
g_ServerDataSPRITE_EXPLOSION ] = precache_modelg_ServerResourcesRES_EXPLODE ] )
    
    
precache_soundg_ServerResourcesRES_BUY ] )
    
precache_soundg_ServerResourcesRES_DIED ] )
    
precache_soundg_ServerResourcesRES_POWERUP ] )
    
precache_soundg_ServerResourcesRES_DEPLOY ] )
    
precache_soundg_ServerResourcesRES_ACTIVATED ] )
    
precache_soundg_ServerResourcesRES_GLASS1 ] )
    
precache_soundg_ServerResourcesRES_GLASS2 ] )
}

public 
plugin_init( )
{
    
register_plugin"Minas Laser","1.0b","Manu" )
    
    
register_clcmd"say /lm","CommandLaser" )
    
    
register_clcmd"+setlaser","CommandLaser" )
    
register_clcmd"-setlaser","CommandLaser" )
    
register_clcmd"+dellaser","CommandLaser" )
    
register_clcmd"-dellaser","CommandLaser" )
    
    
register_logevent"ev_RoundStart",2,"1=Round_Start" )
    
register_logevent"ev_RoundEnd",2,"1=Round_End" )
    
    
g_ServerDataLASER_ENTITY ]     =     engfuncEngFunc_AllocString,"func_breakable" )
    
g_ServerDataBEAM_ENTITY ]      =     engfuncEngFunc_AllocString,"beam" )
    
g_ServerDataBAR_MSG ]         =     get_user_msgid"BarTime" )
    
g_ServerDataSAY_TEXT ]        =    get_user_msgid"SayText" )
    
    
RegisterHamHam_CS_Player_ResetMaxSpeed,"player","fw_PlayerSpeed" )
    
RegisterHamHam_Spawn,"player","fw_PlayerSpawn",)
    
RegisterHamHam_Killed,"player","fw_PlayerKilled",)
    
RegisterHamHam_TakeDamage,"func_breakable","fw_LaserTakeDamage" );
}

/* ===========================================================================?====================================
 *                 [ Events ]
 * ===========================================================================?====================================*/

public ev_RoundStart( )
{
    
g_ServerDataLASER_ABLE ] = true;
    
    
PrintColor0,"^x04[ %s ]^x01 Lasers^x04 activados^x01.",g_szCommunity )
}

public 
ev_RoundEnd( )
{
    static 
iEnt;
    
    while( (
iEnt engfuncEngFunc_FindEntityByString,iEnt,"classname",g_ServerResourcesLASER_CLASSNAME ] )) )
        
RemoveLaseriEnt )
    
    
g_ServerDataLASER_ABLE ] = false;
    
    
PrintColor0,"^x04[ %s ]^x01 Lasers^x04 desactivados^x01.",g_szCommunity )
}

/* ===========================================================================?====================================
 *                 [ Client Forwards ]
 * ===========================================================================?====================================*/

public CommandLaserid )
{
    static 
sBuffer];read_argv0,sBuffer,)
    
    switch( 
sBuffer] )
    {
        case 
's':
        {
            if( !
CanUserid,LASER_BUY ) )
            {
                
PrintColorid,"^x04[ %s ]^x01 No puedes^x04 comprar^x01 lasers.",g_szCommunity )
                
                return 
PLUGIN_HANDLED;
            }
            
            
g_UserDataid ][ LASER_AMOUNT ]++
            
            
PrintColorid,"^x04[ %s ]^x01 Compraste un laser. [^x04 %d^x01 de^x04 %d^x01 ]",g_szCommunity,g_UserDataid ][ LASER_AMOUNT ],g_UserDataid ][ LASER_MAXIMUM ] )
            
            
emit_soundid,CHAN_ITEM,g_ServerResourcesRES_BUY ],VOL_NORM,ATTN_NORM,0,PITCH_NORM );
        }
        case 
'+':
        {
            switch( 
sBuffer] )
            {
                case 
's':
                {
                    if( !
CanUserid,LASER_CREATE ) )
                    {
                        
PrintColorid,"^x04[ %s ]^x01 No puedes^x04 crear^x01 lasers.",g_szCommunity )
                        
                        return 
PLUGIN_HANDLED;
                    }
                    
                    
set_task1.2,"CreateUserLaser",id+TASK_LASER )
                }
                case 
'd':
                {
                    if( !
CanUserid,LASER_REMOVE ) )
                    {
                        
PrintColorid,"^x04[ %s ]^x01 No puedes^x04 remover^x01 lasers.",g_szCommunity )
                        
                        return 
PLUGIN_HANDLED;
                    }
                    
                    
set_task1.2,"RemoveUserLaser",id+TASK_LASER )
                }
            }
            
            
MarkPlayerBitg_ServerDataPLAYER_FROZEN ],id )
            
            
set_pevid,pev_maxspeed,1.0 )
            
            
ShowUserBarid,)
        }
        case 
'-':
        {
            
remove_taskid+TASK_LASER )
            
            
ClearPlayerBitg_ServerDataPLAYER_FROZEN ],id )
            
            
set_pevid,pev_maxspeed,250.0 )
            
            
ShowUserBarid,)
        }
    }
    
    return 
PLUGIN_HANDLED;
}

public 
client_putinserverid )
{
    
ClearPlayerBitg_ServerDataPLAYER_ALIVE ],id )
    
    
g_UserDataid ][ LASER_AMOUNT ] = 1;
    
g_UserDataid ][ LASER_MAXIMUM ] = 3;
    
g_UserDataid ][ LASER_DEPLOYED ] = 0;
    
    
ClearPlayerBitg_ServerDataPLAYER_FROZEN ],id )
}

public 
client_disconnectid )
{
    
ClearPlayerBitg_ServerDataPLAYER_ALIVE ],id )
    
    
RemoveLasersByOwnerid )
    
    
remove_taskid+TASK_LASER )
    
    
ClearPlayerBitg_ServerDataPLAYER_FROZEN ],id )
}

/* ===========================================================================?====================================
 *                 [ HamSandwich Forwards ]
 * ===========================================================================?====================================*/

public fw_LaserThinkiEnt )
{
    if( !
pev_validiEnt ) )
        return 
HAM_IGNORED;
    
    switch( 
peviEnt,LASER_STEP ) )
    {
        case 
LASER_POWERUP:
        {
            
set_peviEnt,pev_solid,SOLID_BBOX )
            
set_peviEnt,pev_takedamage,1.0 )
            
            
set_peviEnt,LASER_STEP,LASER_ACTIVATED )
            
            
DrawLaserBeamiEnt )
            
            
emit_soundiEnt,CHAN_VOICE,g_ServerResourcesRES_ACTIVATED ],0.5,ATTN_NORM,1,75 );
            
            
set_peviEnt,pev_nextthink,get_gametime( ) + 0.2 );
            
            return 
HAM_IGNORED;
        }
        case 
LASER_ACTIVATED:
        {
            static 
Float:fVectorLASER_VECTOR ][ ],iTrace,Float:fHealth,iVictim;iTrace create_tr2( )
            
            
peviEnt,LASER_ORIGIN,fVectorLV_PLAYER ] );
            
peviEnt,LASER_END,fVectorLV_END ] );
            
peviEnt,pev_health,fHealth );
            
            
engfuncEngFunc_TraceLine,fVectorLV_PLAYER ],fVectorLV_END ],DONT_IGNORE_MONSTERS,iEnt,iTrace );
            
            if( 
IsPlayerValid( (iVictim get_tr2iTrace,TR_pHit )) ) && ( get_user_teamiVictim ) != peviEnt,LASER_TEAM ) ) )
            {
                
ExecuteHamBHam_Killed,iVictim,peviEnt,LASER_OWNER ),true );
                
                
emit_soundiVictim,CHAN_WEAPON,g_ServerResourcesRES_DIED ],VOL_NORM,ATTN_NORM,0,PITCH_NORM );
            }
            else if( 
fHealth 0.0 || ( peviEnt,pev_flags ) & FL_KILLME ) )
                
set_peviEnt,LASER_STEP,LASER_EXPLODE );
            
            
free_tr2iTrace )
            
            
set_peviEnt,pev_nextthink,get_gametime( ) + 0.1 );
        }
        case 
LASER_EXPLODE:
        {
            
CreateExplosioniEnt );
            
            return 
HAM_IGNORED;
        }
    }
    
    return 
HAM_IGNORED;
}

public 
fw_PlayerSpeedid )
{
    if( !
IsPlayerBitg_ServerDataPLAYER_FROZEN ],id ) )
        return 
HAM_IGNORED;
    
    
set_pevid,pev_maxspeed,1.0 )
    
    return 
HAM_SUPERCEDE;
}

public 
fw_PlayerSpawnid )
{
    if( !
is_user_aliveid ) )
        return 
HAM_IGNORED;
    
    
MarkPlayerBitg_ServerDataPLAYER_ALIVE ],id )
    
    return 
HAM_IGNORED;
}

public 
fw_PlayerKillediVictim,iAttacker,bShoudlgib )
{
    
ClearPlayerBitg_ServerDataPLAYER_ALIVE ],iVictim )
    
    
g_UserDataiVictim ][ LASER_AMOUNT ] = 1;
    
    
ClearPlayerBitg_ServerDataPLAYER_FROZEN ],iVictim )
}

public 
fw_LaserTakeDamageiEnt,iInflictor,iAttacker,Float:fDamage,iDamageBits )
{
    if( 
IsPlayerBitg_ServerDataPLAYER_ALIVE ],iAttacker ) && ( get_user_teamiAttacker ) == peviEnt,LASER_TEAM ) ) && ( peviEnt,pev_owner ) != iAttacker ) )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;
}

/* ===========================================================================?====================================
 *                 [ Custom Client Forwards ]
 * ===========================================================================?====================================*/

public CreateUserLaseriTask )
{
    static 
id,iEnt;
    
    
ClearPlayerBitg_ServerDataPLAYER_FROZEN ],(id ID_TASK) )
    
    
ExecuteHamBHam_CS_Player_ResetMaxSpeed,id )
    
    if( !
IsPlayerBitg_ServerDataPLAYER_ALIVE ],id ) || !g_ServerDataLASER_ABLE ] || !pev_valid((iEnt engfunc(EngFunc_CreateNamedEntity,g_ServerDataLASER_ENTITY ]))) )
        return;
    
    
g_UserDataid ][ LASER_AMOUNT ]--
    
g_UserDataid ][ LASER_DEPLOYED ]++
    
    
engfuncEngFunc_SetModel,iEnt,g_ServerResourcesRES_MODEL ] )
    
engfuncEngFunc_SetSize,iEnt,{ -4.0,-4.0,-4.0 },{ 4.0,4.0,4.0 } )
    
    
set_peviEnt,pev_classname,g_ServerResourcesLASER_CLASSNAME ] )
    
set_peviEnt,pev_solid,SOLID_NOT )
    
set_peviEnt,pev_movetype,MOVETYPE_FLY )
    
    
set_peviEnt,pev_health,450.0 )
    
set_peviEnt,pev_takedamage,0.0 )
    
    
set_peviEnt,LASER_OWNER,id )
    
set_peviEnt,LASER_TEAM,get_user_teamid ) )
    
set_peviEnt,LASER_STEP,LASER_POWERUP )
    
    
SetLaserPositionid,iEnt )
    
    
set_peviEnt,pev_frame,)
    
set_peviEnt,pev_framerate,)
    
    
set_peviEnt,pev_body,)
    
set_peviEnt,pev_sequence,)
    
    
set_peviEnt,pev_nextthink,get_gametime( ) + 3.0 )
    
    
RegisterHamFromEntityHam_Think,iEnt,"fw_LaserThink" )
    
    
emit_soundiEnt,CHAN_VOICE,g_ServerResourcesRES_DEPLOY ],VOL_NORM,ATTN_NORM,0,PITCH_NORM );
    
emit_soundiEnt,CHAN_BODY,g_ServerResourcesRES_POWERUP ],0.2,ATTN_NORM,0,PITCH_NORM );
}

public 
RemoveUserLaseriTask )
{
    static 
id,iEnt;id ID_TASK
    
    
if( !pev_valid( (iEnt CanUserid,LASER_REMOVE )) )  )
        return;
    
    
g_UserDataid ][ LASER_AMOUNT ]++
    
    
RemoveLaseriEnt )
    
    
emit_soundid,CHAN_ITEM,g_ServerResourcesRES_BUY ],VOL_NORM,ATTN_NORM,0,PITCH_NORM );
}

/* ===========================================================================?====================================
 *                 [ Stocks ]
 * ===========================================================================?====================================*/

CanUser( const id,iNum )
{
    if( !
IsPlayerBitg_ServerDataPLAYER_ALIVE ],id ) || !g_ServerDataLASER_ABLE ] )
        return 
false;
    
    switch( 
iNum )
    {
        case 
LASER_BUY:
        {
            if( 
g_UserDataid ][ LASER_AMOUNT ] >= g_UserDataid ][ LASER_MAXIMUM ] )
                return 
false;
        }
        case 
LASER_CREATE:
        {
            if( (
g_UserDataid ][ LASER_AMOUNT ] <= 0) || (g_UserDataid ][ LASER_DEPLOYED ] >= g_UserDataid ][ LASER_MAXIMUM ]) )
                return 
false;
            
            static 
Float:fVectorLASER_VECTOR ][ ],iTrace,Float:fDistance;iTrace create_tr2( )
            
            
pevid,pev_origin,fVectorLV_PLAYER ] )
            
pevid,pev_v_angle,fVectorLV_ANGLES ] )
            
            
angle_vectorfVectorLV_ANGLES ],ANGLEVECTOR_FORWARD,fVectorLV_ANGLES ] )
            
            
xs_vec_mul_scalarfVectorLV_ANGLES ],128.0,fVectorLV_ANGLES ] )
            
xs_vec_addfVectorLV_PLAYER ],fVectorLV_ANGLES ],fVectorLV_END ] )
            
            
engfuncEngFunc_TraceLine,fVectorLV_PLAYER ],fVectorLV_END ],DONT_IGNORE_MONSTERS,id,iTrace )
            
            
get_tr2iTrace,TR_flFraction,fDistance )
            
free_tr2iTrace )
            
            if( 
fDistance >= 1.0 )
                return 
false;
        }
        case 
LASER_REMOVE:
        {
            static 
iEnt;
            
            if( !( 
get_user_aimingid,iEnt,iNum ) && ( peviEnt,LASER_OWNER ) == id ) ) || (g_UserDataid ][ LASER_AMOUNT ] >= g_UserDataid ][ LASER_MAXIMUM ]) )
                return 
false;
            
            return 
iEnt;
        }
    }
    
    return 
true;
}

SetLaserPosition( const id,const iEnt )
{
    static 
Float:fVectorLASER_VECTOR ][ ],Float:fFraction,iTrace;iTrace create_tr2( )
    
    
pevid,pev_origin,fVectorLV_PLAYER ] )
    
pevid,pev_v_angle,fVectorLV_ANGLES ] )
    
    
angle_vectorfVectorLV_ANGLES ],ANGLEVECTOR_FORWARD,fVectorLV_ANGLES ] )
    
    
xs_vec_mul_scalarfVectorLV_ANGLES ],128.0,fVectorLV_ANGLES ] )
    
xs_vec_addfVectorLV_PLAYER ],fVectorLV_ANGLES ],fVectorLV_END ] )
    
    
engfuncEngFunc_TraceLine,fVectorLV_PLAYER ],fVectorLV_END ],DONT_IGNORE_MONSTERS,id,iTrace )
    
    
get_tr2iTrace,TR_flFraction,fFraction );
    
get_tr2iTrace,TR_vecEndPos,fVectorLV_END ] )
    
get_tr2iTrace,TR_vecPlaneNormal,fVectorLV_NORMAL ] )
    
    
free_tr2iTrace );iTrace create_tr2( )
    
    
xs_vec_mul_scalarfVectorLV_NORMAL ],8.0,fVectorLV_NORMAL ] )
    
xs_vec_addfVectorLV_END ],fVectorLV_NORMAL ],fVectorLV_END ] )
    
    
engfuncEngFunc_SetOrigin,iEnt,fVectorLV_END ] )
    
    if( 
fFraction 1.0 )
    {
        
vector_to_anglefVectorLV_NORMAL ],fVectorLV_ANGLES ] )
        
set_peviEnt,LASER_ANGLES,fVectorLV_ANGLES ] )
        
        
xs_vec_mul_scalarfVectorLV_NORMAL ],8192.0,fVectorLV_NORMAL ] )
        
        
engfuncEngFunc_TraceLine,fVectorLV_END ],fVectorLV_NORMAL ],IGNORE_MONSTERS,iEnt,iTrace )
        
        
get_tr2iTrace,TR_vecEndPos,fVectorLV_END ] )
        
free_tr2iTrace )
    }
        
    
set_peviEnt,LASER_END,fVectorLV_END ] );
}

DrawLaserBeamiEnt )
{
    static 
Float:fColor],Float:fVectorLASER_VECTOR ][ ],Float:fMins],Float:fMaxs],iBeam;
    
    
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } );
    
iBeam engfuncEngFunc_CreateNamedEntity,g_ServerDataBEAM_ENTITY ] );
    
    
set_peviBeam,pev_flagspeviBeam,pev_flags ) | FL_CUSTOMENTITY )
    
    
set_peviBeam,pev_model,g_ServerResourcesRES_BEAM ] )
    
set_peviBeam,pev_modelindex,g_ServerDataBEAM_MODELINDEX ] )
    
    
set_peviBeam,pev_body,);
    
set_peviBeam,pev_scale,5.0 );
    
set_peviBeam,pev_animtime,255.0 );
    
    
set_peviBeam,pev_renderamt,255.0 );
    
set_peviBeam,pev_rendercolor,fColor );
    
    
peviEnt,LASER_END,fVectorLV_END ] );
    
peviEnt,LASER_ORIGIN,fVectorLV_PLAYER ] );
    
    
set_peviBeam,LASER_ORIGIN,fVectorLV_END ] );
    
set_peviBeam,LASER_ANGLES,fVectorLV_PLAYER ] );
    
    
fMins] = floatminfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMins] = floatminfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMins] = floatminfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
    
fMaxs] = floatmaxfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMaxs] = floatmaxfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
fMaxs] = floatmaxfVectorLV_END ][ ],fVectorLV_PLAYER ][ ] ) - fVectorLV_END ][ ];
    
    
engfuncEngFunc_SetSize,iBeam,fMins,fMaxs )
    
engfuncEngFunc_SetOrigin,iBeam,fVectorLV_END ] )
    
    
set_peviEnt,LASER_BEAM,iBeam )
}

CreateExplosioniEnt )
{
    static 
Float:fOrigin[3];peviEnt,LASER_ORIGIN,fOrigin )

    
message_beginMSG_BROADCAST,SVC_TEMPENTITY )
    
write_byteTE_EXPLOSION )
    
engfuncEngFunc_WriteCoord,fOrigin] )
    
engfuncEngFunc_WriteCoord,fOrigin] )
    
engfuncEngFunc_WriteCoord,fOrigin] )
    
write_shortg_ServerDataSPRITE_EXPLOSION ] )
    
write_byte30 )
    
write_byte10 )
    
write_byte)
    
message_end( )
    
    
RemoveLaseriEnt )
}

RemoveLasersByOwner( const id )
{
    static 
iEnt;
    
    while( (
iEnt engfuncEngFunc_FindEntityByString,iEnt,"classname",g_ServerResourcesLASER_CLASSNAME ] )) )
    {
        if( 
peviEnt,LASER_OWNER ) != id )
            continue;
        
        
RemoveLaseriEnt )
    }
    
    return 
1;
}

RemoveLaseriEnt )
{
    
set_peviEnt,pev_nextthink,0.0 )
    
    
g_UserDatapeviEnt,LASER_OWNER ) ][ LASER_DEPLOYED ]--
    
    
engfuncEngFunc_RemoveEntity,peviEnt,LASER_BEAM ) )
    
engfuncEngFunc_RemoveEntity,iEnt )
}

ShowUserBar( const id,const iDuration )
{
    
message_beginMSG_ONE_UNRELIABLE,g_ServerDataBAR_MSG ],_,id )
    
write_shortiDuration )
    
message_end( )
}

PrintColoriId,szText[ ],any:... )
{
    static 
szBuffer192 ];
    
vformatszBuffer,charsmaxszBuffer ),szText,);
    
    if( !
iId 
    {
        
message_beginMSG_ALL,g_ServerDataSAY_TEXT ],_,iId );
        
write_byte);
        
write_stringszBuffer );
        
message_end( );
    }
    else 
    {
        
message_beginMSG_ONE,g_ServerDataSAY_TEXT ],_,iId );
        
write_byteiId );
        
write_stringszBuffer );
        
message_end( );
    }

Responder
#40
Ahora le cambie el rgb y no se ven los laser :S
Responder
#41
(26/02/2015, 10:39 PM)cLi escribió: Ahora le cambie el rgb y no se ven los laser :S

Pero que valores le pusiste? Y, sabes como funciona el RGB no?.

Por las dudas..

(25/02/2015, 03:34 PM)hud escribió: Estan en rgb

Red, Green, Blue.

Código PHP:
// 255 0 0 es color rojo :V
fm_set_weaponmodel_ent(id25500);  //Red 255, Green 0, Blue 0 (por lo tanto es full Red). 

Googlea colores RGB y te van a saltar todos.

EDIT:

[Imagen: awdoyh.png]

[ COLORES RGB ]

Otra cosa que podes hacer, es abrir paint, y te vas fijando el color que quieras, y te va a saltar sus valores en RGB.

PD: El maximo valor que podes poner es 255, asi como el minimo es 0.
Responder
#42
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 2550} ):( Float:{ 0,0,255 } ); 
asi no aparece el laser

y de la otra manera aparecen los 2 celestes

(26/02/2015, 05:45 PM)mongito100 escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ) 

azul CT { 0.0,0.0,255.0 }
rojo TT { 255.0,0.0,0.0 }

cambialo por el color q quieras en combinacion de RGB

ESTOY CIEGO Yao ming Solucionado

(27/02/2015, 04:43 AM)cLi escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 2550} ):( Float:{ 0,0,255 } ); 
asi no aparece el laser

y de la otra manera aparecen los 2 celestes

(26/02/2015, 05:45 PM)mongito100 escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ) 

azul CT { 0.0,0.0,255.0 }
rojo TT { 255.0,0.0,0.0 }

cambialo por el color q quieras en combinacion de RGB

ESTOY CIEGO Yao ming Solucionado

No ahora son los 2 lasers rojos

Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 255.0,0.0,0.0 } ):( Float:{ 0.0,0.0,255.0 } ); 
Responder
#43
(27/02/2015, 04:43 AM)cLi escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 2550} ):( Float:{ 0,0,255 } ); 
asi no aparece el laser

y de la otra manera aparecen los 2 celestes

(26/02/2015, 05:45 PM)mongito100 escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ) 

azul CT { 0.0,0.0,255.0 }
rojo TT { 255.0,0.0,0.0 }

cambialo por el color q quieras en combinacion de RGB

ESTOY CIEGO Yao ming Solucionado

(27/02/2015, 04:43 AM)cLi escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 2550} ):( Float:{ 0,0,255 } ); 
asi no aparece el laser

y de la otra manera aparecen los 2 celestes

(26/02/2015, 05:45 PM)mongito100 escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ) 

azul CT { 0.0,0.0,255.0 }
rojo TT { 255.0,0.0,0.0 }

cambialo por el color q quieras en combinacion de RGB

ESTOY CIEGO Yao ming Solucionado

No ahora son los 2 lasers rojos

Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 255.0,0.0,0.0 } ):( Float:{ 0.0,0.0,255.0 } ); 

Dafuq
esta solucionado o no? Te falto un float en el último q pasaste
[TUT] Carnage

Fight

"El limite de los backdoors de gente q sabe programar como nostros lo impone nuestra maldad interior y creeme q soy muy malo en el interior"

Anónimo
Responder
#44
(26/02/2015, 04:33 PM)mongito100 escribió: bug
Código PHP:
public fw_LaserTakeDamageiEnt,iInflictor,iAttacker,Float:fDamage,iDamageBits )
{
    if( 
IsPlayerBitg_ServerDataPLAYER_ALIVE ],iAttacker ) && ( get_user_teamiAttacker ) == peviEnt,LASER_TEAM ) ) && ( peviEnt,pev_owner ) != iAttacker ) )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;


-------------------------->

Código PHP:
public fw_LaserTakeDamageiEnt,iInflictor,iAttacker,Float:fDamage,iDamageBits )
{
    if( 
IsPlayerBitg_ServerDataPLAYER_ALIVE ],iAttacker ) || ( peviEnt,LASER_OWNER) != iAttacker ) )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;


Pd: Treki no me respondiste lo de los angulos

Lo de los angulos era que apunte para abajo cuando esté en el aire? Simplemente modificá los angulos cuando se setee en el aire.

Sobre lo del bug, re-lee la condición. Y la idea de no buguear jugadores esta buena, era obvio que se hacia con un TraceHull xP.

Y lo de que el laser ralentize, le podes hacer el task pero es muy villa hacer eso, se tendria que codear de otra forma el laser para que no sea tan horrible xD
No hago trabajos privados. Si necesitás ayuda, abrí un nuevo tema.
¿Buscás un ejemplo o algún modo de juego? Podés echarle un vistazo a mis aportes
.
Responder
#45
(27/02/2015, 08:59 AM)Treki escribió:
(26/02/2015, 04:33 PM)mongito100 escribió: bug
Código PHP:
public fw_LaserTakeDamageiEnt,iInflictor,iAttacker,Float:fDamage,iDamageBits )
{
    if( 
IsPlayerBitg_ServerDataPLAYER_ALIVE ],iAttacker ) && ( get_user_teamiAttacker ) == peviEnt,LASER_TEAM ) ) && ( peviEnt,pev_owner ) != iAttacker ) )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;


-------------------------->

Código PHP:
public fw_LaserTakeDamageiEnt,iInflictor,iAttacker,Float:fDamage,iDamageBits )
{
    if( 
IsPlayerBitg_ServerDataPLAYER_ALIVE ],iAttacker ) || ( peviEnt,LASER_OWNER) != iAttacker ) )
        return 
HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;


Pd: Treki no me respondiste lo de los angulos

Lo de los angulos era que apunte para abajo cuando esté en el aire? Simplemente modificá los angulos cuando se setee en el aire.

Sobre lo del bug, re-lee la condición. Y la idea de no buguear jugadores esta buena, era obvio que se hacia con un TraceHull xP.

Y lo de que el laser ralentize, le podes hacer el task pero es muy villa hacer eso, se tendria que codear de otra forma el laser para que no sea tan horrible xD
Me comi un ! xD lo cual no quita q lo tengas q corregir en tu code por q chequear el team y y el owner a la ves es al pedo y ademas en tu code no usas pev_owner usas otro

PD: Estoy un poco duro con los vectores y los angulos como seria
[TUT] Carnage

Fight

"El limite de los backdoors de gente q sabe programar como nostros lo impone nuestra maldad interior y creeme q soy muy malo en el interior"

Anónimo
Responder
#46
LLlego a casa y te ayudo con los angulos, ahora estoy en la facu. La condicion se traduce, si mal no recuerdo: "Si el atacante esta vivo, y si es del mismo equipo que el laser, y si no es el dueño del laser, entonces..." es para que el dueño pueda romperla pero no su team. Capaz me saltie algo pero la condicion que vos pasaste eataba mal, o al menos eso vi desde mi celu xP
No hago trabajos privados. Si necesitás ayuda, abrí un nuevo tema.
¿Buscás un ejemplo o algún modo de juego? Podés echarle un vistazo a mis aportes
.
Responder
#47
(27/02/2015, 09:43 AM)Treki escribió: LLlego a casa y te ayudo con los angulos, ahora estoy en la facu. La condicion se traduce, si mal no recuerdo: "Si el atacante esta vivo, y si es del mismo equipo que el laser, y si no es el dueño del laser, entonces..." es para que el dueño pueda romperla pero no su team. Capaz me saltie algo pero la condicion que vos pasaste eataba mal, o al menos eso vi desde mi celu xP

La condicion q puse o mejor dicho q quise poner por q me falto el ! es si no esta el atacante vivo o si el laser no es del atacante q no haga el daño dsp miralo
[TUT] Carnage

Fight

"El limite de los backdoors de gente q sabe programar como nostros lo impone nuestra maldad interior y creeme q soy muy malo en el interior"

Anónimo
Responder
#48
(27/02/2015, 07:17 AM)mongito100 escribió:
(27/02/2015, 04:43 AM)cLi escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 2550} ):( Float:{ 0,0,255 } ); 
asi no aparece el laser

y de la otra manera aparecen los 2 celestes

(26/02/2015, 05:45 PM)mongito100 escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ) 

azul CT { 0.0,0.0,255.0 }
rojo TT { 255.0,0.0,0.0 }

cambialo por el color q quieras en combinacion de RGB

ESTOY CIEGO Yao ming Solucionado

(27/02/2015, 04:43 AM)cLi escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 2550} ):( Float:{ 0,0,255 } ); 
asi no aparece el laser

y de la otra manera aparecen los 2 celestes

(26/02/2015, 05:45 PM)mongito100 escribió:
Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 0.0,0.0,255.0 } ):( Float:{ 255.0,0.0,0.0 } ) 

azul CT { 0.0,0.0,255.0 }
rojo TT { 255.0,0.0,0.0 }

cambialo por el color q quieras en combinacion de RGB

ESTOY CIEGO Yao ming Solucionado

No ahora son los 2 lasers rojos

Código PHP:
fColor peviEnt,LASER_TEAM ) ? ( Float:{ 255.0,0.0,0.0 } ):( Float:{ 0.0,0.0,255.0 } ); 

Dafuq
esta solucionado o no? Te falto un float en el último q pasaste

no ahora son rojos los 2 :S ,

fColor = pev( iEnt,LASER_TEAM ) ? ( Float:{ 255.0,0.0,0.0 } )Triste Float:{ 0.0,0.0,255.0 } );

que float me falta
Responder
#49
(27/02/2015, 10:15 AM)mongito100 escribió: La condicion q puse o mejor dicho q quise poner por q me falto el ! es si no esta el atacante vivo o si el laser no es del atacante q no haga el daño dsp miralo

La onda es que los lásers te los pueda romper el otro equipo, lo único malo era lo del pev_owner que yo usé pev_iuser1 para setearlo, el resto está bien. Tu condición haría que nadie pudiera romper el láser una vez puesto excepto el dueño del mismo, o al menos eso es lo que pude entender, realmente no se que cual es tu intención.

Si los lásers no te los pudiera romper el otro equipo, me voy a algún lugar que tenga solo dos puertas y entre dos pibes las bloqueamos las dos con lásers en el aire y listo, y es al pedo una regla "No bloquear puertas", queda muy mal.

Y sobre los ángulos, en la función que chequea la posición y trayectoria del láser hay una condición para no proyectar el láser si está en el aire, le podés agregar un else y que apunte para abajo en vez de no fijarle un valor.

Código PHP:
if( fFraction 1.0 )
{
    
vector_to_anglefVectorLV_NORMAL ],fVectorLV_ANGLES ] )
    
set_peviEnt,LASER_ANGLES,fVectorLV_ANGLES ] )
    
    
xs_vec_mul_scalarfVectorLV_NORMAL ],8192.0,fVectorLV_NORMAL ] )
    
    
engfuncEngFunc_TraceLine,fVectorLV_END ],fVectorLV_NORMAL ],IGNORE_MONSTERS,iEnt,iTrace )
    
    
get_tr2iTrace,TR_vecEndPos,fVectorLV_END ] )
    
free_tr2iTrace )
}
else
{
    
vector_to_anglefVectorLV_NORMAL ],fVectorLV_ANGLES ] )
    
set_peviEnt,LASER_ANGLES,fVectorLV_ANGLES ] )
    
    
xs_vec_copyfVectorLV_END ],fVectorLV_NORMAL ] );fVectorLV_NORMAL ][ ] -= 2048.0;
    
    
engfuncEngFunc_TraceLine,fVectorLV_END ],fVectorLV_NORMAL ],IGNORE_MONSTERS,iEnt,iTrace )
    
    
get_tr2iTrace,TR_vecEndPos,fVectorLV_END ] )
    
free_tr2iTrace )

No hago trabajos privados. Si necesitás ayuda, abrí un nuevo tema.
¿Buscás un ejemplo o algún modo de juego? Podés echarle un vistazo a mis aportes
.
Responder
#50
Solamente a mi me aparece el laser de los tts celeste?
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)