Raised This Month: $ Target: $400
 0% 

[Origin] Make it further


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 12-19-2014 , 18:19   [Origin] Make it further
Reply With Quote #1

How I can do this Sprblood a little bit further from player? I need that spr at the point where player is aiming. My code:

PHP Code:
public Sprblood(id)
{
    new 
iOrigin[3]
    
get_user_origin(idiOrigin1);

    for (new 
03i++)
    {
        for (new 
02j++)
        {
            
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
            
write_byte(TE_BLOODSPRITE)
            
write_coord(iOrigin[0] + 40)
            
write_coord(iOrigin[1])
            
write_coord(iOrigin[2])
            
write_short(spr_blood_spray)
            
write_short(spr_blood_drop)
            
write_byte(225)
            
write_byte(15)
            
message_end()
        }
    }

Now it is further, but when I turn a little bit it's on the same place (because I'm adding only at X).
I think I need to get other origin, but I don't know which.

Last edited by ~Ice*shOt; 12-19-2014 at 18:20.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-20-2014 , 05:59   Re: [Origin] Make it further
Reply With Quote #2

Code:
new iOrigin[3]
get_user_origin(id, iOrigin, 3);
Get the origin from players eyes(where he is aiming).
__________________

Last edited by HamletEagle; 12-20-2014 at 05:59.
HamletEagle is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 12-20-2014 , 10:25   Re: [Origin] Make it further
Reply With Quote #3

With this it appears at the end of aim origin, for example if you're aiming into wall it appers on it
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-20-2014 , 10:32   Re: [Origin] Make it further
Reply With Quote #4

And where you want ?
__________________
HamletEagle 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 15:23.


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