Raised This Month: $ Target: $400
 0% 

Blood effect/beam ... [UNANSWERED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Davidos
Senior Member
Join Date: Feb 2005
Old 02-20-2007 , 14:12   Re: Blood effect/beam ...
Reply With Quote #1

Quote:
Originally Posted by SAMURAI16 View Post
you can use TE_BLOODSTREAM
Code:
#define    TE_BLOODSTREAM  101            
 write_byte(TE_BLOODSTREAM)
 write_coord(position.x)
 write_coord(position.y)
 write_coord(position.z)
 write_coord(vector.x)
 write_coord(vector.y)
 write_coord(vector.z)
 write_byte(color)
 write_byte(speed)
If you want to send blood from an person to another just take a look on AMX Piss plugin and change from that yellow stream in a blood effects
But the problem is, piss goes to where the user aims at... but not to a player itself...

Code:
public sqrt(num) {     new div = num     new result = 1     while (div > result) {         div = (div + result) / 2         result = num / div     }     return div } public make_blood(ids[]) {     new id=ids[0]     new vec[3]     new aimvec[3]     new velocityvec[3]     new length     get_user_origin(id,vec)     get_user_origin(id,aimvec,3)     new distance = get_distance(vec,aimvec)     new speed = floatround(distance*1.9)         velocityvec[0]=aimvec[0]-vec[0]     velocityvec[1]=aimvec[1]-vec[1]     velocityvec[2]=aimvec[2]-vec[2]         length=sqrt(velocityvec[0]*velocityvec[0]+velocityvec[1]*velocityvec[1]+velocityvec[2]*velocityvec[2])         velocityvec[0]=velocityvec[0]*speed/length     velocityvec[1]=velocityvec[1]*speed/length     velocityvec[2]=velocityvec[2]*speed/length     message_begin(MSG_BROADCAST,SVC_TEMPENTITY)     write_byte(101)     write_coord(vec[0])     write_coord(vec[1])     write_coord(vec[2])     write_coord(velocityvec[0])     write_coord(velocityvec[1])     write_coord(velocityvec[2])     write_byte(225) // color     write_byte(160) // speed     message_end() }

this is from the piss code, but then I modded the color and the name XD, I took out the case stuff as well, seeing you don't need to set up the style...

So how do I edit that in there?


Cuz somtin tells me THIS doesn't work

Code:
public make_blood(ids[]) {     new id=vec1[3]     new target=vec2[3]     message_begin(MSG_BROADCAST,SVC_TEMPENTITY)     write_byte(101)     write_coord(vec1[0])     write_coord(vec1[1])     write_coord(vec1[2])     write_coord(vec2[0])     write_coord(vec2[1])     write_coord(vec2[2])     write_byte(225) // color     write_byte(160) // speed     message_end() }

Last edited by Davidos; 02-20-2007 at 18:03.
Davidos is offline
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 00:44.


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