Raised This Month: $ Target: $400
 0% 

kill SVC_TEMPENTITY


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 07-09-2010 , 08:07   kill SVC_TEMPENTITY
Reply With Quote #1

I created a laser for one player:

PHP Code:
    message_begin(MSG_ONESVC_TEMPENTITY_player);
    
write_byte(TE_BEAMENTS);
    
write_short(ent);            // start entity
    
write_short(player);            // entity
    
write_short(sprite);    // precached sprite
    
write_byte(10);                    // starting frame
    
write_byte(15);                    // frame rate
    
write_byte(250);                    // life in 0.1's   so 30 should = 3 seconds
    
write_byte(60);                    // line width
    
write_byte(0);                    // noise amplitude
    
write_byte(255);                // r, g, b
    
write_byte(128);                // r, g, b
    
write_byte(0);                    // r, g, b
    
write_byte(255);                // brightness
    
write_byte(30);                    // scroll speed
    
message_end(); 
How to remove it on demand?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-09-2010 , 10:36   Re: kill SVC_TEMPENTITY
Reply With Quote #2

PHP Code:
message_begin(MSG_ONESVC_TEMPENTITY_player);
write_byte(99); // check hlsdk const
write_short(player);
message_end(); 
__________________
hleV is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-09-2010 , 14:12   Re: kill SVC_TEMPENTITY
Reply With Quote #3

Use constants so people know wth that is.... #99 is TE_KILLBEAM, it will kill all beams attached to entity.
__________________
Hunter-Digital is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-09-2010 , 15:12   Re: kill SVC_TEMPENTITY
Reply With Quote #4

That's why I added "// check hlsdk const". I didn't write this code now, but a long time ago and didn't bother looking for a named version of the number.
__________________
hleV is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 07-09-2010 , 18:04   Re: kill SVC_TEMPENTITY
Reply With Quote #5

Thanks.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
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 07:09.


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