AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   blood color (https://forums.alliedmods.net/showthread.php?t=27040)

-=*HQz=-=mAster nOob=- 04-13-2006 17:59

blood color
 
how do i change the colour of the blood?

SweatyBanana 04-13-2006 18:07

its a sprite...

you would have to edit the sprite..

p3tsin 04-13-2006 18:43

i just had to test this.. :P

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 :P

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

[ --<-@ ] Black Rose 04-13-2006 22:27

normal blood color is 223


All times are GMT -4. The time now is 05:03.

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