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

[ZP][RESUELTO]te_beampoint


  
 
 
Thread Tools Display Modes
Author Message
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 08-20-2013 , 08:01   [ZP][RESUELTO]te_beampoint
#1

Simple, Error:
Host_Error: CL_ParseServerMessage: Bad server message

Code

Code:
public make_tracer(id) {                         if (g_arma_super[id])                         {                                 new weapon = get_user_weapon(id)             new vec1[3], vec2[3]             get_user_origin(id, vec1, 1) // origin; your camera point.             get_user_origin(id, vec2, 4) // termina; where your bullet goes (4 is cs-only)                                     //BEAMENTPOINTS             message_begin( MSG_BROADCAST,SVC_TEMPENTITY)             write_byte (0)     //TE_BEAMENTPOINTS 0             write_coord(vec1[0])             write_coord(vec1[1])             write_coord(vec1[2])             write_coord(vec2[0])             write_coord(vec2[1])             write_coord(vec2[2])             write_short( m_spriteTexture )             write_byte(1) // framestart             write_byte(5) // framerate             write_byte(2) // life             write_byte(10) // width             write_byte(0) // noise             if(weapon == menu_death1[g_arma_super[id]][item_id])                         {                         write_byte(menu_death1[g_arma_super[id]][rede])                         write_byte(menu_death1[g_arma_super[id]][greene])                         write_byte(menu_death1[g_arma_super[id]][bluee])                         }      // r, g, b             write_byte(200) // brightness             write_byte(150) // speed             message_end()                         }                         return PLUGIN_HANDLED     }
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)

Last edited by Winchester90; 08-24-2013 at 12:55.
Winchester90 is offline
ChileScripting
BANNED
Join Date: Jan 2013
Old 08-20-2013 , 13:30   Re: [zp][duda]te_beampoint
#2

Nada que ver get_user_origin ahí usa pev_origin guarda la variable tal cual en get_user_origin al attacker.
ChileScripting is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 08-20-2013 , 13:50   Re: [zp][duda]te_beampoint
#3

Quote:
Originally Posted by Kiske View Post
En el TE_BEAMENTPOINT el write_short(id | 0x1000) es la posición desde la que sale el sprite indicado.
El 0x1000 es desde la punta del arma actual (si estás con cuchillo , granadas o la C4 en mano sale desde el centro del jugador el sprite)
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 08-20-2013 , 13:59   Re: [zp][duda]te_beampoint
#4

Estuve como 2 horas intentando hacerlo y leyendo tu tuto ahi me aclaras que sale por la mirilla pero no pones mas opciones :S Y aun nose nada de temp entitys.

Se que suena mal pero si me pudieses dejar la respuesta en bandeja te lo agradeceria mucho.

Edit: Tendria que cambiar algo? 0x1000
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)

Last edited by Winchester90; 08-20-2013 at 14:00.
Winchester90 is offline
ChileScripting
BANNED
Join Date: Jan 2013
Old 08-20-2013 , 14:30   Re: [zp][duda]te_beampoint
#5

Revisa mi post....
ChileScripting is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 08-20-2013 , 16:36   Re: [zp][duda]te_beampoint
#6

usa te_beampoint (beampoint, no beamENTpoint).
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
Anti
Senior Member
Join Date: Jul 2012
Location: sky
Old 08-20-2013 , 17:46   Re: [zp][duda]te_beampoint
#7

Quote:
Originally Posted by ChileScripting View Post
Nada que ver get_user_origin ahí usa pev_origin guarda la variable tal cual en get_user_origin al attacker.
por que nada que ver?
yo siempre supe que en este caso sin ningún flag o como se le diga[get_user_origin(index, Origen[3], flag(o como se le diga)] cumplen la misma función, obtener el origen de algo, la diferencia es que uno te lo da en float y otro en int.

Si me equivoco explícame please.
Anti is offline
Send a message via Skype™ to Anti
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 08-20-2013 , 18:01   Re: [zp][duda]te_beampoint
#8

get_user_origin devuelve int me parece, pev_origin devuelve float.
de todas maneras, no utiliza la variable origin.
si utilizara te_beampoint tendría que usar la variable origin (beampoint crea una linea entre dos origins, beamentpoint crea una linea entre un origin y una entidad, no sé si se pueda entre dos entidades, no he averiguado).
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 08-24-2013 , 12:56   Re: [ZP][ERROR]te_beampoint
#9

Probe algo nuevo y ahora me da ese error y nidea
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 08-24-2013 , 13:15   Re: [ZP][ERROR]te_beampoint
#10

...

Code:
message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte (0)     //TE_BEAMENTPOINTS 0 write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_coord(vec2[0]) write_coord(vec2[1]) write_coord(vec2[2]) write_short( m_spriteTexture ) write_byte(1) // framestart write_byte(5) // framerate write_byte(2) // life write_byte(10) // width write_byte(0) // noise
if(weapon == menu_death1[g_arma_super[id]][item_id])
{
    write_byte(menu_death1[g_arma_super[id]][rede])
    write_byte(menu_death1[g_arma_super[id]][greene])
    write_byte(menu_death1[g_arma_super[id]][bluee])
} write_byte(200) // brightness write_byte(150) // speed message_end()

Si no se cumple esa condicion, no se enviaran los 3 bytes de color, lo que causara un crash

Pueden en algun momento ponerse a buscar o a leer bien lo que intentan codear? o.O
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 08:58.


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