Quote:
Originally Posted by wicho
Thx, I tried your code and it works fine but I found several things: the first is that when I shoot a zombie first and then I shoot a wall or the ground or something other than the zombie, it keeps losing life, the zombie or zombies would only have to lose life if I just shoot him. The second is that when I shoot the zombie or zombies the beam works well but when the zombie or zombies moves or I move the line stays at that origin, I mean the line doesn't follow me all the time, it takes I think a second. The beam is not bad it just need to upload the distortion and the size to make it look like the video.
|
you can modify the beam yourself its not a hard task.
as you can see here at this line
Code:
create_beam(fOrigin, fTOrigin, { 225, 225, 225 }, 5, 5, 10 /* life which is also a byte 10 = 1 second */ , 225 /* this is the brightness parameter value 1 byte from 0-255 */ );
so you probably want to decrease the life into 1 mili of a second.
here's the function definition
Code:
create_beam(Float:fStart[3], Float:fEnd[3], iColors[3], iFramerate, iWidth, iLife, iBrightness)
also as you stated here
Quote:
-The white beam appears when a player shoots at the enemy.
|
you didn't say if the enemy gets hit the beam appears.
__________________