Raised This Month: $51 Target: $400
 12% 

[ES][ZP] Cambiar el sprite de la granada


  
 
 
Thread Tools Display Modes
Author Message
!Morte
Veteran Member
Join Date: May 2010
Old 05-29-2010 , 19:11   [ES][ZP] Cambiar el sprite de la granada
#1

gente, cambie el spr. de la granada y todo bien, pero cuando la tiro y explota se hace como un circulo y no sale el spr que le asigne :/

la parte el spr es esta

PHP Code:
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_KBoom// 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_KBoom// 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_KBoom// 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()

!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
Asdito´^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 05-29-2010 , 19:35   Re: [ES][ZP] Cambiar el sprite de la granada
#2

Quote:
Originally Posted by !Morte View Post
gente, cambie el spr. de la granada y todo bien, pero cuando la tiro y explota se hace como un circulo y no sale el spr que le asigne :/

la parte el spr es esta

PHP Code:
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_KBoom// 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_KBoom// 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_KBoom// 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()

Quote:
se hace como un circulo
TE_BEAMCYLINDER

Borra todo eso y pone esto
PHP Code:
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_SPRITE// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]+random_float(120.0, -120.0)) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]+random_float(120.0, -120.0)) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]+10.0)
    
write_short(tu_sprite// sprite
    
write_byte(random_num(115)) // scale
    
write_byte(170// brightness
    
message_end() 
Y si queres que salga varias veces solo repite el code
Ejemplo:
PHP Code:
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_SPRITE// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]+random_float(120.0, -120.0)) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]+random_float(120.0, -120.0)) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]+10.0)
    
write_short(tu_sprite// sprite
    
write_byte(random_num(115)) // scale
    
write_byte(170// brightness
    
message_end()

       
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_SPRITE// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]+random_float(120.0, -120.0)) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]+random_float(120.0, -120.0)) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]+10.0)
    
write_short(tu_sprite// sprite
    
write_byte(random_num(115)) // scale
    
write_byte(170// brightness
    
message_end() 
Aclaración: Puede dar lag
__________________
################################
Asdito´^ is offline
Send a message via MSN to Asdito´^
!Morte
Veteran Member
Join Date: May 2010
Old 05-29-2010 , 19:57   Re: [ES][ZP] Cambiar el sprite de la granada
#3

Quote:
Originally Posted by Asdito´^ View Post
TE_BEAMCYLINDER

Borra todo eso y pone esto
PHP Code:
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_SPRITE// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]+random_float(120.0, -120.0)) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]+random_float(120.0, -120.0)) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]+10.0)
    
write_short(tu_sprite// sprite
    
write_byte(random_num(115)) // scale
    
write_byte(170// brightness
    
message_end() 
Y si queres que salga varias veces solo repite el code
Ejemplo:
PHP Code:
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_SPRITE// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]+random_float(120.0, -120.0)) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]+random_float(120.0, -120.0)) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]+10.0)
    
write_short(tu_sprite// sprite
    
write_byte(random_num(115)) // scale
    
write_byte(170// brightness
    
message_end()

       
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
    
write_byte(TE_SPRITE// TE id
    
engfunc(EngFunc_WriteCoordoriginF[0]+random_float(120.0, -120.0)) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]+random_float(120.0, -120.0)) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]+10.0)
    
write_short(tu_sprite// sprite
    
write_byte(random_num(115)) // scale
    
write_byte(170// brightness
    
message_end() 
Aclaración: Puede dar lag
esa, me funciona ahora, pero el sprite esta muy abajo :/ como hago para subirlo mas arriba?
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
Asdito´^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 05-29-2010 , 20:10   Re: [ES][ZP] Cambiar el sprite de la granada
#4

Tocando esto
PHP Code:
engfunc(EngFunc_WriteCoordoriginF[0]+random_float(120.0, -120.0)) // x
    
engfunc(EngFunc_WriteCoordoriginF[1]+random_float(120.0, -120.0)) // y
    
engfunc(EngFunc_WriteCoordoriginF[2]+10.0
__________________
################################
Asdito´^ is offline
Send a message via MSN to Asdito´^
XCristiaNX
Veteran Member
Join Date: Dec 2009
Old 06-02-2010 , 10:22   Re: [ES][ZP] Cambiar el sprite de la granada
#5

PHP Code:
engfunc(EngFunc_WriteCoordoriginF[0]) // x
engfunc(EngFunc_WriteCoordoriginF[1]) // y
engfunc(EngFunc_WriteCoordoriginF[2]) // z 
Dejandolo asi no tendria q andar?...es q yo tmb estoy probando xq tengo el mismo problema
XCristiaNX is offline
 



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


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