Raised This Month: $32 Target: $400
 8% 

Suggestion / Subplugin Request Custom item for custom zombie class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sortbox8
New Member
Join Date: Oct 2017
Old 10-27-2017 , 02:41   Custom item for custom zombie class
Reply With Quote #1

Hello. I want to learn some things about this great mod. It has been a long time since i played ZM and big content of many communities inspires me to learn more things. Thanks to everyone.

I understand, that this is very difficult system (not even 1-2 scripts), but i know, that this has been done by many players, so it's not something new. It has to be shared on this forum (but i didn't find this info).
My question: What to do if i want to add custom item (extra item) to specific zombie class? There is got to be a file (connections between specific class, plugin and this item).

How to do it manually (step by step)? If you have the full code, can you share it? My idea creates zombie class, that has unique item from the beginning. For example, infection grenade or even weapon (if it's possible. but the main priority is grenade)!

Please tell me if you know something about this.

Last edited by sortbox8; 10-27-2017 at 02:43.
sortbox8 is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 10-27-2017 , 13:45   Re: Custom item for custom zombie class
Reply With Quote #2

Look at zp50 sources

in the "zp item select pre" needs to set condition on zombie class:

Code:
if(itemid != g_ItemId) return ZP_ITEM_AVAILABLE;
if(zp_class_zombie_get_current(id) != zp_class_zombie_get_id("zombie class name")) return ZP_ITEM_DONT_SHOW;

return ZP_ITEM_AVAILABLE;
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX 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 12:23.


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