AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Solved]Create Nemesis Kill Effect (https://forums.alliedmods.net/showthread.php?t=231178)

devilicioux 12-09-2013 08:40

[Solved]Create Nemesis Kill Effect
 
Image: zombie-mod.ru/uploads/posts/2013-09/1379453663_1333899032_hl-2012-04-08-19-26-38-61.jpg

PHP Code:

#include < amxmodx >
#include < zombieplague >

public plugin_init()
{
           
register_plugin("[ZP] Effect For Victim Nemesis""0.2""=_=");
    
           
register_event("DeathMsg""event_death""a");
}

public 
event_death() 
{
    static 
iVictimiKiller;
    
iVictim read_data);
    
iKiller read_data);
    
    if( !
is_user_connectediVictim ) )
        return;
    
    if( 
iKiller == iVictim || !iKiller )
        return;
    
    new 
vOrigin[3];
    
get_user_origin(iVictim,vOrigin);
    
    if ( 
zp_get_user_nemesis iKiller ) )
        
create_blood(vOrigin);
}

create_blood(vec1[3])
{
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); 
    
write_byte(TE_LAVASPLASH); 
    
write_coord(vec1[0]); 
    
write_coord(vec1[1]); 
    
write_coord(vec1[2]); 
    
message_end(); 


What i want to do is When some Human comes in contact with zombie .. Create this blood splatter effect .. In reference to Zombie Escape MOD by Dias v2.2

Also Any Stock Available that can create this kinda blood effect ?

wickedd 12-09-2013 08:52

Re: Create Nemesis Kill Effect
 
There's a plugin that does something similar, search for "Killing Particles". You should be able to edit it to your needs.

devilicioux 12-09-2013 09:12

Re: Create Nemesis Kill Effect
 
TYSM :) I ll lift up the code from that.. :)


All times are GMT -4. The time now is 20:36.

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