[ZP][GUIA] Colocar efectos a las granadas
#1
1- Abrimos el zombie_plague40.sma y vamos a:
Código PHP:
// Game vars 


y luego buscamos:

Código PHP:
new g_trailSprg_exploSprg_flameSprg_smokeSprg_glassSpr 


Y poner debajo de eso:

Código PHP:
new g_frost_explodeg_fire_gibg_frost_gibg_fire_trailg_frost_trail 


2- Nos vamos a plugin_precache y colocamos esto:

Código PHP:
g_frost_explode precache_model ("sprites/ze_sprites/frost_explode.spr"
    
g_fire_gib precache_model ("sprites/ze_sprites/fire_gib.spr"
    
g_frost_gib precache_model ("sprites/ze_sprites/frost_gib.spr"
    
g_fire_trail precache_model ("sprites/ze_sprites/fire_trail.spr")
    
g_frost_trail precache_model ("sprites/ze_sprites/frost_trail.spr"

3- A continuación, buscamos:

Código PHP:
else if (model[9] == 'h' && model[10] == 'e' && get_pcvar_num(cvar_firegrenades)) // Napalm Grenade
{
// Give it a glow
fm_set_rendering(entitykRenderFxGlowShell20000kRenderNormal16);

// And a colored trail
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW// TE id
write_short(entity// entity
write_short(g_trailSpr// sprite
write_byte(10// life
write_byte(10// width
write_byte(200// r
write_byte(0// g
write_byte(0// b
write_byte(200// brightness
message_end()

// Set grenade type on the thrown grenade entity
set_pev(entityPEV_NADE_TYPENADE_TYPE_NAPALM)


Reemplazamos todo eso por esto:

Código PHP:
else if (model[9] == 'h' && model[10] == 'e' && get_pcvar_num(cvar_firegrenades)) // Napalm Grenade
    
{
        
// Give it a glow
        
fm_set_rendering(entitykRenderFxGlowShell20000kRenderNormal16);
        
        
// And a colored trail
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
        
write_byte(TE_BEAMFOLLOW// TE id
        
write_short(entity// entity
        
write_short(g_fire_trail// sprite
        
write_byte(10// life
        
write_byte(10// width
        
write_byte(200// r
        
write_byte(0// g
        
write_byte(0// b
        
write_byte(200// brightness
        
message_end()
        
        
// Set grenade type on the thrown grenade entity
        
set_pev(entityPEV_NADE_TYPENADE_TYPE_NAPALM)
    }
    else if (
model[9] == 'f' && model[10] == 'l' && get_pcvar_num(cvar_frostgrenades)) // Frost Grenade


Una vez echo esto, buscan:

Código PHP:
else if (model[9] == 'f' && model[10] == 'l' && get_pcvar_num(cvar_frostgrenades)) // Frost Grenade
{
// Give it a glow
fm_set_rendering(entitykRenderFxGlowShell0100200kRenderNormal16);

// And a colored trail
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW// TE id
write_short(entity// entity
write_short(g_trailSpr// sprite
write_byte(10// life
write_byte(10// width
write_byte(0// r
write_byte(100// g
write_byte(200// b
write_byte(200// brightness
message_end()

// Set grenade type on the thrown grenade entity
set_pev(entityPEV_NADE_TYPENADE_TYPE_FROST)


Y lo reemplazan por este codigo:

Código PHP:
else if (model[9] == 'f' && model[10] == 'l' && get_pcvar_num(cvar_frostgrenades)) // Frost Grenade
{
// Give it a glow
fm_set_rendering(entitykRenderFxGlowShell0100200kRenderNormal16);

// And a colored trail
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW// TE id
write_short(entity// entity
write_short(g_frost_trail// sprite
write_byte(10// life
write_byte(10// width
write_byte(0// r
write_byte(100// g
write_byte(200// b
write_byte(200// brightness
message_end()

// Set grenade type on the thrown grenade entity
set_pev(entityPEV_NADE_TYPENADE_TYPE_FROST)
    } 

Ahora la parte mas importante...
Buscan:

Código PHP:
// Fire Grenade: Fire Blast
create_blast2(const Float:originF[3])
{
// Smallest ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+385.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(200// red
write_byte(100// green
write_byte(0// blue
write_byte(200// brightness
write_byte(0// speed
message_end()

// Medium ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+470.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(200// red
write_byte(50// green
write_byte(0// blue
write_byte(200// brightness
write_byte(0// speed
message_end()

// Largest ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+555.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(200// red
write_byte(0// green
write_byte(0// blue
write_byte(200// brightness
write_byte(0// speed
message_end()
}

// Frost Grenade: Freeze Blast
create_blast3(const Float:originF[3])
{
// Smallest ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+385.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(0// red
write_byte(100// green
write_byte(200// blue
write_byte(200// brightness
write_byte(0// speed
message_end()

// Medium ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+470.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(0// red
write_byte(100// green
write_byte(200// blue
write_byte(200// brightness
write_byte(0// speed
message_end()

// Largest ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+555.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(0// red
write_byte(100// green
write_byte(200// blue
write_byte(200// brightness
write_byte(0// speed
message_end()


Y lo reemplazan por:

Código PHP:
// Fire Grenade: Fire Blast
create_blast2(const Float:originF[3])
{          
// Efecto de Fuego

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

// Dynamic Light
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_DLIGHT)
engfunc(EngFunc_WriteCoordoriginF[0])
engfunc(EngFunc_WriteCoordoriginF[1])
engfunc(EngFunc_WriteCoordoriginF[2])
write_byte(50)
write_byte(100)
write_byte(200)
write_byte(200)
write_byte(30)
write_byte(30)
message_end()

// Smallest ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+385.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(200// red
write_byte(100// green
write_byte(0// blue
write_byte(200// brightness
write_byte(0// speed
message_end()

// Medium ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+470.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(200// red
write_byte(50// green
write_byte(0// blue
write_byte(200// brightness
write_byte(0// speed
message_end()

// Largest ring
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_BEAMCYLINDER// TE id
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis
engfunc(EngFunc_WriteCoordoriginF[2]+555.0// z axis
write_short(g_exploSpr// sprite
write_byte(0// startframe
write_byte(0// framerate
write_byte(4// life
write_byte(60// width
write_byte(0// noise
write_byte(200// red
write_byte(0// green
write_byte(0// blue
write_byte(200// brightness
write_byte(0// speed
message_end()

// TE_SPRITETRAIL 
engfunc(EngFunc_MessageBeginMSG_BROADCAST ,SVC_TEMPENTITYoriginF0
write_byte(TE_SPRITETRAIL// TE ID 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]+70// z axis 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]) // z axis 
write_short(g_fire_gib// Sprite Index 
write_byte(80// Count 
write_byte(20// Life 
write_byte(2// Scale 
write_byte(50// Velocity Along Vector 
write_byte(10// Rendomness of Velocity 
message_end(); 

// TE_EXPLOSION 
engfunc(EngFunc_MessageBeginMSG_BROADCAST,SVC_TEMPENTITYoriginF0
write_byte(TE_EXPLOSION
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]+75// z axis 
write_short(g_fire_explode
write_byte(22
write_byte(35
write_byte(TE_EXPLFLAG_NOSOUND
message_end() 


// Frost Grenade: Freeze Blast 
create_blast3(const Float:originF[3]) 

// Smallest ring 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0
write_byte(TE_BEAMCYLINDER// TE id 
engfunc(EngFunc_WriteCoordoriginF[0]) // x 
engfunc(EngFunc_WriteCoordoriginF[1]) // y 
engfunc(EngFunc_WriteCoordoriginF[2]) // z 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]+385.0// z axis 
write_short(g_exploSpr// sprite 
write_byte(0// startframe 
write_byte(0// framerate 
write_byte(4// life 
write_byte(60// width 
write_byte(0// noise 
write_byte(0// red 
write_byte(100// green 
write_byte(200// blue 
write_byte(200// brightness 
write_byte(0// speed 
message_end() 

// Medium ring 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0
write_byte(TE_BEAMCYLINDER// TE id 
engfunc(EngFunc_WriteCoordoriginF[0]) // x 
engfunc(EngFunc_WriteCoordoriginF[1]) // y 
engfunc(EngFunc_WriteCoordoriginF[2]) // z 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]+470.0// z axis 
write_short(g_exploSpr// sprite 
write_byte(0// startframe 
write_byte(0// framerate 
write_byte(4// life 
write_byte(60// width 
write_byte(0// noise 
write_byte(0// red 
write_byte(100// green 
write_byte(200// blue 
write_byte(200// brightness 
write_byte(0// speed 
message_end() 

// Largest ring 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0
write_byte(TE_BEAMCYLINDER// TE id 
engfunc(EngFunc_WriteCoordoriginF[0]) // x 
engfunc(EngFunc_WriteCoordoriginF[1]) // y 
engfunc(EngFunc_WriteCoordoriginF[2]) // z 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]+555.0// z axis 
write_short(g_exploSpr// sprite 
write_byte(0// startframe 
write_byte(0// framerate 
write_byte(4// life 
write_byte(60// width 
write_byte(0// noise 
write_byte(0// red 
write_byte(100// green 
write_byte(200// blue 
write_byte(200// brightness 
write_byte(0// speed 
message_end() 

// TE_SPRITETRAIL 
engfunc(EngFunc_MessageBeginMSG_BROADCAST ,SVC_TEMPENTITYoriginF0
write_byte(TE_SPRITETRAIL// TE ID 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]+70// z axis 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]) // z axis 
write_short(g_frost_gib// Sprite Index 
write_byte(80// Count 
write_byte(20// Life 
write_byte(2// Scale 
write_byte(50// Velocity Along Vector 
write_byte(10// Rendomness of Velocity 
message_end(); 

// TE_EXPLOSION 
engfunc(EngFunc_MessageBeginMSG_BROADCAST,SVC_TEMPENTITYoriginF0
write_byte(TE_EXPLOSION
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
engfunc(EngFunc_WriteCoordoriginF[2]+75// z axis 
write_short(g_frost_explode
write_byte(22
write_byte(35
write_byte(TE_EXPLFLAG_NOSOUND
message_end() 



Listo Gran sonrisa


Archivos adjuntos
.rar   sprites.rar (Tamaño: 113.38 KB / Descargas: 46)
Responder
#2
En primer lugar, acá estas modificando el trail de las granadas Napalm y Frost. No estás creando un efecto...

En segundo lugar, podés hacer mucho más corto el "tutorial"... Por ejemplo esto:

Código PHP:
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end()

engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
write_byte(TE_SPRITE)
engfunc(EngFunc_WriteCoordoriginF[0]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[1]+random_num(-150150))
engfunc(EngFunc_WriteCoordoriginF[2]+80)
write_short(g_flameSpr)
write_byte(10)
write_byte(255)
message_end() 

Un simple loop Genius

Código PHP:
static iiMaxLoops;
iMaxLoops 20

for (0iMaxLoopsi++) {
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_SPRITE)
    
engfunc(EngFunc_WriteCoordoriginF[0] + random_num(-150150))
    
engfunc(EngFunc_WriteCoordoriginF[1] + random_num(-150150))
    
engfunc(EngFunc_WriteCoordoriginF[2] + 80)
    
write_short(g_flameSpr)
    
write_byte(10)
    
write_byte(255)
    
message_end()


Suerte Gran sonrisa
[Imagen: 13A347FA0E6A82A2D8C236BA04F69B35.png]
Responder
#3
algunas fotos pacman


Archivos adjuntos
.rar   efectos.rar (Tamaño: 619.67 KB / Descargas: 102)
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)