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

is it possible to clone methodmaps?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Min2liz
AlliedModders Donor
Join Date: Feb 2008
Location: Street
Old 05-25-2019 , 11:02   is it possible to clone methodmaps?
Reply With Quote #1

Is there any way to clone methodmaps?

Lets say I have array where holding default data in methodmaps and so on:

Quote:
ZombieClass g_Zombies[MAX_CLASS];

ZombieClass Zombie = ZombieClass();
Zombie.HP = 100;
Zombie.Speed = 1.0
g_Zombies[id] = Zombie;

Now I want to that only 1 player, just say VIP, have more HP, Speed. trying like this:

Quote:
ZombieClass g_Player[MAXPLAYERS +1];

Player[client] = g_Zombies[id];
Player[client].HP = 150;

How I understand in this way, it will change main Zombie methods properties, but how to change only for this person methodmap properties? How I understand, need to clone methodmap or what?
Min2liz is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 05-26-2019 , 16:28   Re: is it possible to clone methodmaps?
Reply With Quote #2

Since ZombieClass is a methodmap for basically anyone to use, you should instead create some type of health modifier that's only applied to VIPs.

If you want to "clone" the methodmap, you're going to have to implement that yourself, of course.
headline 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 03:15.


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