Blockland Forums > Modification Help
Editing MaxHealth through Client
Headcrab Zombie:
Using different datablocks is a bad idea if you want to have a lot of levels, as you'd need to create a lot of datablocks
I recommend something like this
--- Code: ---package fakeMaxHP
{
function Player::damage(this,%obj,%pos,%damage,%damageType)
{
%damage = %damage / (%this.client.fakeMaxHP / 100);
Parent::damage(%this,%obj,%pos,%damage,%damageType);
}
};
ActivatePackage(fakeMaxHP);
--- End code ---
Mapster:
How could I combine that with the code for having a required variable for it to work?
jes00:
Sounds like this guy just wants to cheat on servers by having more health then everyone else.
Mapster:
--- Quote from: jes00 on October 03, 2011, 06:12:05 AM ---Sounds like this guy just wants to cheat on servers by having more health then everyone else.
--- End quote ---
Wow if you had even read my earlier posts you would know thats not true. Besides this script would only work on my server anyway, don't post useless comments.
jes00:
--- Quote from: Mapster on October 03, 2011, 09:38:01 AM ---Wow if you had even read my earlier posts you would know thats not true. Besides this script would only work on my server anyway, don't post useless comments.
--- End quote ---
What about the title then?
--- Quote from: Topic Subject ---Editing MaxHealth through Client
--- End quote ---