Raised This Month: $ Target: $400
 0% 

TE_LINE bigger


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 12-03-2010 , 12:25   TE_LINE bigger
Reply With Quote #1

I have code
PHP Code:
new Float:end[3], Float:start[3];
    
    new 
origin[3];
    
get_user_origin(idorigin3);
    
IVecFVec(originend);
    
    
get_user_origin(idorigin);
    
IVecFVec(originstart);
    
    
xs_vec_sub(startendstart);
    new 
Float:fMulti 2.0 vector_length(start);
    
xs_vec_mul_scalar(startfMultistart);
    
    new 
Float:end2[3];
    
//start to wektor przesuniecia
    //end to pozycja domyslna
    
xs_vec_add(startendend2);
       
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
    
write_byte(TE_LINE);
    
engfunc(EngFunc_WriteCoord,end[0])
    
engfunc(EngFunc_WriteCoord,end[1])
    
engfunc(EngFunc_WriteCoord,end[2])
    
engfunc(EngFunc_WriteCoord,end2[0])
    
engfunc(EngFunc_WriteCoord,end2[1])
    
engfunc(EngFunc_WriteCoord,end2[2])
    
write_short(1);
    if(
get_user_team(id) == 1){
        
write_byte(255)
        
write_byte(0)
        
write_byte(0)
    }
    else{
        
write_byte(0)
        
write_byte(0)
        
write_byte(255)
    }
    
message_end(); 
code works but I want to do point bigger not line longer
DarkGL is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-03-2010 , 12:55   Re: TE_LINE bigger
Reply With Quote #2

Use instead and set line width:
Code:
#define	TE_BEAMPOINTS               0        // Beam effect between two points
// write_byte(TE_BEAMPOINTS)
// write_coord(startposition.x)
// write_coord(startposition.y)
// write_coord(startposition.z)
// write_coord(endposition.x)
// write_coord(endposition.y)
// write_coord(endposition.z)
// write_short(sprite index) 
// write_byte(starting frame) 
// write_byte(frame rate in 0.1's) 
// write_byte(life in 0.1's) 
// write_byte(line width in 0.1's) 
// write_byte(noise amplitude in 0.01's) 
// write_byte(red)
// write_byte(green)
// write_byte(blue)
// write_byte(brightness)
// write_byte(scroll speed in 0.1's)
Also, if you work with integers, you don't need to use EngFunc_WriteXXX.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 12-03-2010 , 13:34   Re: TE_LINE bigger
Reply With Quote #3

first I have do
PHP Code:
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
        
write_byte(TE_BEAMPOINTS);
        
engfunc(EngFunc_WriteCoord,end[0])
        
engfunc(EngFunc_WriteCoord,end[1])
        
engfunc(EngFunc_WriteCoord,end[2])
        
engfunc(EngFunc_WriteCoord,end2[0])
        
engfunc(EngFunc_WriteCoord,end2[1])
        
engfunc(EngFunc_WriteCoord,end2[2])
        
write_short(spr_trail);
        
write_byte(0);
        
write_byte(0);
        
write_byte(1);    Life
        write_byte
(200);    Width
        write_byte
(0);    wave
        
if(get_user_team(id) == 1){
            
write_byte(255)
            
write_byte(0)
            
write_byte(0)
        }
        else{
            
write_byte(0)
            
write_byte(0)
            
write_byte(255)
        }
        
write_byte(50);
        
write_byte(255);
        
message_end();
spr_trail engfunc(EngFunc_PrecacheModel,"sprites/laserbeam.spr"
but effect was more than bad
is
http://amxx.pl/uploads/images/amxx.p...1193-U6262.jpg
I want to be
http://amxx.pl/uploads/images/amxx.p...1234-U6262.jpg
(I exaggerated a little )
DarkGL is offline
Reply


Thread Tools
Display Modes

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 11:23.


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