AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Nemesis and Assassin explode! or when killed by a Assassin victim (https://forums.alliedmods.net/showthread.php?t=273556)

Pinnker123 10-21-2015 06:57

Nemesis and Assassin explode! or when killed by a Assassin victim
 
Hi, i use ZPA. Can someone tell me from where i can extension the life of nemesis and assassin explode for example the skull when nemesis / assassin die from they falling skulls, foots i'm gave for example the skull http://snag.gy/TYqRI.jpg with one my friend found inly this


PHP Code:

    // Nemesis and Assassin explode! or when killed by a Assassin victim is cut in pieces
    
if (g_nemesis[victim] || g_assassin[victim] || (g_assassin[attacker] && get_pcvar_num(cvar_nemfraggore)))
        
SetHamParamInteger(32


Depresie 10-21-2015 07:37

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
i dont understand...

Pinnker123 10-21-2015 12:21

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
right after they fall a few seconds begin to fade and disappear so i want to extension this period

Chihuahuax 10-21-2015 12:49

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
Then you will need to use message_begin instead of setparamhaminteger

Pinnker123 10-21-2015 12:54

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
would you explain because I do not know much scripting

Chihuahuax 10-21-2015 13:01

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
You will need to change the SetHamParamInteger to something like this:
PHP Code:

new i_v_Origin[3]
    
get_user_origin(id,i_v_Origin)
    
    
message_begin(MSG_PVS,SVC_TEMPENTITYi_v_Origin)
    {
        
write_byte(TE_BREAKMODEL)
        
        
write_coord(i_v_Origin[0])
        
write_coord(i_v_Origin[1])
        
write_coord(i_v_Origin[2] + 16)
        
        
write_coord(32)
        
write_coord(32)
        
write_coord(32)
        
        
write_coord(0)
        
write_coord(0)
        
write_coord(25)
        
        
write_byte(xxx//spread range
        
        
write_short(xxx//model of gib
        
        
write_byte(xxx//number of gibs
        
write_byte(xxx//how long do the skulls last
        
        
write_byte(xxx//gib materials
    
}
    
message_end() 


Pinnker123 10-21-2015 13:07

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
this

// Cut him into pieces
SetHamParamInteger(3, 2)

// Get his origin
static origin[3]
get_user_origin(victim, origin)

// Make some blood in the air
message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
write_byte(TE_LAVASPLASH) // TE id
write_coord(origin[0]) // origin x
write_coord(origin[1]) // origin y
write_coord(origin[2] - 26) // origin z
message_end()
}
}

with your code ?

Chihuahuax 10-22-2015 05:23

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
Post your full .sma here

Pinnker123 10-22-2015 06:31

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
1 Attachment(s)
Ok, and after you add the code i want to tell me what did you changed because i want to know

Chihuahuax 10-22-2015 07:42

Re: Nemesis and Assassin explode! or when killed by a Assassin victim
 
1 Attachment(s)
PHP Code:

new gibs
new g_p_Cvar_GibLife

public plugin_init()
{
    
g_p_Cvar_GibLife register_cvar("gib_life","30")
}

public 
plugin_precache()
{
    
gibs precache_model("models/hgibs.mdl")


PHP Code:

    if (g_nemesis[victim] || g_assassin[victim] || (g_assassin[attacker] && get_pcvar_num(cvar_nemfraggore))){
        static 
origin[3]
        
get_user_origin(victimorigin)

        
message_begin(MSG_BROADCASTSVC_TEMPENTITY_victim
        
write_byte(107)
        
write_coord(origin[0])
        
write_coord(origin[1]) 
        
write_coord(origin[2] + 10
        
write_coord(255)
        
write_short(gibs)
        
write_short(20)
        
write_byte(get_pcvar_num(g_p_Cvar_GibLife))
        
message_end()
    } 

type "gib_life <time (s)>" in console to change how long it lasts

:::Not tested


All times are GMT -4. The time now is 06:50.

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