Raised This Month: $12 Target: $400
 3% 

Nemesis and Assassin explode! or when killed by a Assassin victim


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 10-21-2015 , 06:57   Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #1

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
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-21-2015 , 07:37   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #2

i dont understand...
Depresie is offline
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 10-21-2015 , 12:21   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #3

right after they fall a few seconds begin to fade and disappear so i want to extension this period
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-21-2015 , 12:49   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #4

Then you will need to use message_begin instead of setparamhaminteger
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 10-21-2015 , 12:54   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #5

would you explain because I do not know much scripting
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-21-2015 , 13:01   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #6

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() 

Last edited by Chihuahuax; 10-21-2015 at 13:05.
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 10-21-2015 , 13:07   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #7

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 ?
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-22-2015 , 05:23   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #8

Post your full .sma here
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 10-22-2015 , 06:31   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #9

Ok, and after you add the code i want to tell me what did you changed because i want to know
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague_advance_v1-6-1.sma - 541 views - 418.1 KB)
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-22-2015 , 07:42   Re: Nemesis and Assassin explode! or when killed by a Assassin victim
Reply With Quote #10

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
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague_advance_v1-6-1.sma - 549 views - 418.8 KB)
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Reply


Thread Tools
Display Modes

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 17:22.


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