Raised This Month: $ Target: $400
 0% 

blood color


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 04-13-2006 , 18:43  
Reply With Quote #3

i just had to test this..

Code:
register_concmd("amx_blood", "spray_blood") .. public spray_blood(id) {     new arg[10], color     read_argv(1, arg,9)     color = str_to_num(arg)     new origin[3]     get_user_origin(id, origin)     message_begin(MSG_BROADCAST,SVC_TEMPENTITY)     write_byte(101)     //TE_BLOODSTREAM     write_coord(origin[0])  //start position: x     write_coord(origin[1])  //start position: y     write_coord(origin[2])  //start position: z     write_coord(0)      //spray vector: x     write_coord(0)      //spray vector: y     write_coord(0)      //spray vector: z     write_byte(color)       //color     write_byte(100)     //speed     message_end()     return PLUGIN_HANDLED }

i was able to produce blue blood by using amx_blood 2000
0 was somewhat black and white
1000 red etc, i didnt bother testing more.. u can do it urself

so as a conclusion: as u can register that as an event, u should also be able to hook it with engine's register_message (so u can change the values or sumtin..)
Code:
register_event("23", "function", "a", "1=101")  //register tempentity: TE_BLOODSTREAM
__________________
plop
p3tsin is offline
 



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:03.


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