AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   TE_BEAMCYLINDERS width (https://forums.alliedmods.net/showthread.php?t=210505)

Podarok 03-11-2013 06:22

TE_BEAMCYLINDERS width
 
Hey. I'm trying to understand how TE_BEAMCYLINDER's width is calculated. I want to make it equal e.g. to radius 250.0. How can i convert it?

Backstabnoob 03-11-2013 09:50

Re: TE_BEAMCYLINDERS width
 
Code:
CreateCylinder( origin[3], addrad, sprite, startfrate, framerate, life, width, amplitude, red, green, blue, brightness, speed ) {     message_begin( MSG_BROADCAST, SVC_TEMPENTITY );     write_byte( TE_BEAMCYLINDER );     write_coord( origin[0] );     write_coord( origin[1] );     write_coord( origin[2] );     write_coord( origin[0] );     write_coord( origin[1] );     write_coord( origin[2] + addrad );     write_short( sprite );     write_byte( startfrate );     write_byte( framerate );     write_byte( life );     write_byte( width );     write_byte( amplitude );     write_byte( red );     write_byte( green );     write_byte( blue );     write_byte( brightness );     write_byte( speed );     message_end(); }

From this plugin: http://forums.alliedmods.net/showthr...ighlight=grave

addrad is probably the radius of the cylinder.

Podarok 03-11-2013 10:39

Re: TE_BEAMCYLINDERS width
 
Thanks a lot i got it now. Gonna finish my war3 surely in a while. :)


All times are GMT -4. The time now is 21:37.

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