Witam, mam tutaj kod śladu łowcy z diablomoda, linia nie jest prosta tylko idzie zygzakiem, o ile się orientuję write_byte(40) // noise za to odpowiada, moje pytanie jak dodać tą cechę do mojego traila. Pozdrawiam
message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},id) write_byte(0) write_coord(start[0]) // starting pos write_coord(start[1]) write_coord(start[2]) write_coord(end[0]) // ending pos write_coord(end[1]) write_coord(end[2]) write_short(sprite_line) // sprite index write_byte(1) // starting frame write_byte(5) // frame rate write_byte(100) // life write_byte(10) // line width write_byte(40) // noise write_byte(000) // RED write_byte(255) // GREEN write_byte(000) // BLUE write_byte(80) // brightness write_byte(5) // scroll speed message_end()
mój kod
message_begin(MSG_BROADCAST, SVC_TEMPENTITY) // TE_BEAMFOLLOW ( msg #22) create a line of decaying beam segments until entity stops moving write_byte(22) // msg id write_short(ePlasmaBalltt) // short (entity:attachment to follow) write_short(gTrailModel) // short (sprite index) write_byte(25) // byte (life in 0.1's) write_byte(7) // byte (line width in 0.1's) write_byte(40) // noise write_byte(255) // byte (color) write_byte(70) // byte (color) write_byte(40) // byte (color) write_byte(255) // byte (brightness) message_end()