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

Creating a new class - Nemesis


Post New Thread Reply   
 
Thread Tools Display Modes
safetymoose
Senior Member
Join Date: Feb 2015
Old 07-05-2015 , 10:26   Re: Creating a new class - Nemesis
Reply With Quote #11

Quote:
Originally Posted by zmd94 View Post
There is no problem with the given code. You just have to add new check in your zombie classes by using zp_class_hunter_get native. As an example:
Code:
// if player is hunter
if(zp_class_hunter_get(id))
    return
Yeah, but default nemesis doesnt do that. How does default nemesis do it without these checks?
safetymoose is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-05-2015 , 11:13   Re: Creating a new class - Nemesis
Reply With Quote #12

As i said it doesn't, you are missing something..

Quote:
nope, it doesn't, the regular nemesis still keeps the abilities from the zombie unless you block it in their .sma as far as i know
the reason it doesn't it's because you have inside the zombie class sma this->
Quote:
if(zp_class_nemesis_get(id))
return;

or if(!zp_class_nemesis_get(id))

Last edited by Depresie; 07-05-2015 at 11:14.
Depresie is offline
safetymoose
Senior Member
Join Date: Feb 2015
Old 07-05-2015 , 11:39   Re: Creating a new class - Nemesis
Reply With Quote #13

I see, you're right. After i looked at the rage zombie's sma, i see that there is a check for the nemesis before applying the glow.

Thank you for pointing me in the right direction. And sorry if i was a little stubborn...
safetymoose is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-05-2015 , 13:16   Re: Creating a new class - Nemesis
Reply With Quote #14

Nevermind. At least you are willing to learn. ;)

Last edited by zmd94; 07-05-2015 at 13:16.
zmd94 is offline
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 06:53.


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