Raised This Month: $ Target: $400
 0% 

TE_BEAMCYLINDERS width


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 03-11-2013 , 06:22   TE_BEAMCYLINDERS width
Reply With Quote #1

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?
Podarok is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 03-11-2013 , 09:50   Re: TE_BEAMCYLINDERS width
Reply With Quote #2

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.
Backstabnoob is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 03-11-2013 , 10:39   Re: TE_BEAMCYLINDERS width
Reply With Quote #3

Thanks a lot i got it now. Gonna finish my war3 surely in a while.
Podarok 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 21:37.


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