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

[Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-09-2015 , 14:14   [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control.
Reply With Quote #1

Fifth Lesson Add (Control)
- all rights reserved to arvEL.-, in : 9/12/2015
In these lesson i will explain how to develop [Zombie Plague Advance v1.6.1]
re programming nemesis/assassin control.

first go to this topic [ # ] and download
[ZPA 1.6.1]
after that open the file [zombie_plague_advance_v1-6-1.sma] in [notepad++]

first
press [Ctrl + F] and find this line:

PHP Code:
// Ham Take Damage Post Forward 
it's have codes:

PHP Code:
// Ham Take Damage Post Forward
public fw_TakeDamage_Post(victim)
{
    
// --- Check if victim should be Pain Shock Free ---
    
    // Check if proper CVARs are enabled
    
if (g_zombie[victim])
    {
        
// Nemesis
        
if (g_nemesis[victim])
        {
            if (!
get_pcvar_num(cvar_nempainfree)) return;
        }
        
        
// Assassin
        
else if (g_assassin[victim])
        {
            if (!
get_pcvar_num(cvar_assassinpainfree)) return;
        }
        
        
// Zombie
        
else
        {
            switch (
get_pcvar_num(cvar_zombiepainfree))
            {
                case 
0: return;
                case 
2: if (!g_lastzombie[victim]) return;
            }
        }
    }
    else
    {
        
// Survivor
        
if (g_survivor[victim])
        {
            if (!
get_pcvar_num(cvar_survpainfree)) return;
        }
        
        
// Sniper
        
if (g_sniper[victim])
        {
            if (!
get_pcvar_num(cvar_sniperpainfree)) return;
        }
        
        
// Human
        
else return;
    }
    
    
// Set pain shock free offset
    
set_pdata_float(victimOFFSET_PAINSHOCK1.0OFFSET_LINUX)

replace all codes to:

PHP Code:
// Ham Take Damage Post Forward
public fw_TakeDamage_Post(victim)
{
    
// --- Check if victim should be Pain Shock Free ---
    
    // Check if proper CVARs are enabled
    
if (g_zombie[victim])
    {
        
// Nemesis
        
if (g_nemesis[victim])
        {
            if (!(
pev(victim,pev_button)&IN_JUMP && pev(victim,pev_button)&IN_DUCK)) return;
        }
        
        
// Assassin
        
else if (g_assassin[victim])
        {
            if (!(
pev(victim,pev_button)&IN_FORWARD && pev(victim,pev_button)&IN_FORWARD)) return;
        }
        
        
// Zombie
        
else
        {
            switch (
get_pcvar_num(cvar_zombiepainfree))
            {
                case 
0: return;
                case 
2: if (!g_lastzombie[victim]) return;
            }
        }
    }
    else
    {
        
// Survivor
        
if (g_survivor[victim])
        {
            if (!
get_pcvar_num(cvar_survpainfree)) return;
        }
        
        
// Sniper
        
if (g_sniper[victim])
        {
            if (!
get_pcvar_num(cvar_sniperpainfree)) return;
        }
        
        
// Human
        
else return;
    }
    
    
// Set pain shock free offset
    
set_pdata_float(victimOFFSET_PAINSHOCK1.0OFFSET_LINUX)

now press [Ctrl + F] and find this cvars and remove it:

PHP Code:
cvar_nempainfree
cvar_assassinpainfree 
now press [Ctrl + F] and find this line:

PHP Code:
// CVARS - Assassin 
it's have codes:

PHP Code:
    // CVARS - Assassin
    
cvar_assassin register_cvar("zp_assassin_enabled""1")
    
cvar_assassinchance register_cvar("zp_assassin_chance""20")
    
cvar_assassinminplayers register_cvar("zp_assassin_min_players""0")
    
cvar_assassinhp register_cvar("zp_assassin_health""0")
    
cvar_assassinbasehp register_cvar("zp_assassin_base_health""0")
    
cvar_assassinspd register_cvar("zp_assassin_speed""250")
    
cvar_assassingravity register_cvar("zp_assassin_gravity""0.5")
    
cvar_assassindamage register_cvar("zp_assassin_damage""250")
    
cvar_assassinglow register_cvar("zp_assassin_glow""1")
    
cvar_assassinaura register_cvar("zp_assassin_aura""1")    
    
cvar_assassinpainfree register_cvar("zp_assassin_painfree""0")
    
cvar_assassinignorefrags register_cvar("zp_assassin_ignore_frags""1")
    
cvar_assassinignoreammo register_cvar("zp_assassin_ignore_rewards""1"
replace all codes to:

PHP Code:
    // CVARS - Assassin
    
cvar_assassin register_cvar("zp_assassin_enabled""1")
    
cvar_assassinchance register_cvar("zp_assassin_chance""20")
    
cvar_assassinminplayers register_cvar("zp_assassin_min_players""0")
    
cvar_assassinhp register_cvar("zp_assassin_health""0")
    
cvar_assassinbasehp register_cvar("zp_assassin_base_health""0")
    
cvar_assassinspd register_cvar("zp_assassin_speed""250")
    
cvar_assassingravity register_cvar("zp_assassin_gravity""0.5")
    
cvar_assassindamage register_cvar("zp_assassin_damage""250")
    
cvar_assassinglow register_cvar("zp_assassin_glow""1")
    
cvar_assassinaura register_cvar("zp_assassin_aura""1")    
    
cvar_assassinignorefrags register_cvar("zp_assassin_ignore_frags""1")
    
cvar_assassinignoreammo register_cvar("zp_assassin_ignore_rewards""1"

now press [Ctrl + F] and find this line:

PHP Code:
// CVARS - Nemesis 
it's have codes:

PHP Code:
    // CVARS - Nemesis
    
cvar_nem register_cvar("zp_nem_enabled""1")
    
cvar_nemchance register_cvar("zp_nem_chance""20")
    
cvar_nemminplayers register_cvar("zp_nem_min_players""0")
    
cvar_nemhp register_cvar("zp_nem_health""0")
    
cvar_nembasehp register_cvar("zp_nem_base_health""0")
    
cvar_nemspd register_cvar("zp_nem_speed""250")
    
cvar_nemgravity register_cvar("zp_nem_gravity""0.5")
    
cvar_nemdamage register_cvar("zp_nem_damage""250")
    
cvar_nemglow register_cvar("zp_nem_glow""1")
    
cvar_nemaura register_cvar("zp_nem_aura""1")    
    
cvar_nempainfree register_cvar("zp_nem_painfree""0")
    
cvar_nemignorefrags register_cvar("zp_nem_ignore_frags""1")
    
cvar_nemignoreammo register_cvar("zp_nem_ignore_rewards""1"
replace all codes to:

PHP Code:
    // CVARS - Nemesis
    
cvar_nem register_cvar("zp_nem_enabled""1")
    
cvar_nemchance register_cvar("zp_nem_chance""20")
    
cvar_nemminplayers register_cvar("zp_nem_min_players""0")
    
cvar_nemhp register_cvar("zp_nem_health""0")
    
cvar_nembasehp register_cvar("zp_nem_base_health""0")
    
cvar_nemspd register_cvar("zp_nem_speed""250")
    
cvar_nemgravity register_cvar("zp_nem_gravity""0.5")
    
cvar_nemdamage register_cvar("zp_nem_damage""250")
    
cvar_nemglow register_cvar("zp_nem_glow""1")
    
cvar_nemaura register_cvar("zp_nem_aura""1")    
    
cvar_nemignorefrags register_cvar("zp_nem_ignore_frags""1")
    
cvar_nemignoreammo register_cvar("zp_nem_ignore_rewards""1"
end lesson. now the assassin + nemesis are have very good control.

now make compile and ejnoy
all rights reserved to arvEL.-

__________________

Last edited by arvEL.; 12-09-2015 at 15:47.
arvEL. is offline
Send a message via Skype™ to arvEL.
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 12-09-2015 , 15:12   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #2

Arvel,
This code by chuh

Than, the nemesis not like control on real 6.2 like CSB*

I don't know if you are noticed it or not
Than I told you
Painfree should be 0
Than add code to block dmg and slow down just when ducking and jumping
bakir123 is offline
Send a message via Skype™ to bakir123
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-09-2015 , 15:46   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #3

Quote:
Originally Posted by bakir123 View Post
Arvel,
This code by chuh

Than, the nemesis not like control on real 6.2 like CSB*

I don't know if you are noticed it or not
Than I told you
Painfree should be 0
Than add code to block dmg and slow down just when ducking and jumping
whatever it is better than the previous control.
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 12-10-2015 , 00:07   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #4

Quote:
Originally Posted by arvEL. View Post
whatever it is better than the previous control.
lol haha its just the same
What you did is to enable the painfree when nemesis player press duck + jump
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-10-2015 , 05:00   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #5

arveL explain what is nemesis/assassin control ?
__________________
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-10-2015 , 09:05   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #6

Quote:
Originally Posted by iLlegalzp View Post
arveL explain what is nemesis/assassin control ?
well. first before the moded ZPA 1.6.1 test the nemesis and assassin
when you became assassin or nemesis and the players shot you, you will stop of moved!
now after this lesson go and test the nemesis control or assassin control
when the players shot you, you will not stop from moving
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-10-2015 , 09:36   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #7

Quote:
Originally Posted by arvEL. View Post
well. first before the moded ZPA 1.6.1 test the nemesis and assassin
when you became assassin or nemesis and the players shot you, you will stop of moved!
now after this lesson go and test the nemesis control or assassin control
when the players shot you, you will not stop from moving
This is setting "zp_nem_painfree"
__________________
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-10-2015 , 13:50   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #8

Quote:
Originally Posted by iLlegalzp View Post
This is setting "zp_nem_painfree"
don't care to this setting "zp_nem_painfree" inside zombie_plague.cfg.
is empty options! i removed it from .sma main.
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-16-2015 , 16:12   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #9

seriously, no offence, but your lessons are malicious, you just hardcoded it to get done what you could of done by changing the cvar value....
__________________
Depresie is offline
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 12-17-2015 , 04:32   Re: [Tutorial] Fifth lesson in a series develop [ZPA 1.61] - Nemesis/Assassin Control
Reply With Quote #10

Quote:
Originally Posted by Depresie View Post
seriously, no offence, but your lessons are malicious, you just hardcoded it to get done what you could of done by changing the cvar value....
This code is already by Chihuahuax

than this code itn't like ZP 6.2 , they using C++ format, than, they have public about it

it's not easy to make control for nemesis as you thinking, you need much work for it, and you don't need cvar too
bakir123 is offline
Send a message via Skype™ to bakir123
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 10:07.


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