Raised This Month: $ Target: $400
 0% 

[FXM]Flameshooting XM1014


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DavidJr
Senior Member
Join Date: Apr 2012
Old 12-27-2013 , 11:09   Re: [FXM]Flameshooting XM1014
Reply With Quote #2

About explosion, you can use register_touch like this:

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_touch("fxm_profectile""player""fwd_Touch")
    
register_touch("fxm_profectile""worldspawn""fwd_Touch")
    
// Add your code here...
}

public 
fwd_Touch(entid)
{
    new 
szClassname[33]
    
entity_get_string(entEV_SZ_classnameszClassname)
    
    if (
equal(szClassname"fxm_profectile")
    {
        new 
Float:iOrigin[3], fOrigin[3]
        
entity_get_vector(idEV_VEC_originiOrigin)
        
FVecIVec(iOriginfOrigin)
        
        
message_begin(MSG_BROADCASTSVC_TEMPENTITYfOrigin)
        
write_byte(TE_EXPLOSION)
        
write_coord(fOrigin[0])
        
write_coord(fOrigin[1])
        
write_coord(fOrigin[2])
        
write_short(explode)
        
write_byte(30)
        
write_byte(15)
        
write_byte(0)
        
message_end()
    }

__________________
What are you looking for here?

Last edited by DavidJr; 12-28-2013 at 04:37.
DavidJr 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 10:05.


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