Raised This Month: $ Target: $400
 0% 

[AYUDA] Efecto de partículas que se reunen


  
 
 
Thread Tools Display Modes
Author Message
TecnoZP
BANNED
Join Date: Jun 2012
Location: Buenos Aires, Argentina
Old 10-04-2012 , 21:03   [AYUDA] Efecto de partículas que se reunen
#1

Bueno, lo que yo quiero hacer es usar el Temp Entity: TE_IMPLOSION en un plugin, lo que quiero lograr es que un player tenga encima este efecto ocea que se reunan las partículas en el centro del del player, acá les dejo una imagen del efecto:

[IMG]http://desmond.**************/Himg838/scaled.php?server=838&filename=implosion.jpg& res=medium[/IMG]

Ese mismo efecto

Acá les dejo el efecto TE_IMPLOSION:

PHP Code:
new origin[3]
get_user_origin(idorigin3)

message_begin(MSG_PVSSVC_TEMPENTITYorigin)
write_byte(TE_IMPLOSION// TE id
write_coord(origin[0]) // x
write_coord(origin[1]) // y
write_coord(origin[2]) // z
write_byte(128// radius
write_byte(20// count
write_byte(3// duration
message_end() 

Last edited by TecnoZP; 10-04-2012 at 21:03.
TecnoZP is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 10-04-2012 , 21:04   Re: [AYUDA] Efecto de partículas que se reunen
#2

usa los origin del player -.-
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
TecnoZP
BANNED
Join Date: Jun 2012
Location: Buenos Aires, Argentina
Old 10-04-2012 , 21:06   Re: [AYUDA] Efecto de partículas que se reunen
#3

xD y como hago para que supongamos cada 3 segundos se repita el efecto ?
TecnoZP is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 10-04-2012 , 21:17   Re: [AYUDA] Efecto de partículas que se reunen
#4

Quote:
Originally Posted by TecnoZP View Post
xD y como hago para que supongamos cada 3 segundos se repita el efecto ?
usa set_task
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 10-04-2012 , 21:25   Re: [AYUDA] Efecto de partículas que se reunen
#5

Quote:
Originally Posted by Roccoxx View Post
usa set_task la api de rak.. Register Task
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 10-04-2012 , 21:26   Re: [AYUDA] Efecto de partículas que se reunen
#6

fixed
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
GalaxyA
BANNED
Join Date: Sep 2012
Location: Noob Member
Old 10-04-2012 , 21:51   Re: [AYUDA] Efecto de partículas que se reunen
#7

Si leiste el TUT o GUIA sabras como hacerlo vamos no es tan dificil
GalaxyA is offline
Send a message via MSN to GalaxyA
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 10-04-2012 , 22:05   Re: [AYUDA] Efecto de partículas que se reunen
#8

Quote:
Originally Posted by GalaxyA View Post
Si leiste el TUT o GUIA sabras como hacerlo vamos no es tan dificil
y bueno se ve ue le cuesta por algo hace un thread jajaja hay ue tener paciencia a las personas con capacidades diferentes o inferiores
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"

Last edited by Roccoxx; 10-04-2012 at 22:07.
Roccoxx is offline
Send a message via MSN to Roccoxx
TecnoZP
BANNED
Join Date: Jun 2012
Location: Buenos Aires, Argentina
Old 10-04-2012 , 22:17   Re: [AYUDA] Efecto de partículas que se reunen
#9

Quote:
hay ue tener paciencia a las personas con capacidades diferentes o inferiores
Bueh...

Last edited by TecnoZP; 10-04-2012 at 22:17.
TecnoZP is offline
Manu127
Veteran Member
Join Date: Jul 2010
Location: Argentina
Old 10-04-2012 , 22:24   Re: [AYUDA] Efecto de partículas que se reunen
#10

Algo... asi? xD

Un ejemplo rapido xq me tengo que ir a acostar

PHP Code:
#include <amxmodx>
#include <engine>

new const g_Classname[] = "EntThinker"

public plugin_init()
{
    
register_plugin"Implosion","1.0","Manu" )
    
    
register_clcmd"say /effect","clcmd_effect" )
    
    
register_thinkg_Classname,"fwThink" )
}

public 
fwThinkent )
{
    static 
id,origin[3];id entity_get_intent,EV_INT_iuser1 )
    
    if( !
is_user_aliveid ) )
    {
        
remove_entityent )
        
        return 
PLUGIN_HANDLED
    
}
    
    
get_user_originid,origin )
    
    
message_beginMSG_BROADCAST,SVC_TEMPENTITY )
    
write_byteTE_IMPLOSION )
    
write_coordorigin[0] )
    
write_coordorigin[1] )
    
write_coordorigin[2] )
    
write_byte150 )
    
write_byte20 )
    
write_byte10 )
    
message_end( )
    
    
entity_set_floatent,EV_FL_nextthink,get_gametime() + 1.0 )
    
    return 
PLUGIN_HANDLED
}

public 
clcmd_effectid )
{
    static 
iEnt;
    
    if( 
find_ent_by_class( -1,g_Classname ) )
        return 
PLUGIN_HANDLED
    
    iEnt 
create_entity("info_target")
    
    
entity_set_stringiEnt,EV_SZ_classname,g_Classname )
    
entity_set_intiEnt,EV_INT_iuser1,id )
    
entity_set_floatiEnt,EV_FL_nextthink,get_gametime() + 1.0 )
    
    return 
PLUGIN_HANDLED

__________________
Manu127 is offline
Send a message via MSN to Manu127 Send a message via Skype™ to Manu127
 



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 06:15.


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