Raised This Month: $ Target: $400
 0% 

Changing beam origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-30-2010 , 11:54   Changing beam origin
Reply With Quote #1

Hi

I made an entity and several TE_BEAMPOINT messages, and i was wondering how i can change the origins of the beams every second. Or delete 1 and make a new one on a random origin. I use this to make them:
PHP Code:
    beamorigin(Entrandom_num(-64006400), random_num(-64006400), random_num(-64006400), BeamSpr1.015.050.0random_num(1.010.0), 5.0random_num(1255), random_num(1255), random_num(1255), 20050)


stock beamorigin(entorigin1origin2origin3spritestartframefpslifewidthampredgreenbluebrightscroll)
{
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
    
write_byte(TE_BEAMENTPOINT)
    
write_short(ent
    
write_coord(origin1)
    
write_coord(origin2)
    
write_coord(origin3)
    
write_short(sprite
    
write_byte(startframe
    
write_byte(fps
    
write_byte(life
    
write_byte(width
    
write_byte(amp)     
    
write_byte(red)
    
write_byte(green)
    
write_byte(blue)
    
write_byte(bright)
    
write_byte(scroll)
    
message_end()

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
 



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 05:20.


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