Raised This Month: $ Target: $400
 0% 

create_TE_Spray help..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 07-17-2010 , 08:28   create_TE_Spray help..
Reply With Quote #1

how to create TE_spray who can passes through the wall?
or variant two.. it's real to get distance to wall/roof/platform over head?
for example: I want to create TE_SPRAY from skyes [origins[3]] through the roof to the floor


original stock:
PHP Code:
stock Create_TE_SPRAY(position[3], direction[3], iSpritecountspeednoiserendermode){

    
message_beginMSG_BROADCAST,SVC_TEMPENTITY 
    
write_byteTE_SPRAY )
    
write_coordposition[0] )        // Position
    
write_coordposition[1] ) 
    
write_coordposition[2] ) 
    
write_coorddirection[0] )        // Direction 
    
write_coorddirection[1] )  
    
write_coorddirection[2] ) 
    
write_shortiSprite )            // Sprite
    
write_bytecount )                // count 
    
write_bytespeed )                // speed 
    
write_bytenoise )                // noise
    
write_byterendermode )        // rendermode
    
message_end() 



Last edited by AngeIII; 07-17-2010 at 15:08.
AngeIII is offline
Send a message via Skype™ to AngeIII
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 07-17-2010 , 10:04   Re: create_TE_Spray help..
Reply With Quote #2

example.. but sprites can't go through thea wall,roof..

it's real to get over head(roof,wall,ceiling,model..) coordinats[distance]? [sorry for my ban english..]
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define TE_SPRAY            120
new g_sFire;
public 
plugin_init()
{
    
register_plugin"fire_ball""1.0""-=ThQ=-" );
    
    
register_clcmd"xxa","go_fire");
}

public 
plugin_precache()
{
    
g_sFire precache_model("sprites/explode1.spr");
}

public 
go_fire(id,lvl,cid)
{
    if( 
cmd_accessidlvlcid) )
    {
        new 
parm[3];
        
get_user_origin(id,parm);
        
set_task(5.0,"xxa2",id,parm,3);
    }
    return 
PLUGIN_HANDLED;
}

public 
xxa2(parm[3])
{
    new 
origins2[3];
    
parm[2]+=200;
    
origins2[0]=(random_num(-4,4));
    
origins2[1]=(random_num(-4,4));
    
origins2[2]=-8;
    
Create_TE_SPRAY(parmorigins2g_sFire7701005);
}
stock Create_TE_SPRAY(position[3], direction[3], iSpritecountspeednoiserendermode){

    
message_beginMSG_BROADCAST,SVC_TEMPENTITY 
    
write_byteTE_SPRAY )
    
write_coordposition[0] )        // Position
    
write_coordposition[1] ) 
    
write_coordposition[2] ) 
    
write_coorddirection[0] )        // Direction 
    
write_coorddirection[1] )  
    
write_coorddirection[2] ) 
    
write_shortiSprite )            // Sprite
    
write_bytecount )                // count 
    
write_bytespeed )                // speed 
    
write_bytenoise )                // noise
    
write_byterendermode )        // rendermode
    
message_end() 


Last edited by AngeIII; 07-17-2010 at 10:30.
AngeIII is offline
Send a message via Skype™ to AngeIII
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 07-17-2010 , 17:48   Re: create_TE_Spray help..
Reply With Quote #3

i think if not real to create sprite who can go through walls then maybe real to get distance or origins for over the head roof / wall / block.....
AngeIII is offline
Send a message via Skype™ to AngeIII
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 07-18-2010 , 17:20   Re: create_TE_Spray help..
Reply With Quote #4

no one? up..
;(
AngeIII is offline
Send a message via Skype™ to AngeIII
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 07:09.


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