Raised This Month: $ Target: $400
 0% 

Changing beam origin


Post New Thread Reply   
 
Thread Tools Display Modes
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
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-30-2010 , 12:55   Re: Changing beam origin
Reply With Quote #2

set_task maybe?and every task you get some ++ at that coords ?
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-30-2010 , 13:05   Re: Changing beam origin
Reply With Quote #3

i thought about that to, but then i need a way to kill only one beam, otherwise they'll keep coming.
__________________

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



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