Blockland Forums > Modification Help

Player variables

Pages: << < (4/4)

YourBuddyBill:


--- Quote from: Port on March 23, 2012, 03:07:57 PM ---The one I provided is a minimal version. The version I use normally allows for out-of-mini-game damage, shield power, invincibility and overheal. I could post that one too if you want it.

Well, this could definitely be done, however this does overwrite a few default functions. It does an almost exact imitation of the default behavior, however it also causes the unfortunate side effect that any add-on which modifies damage functions executed before this will break.

--- End quote ---
Shield power is a yes, thanks!

Yeah, I edited my post on the 'releasing' thing, I think it's already a similar private mod elsewhere.
Thanks for all the help though!

EDIT:
So the mods will break if they modify which functions, exactly?
The best I can figure is that it will break the 'downed' status in Gamemode_Zombie... will it also break Assist Kills/Finished Off Kills?

Port:

Well, for example, it will break the TF2 medigun. Anything which modifies ::damage and is alphabetically sorted before the name of the add-on with the special code.

YourBuddyBill:


--- Quote from: Port on March 23, 2012, 03:29:32 PM ---Well, for example, it will break the TF2 medigun. Anything which modifies ::damage and is alphabetically sorted before the name of the add-on with the special code.

--- End quote ---
Ah. Will it be broken by anything that modifies that damage and is sorted after the addon with the code?'
And furthermore, is there a way to, ahem, 'splice' the mods together? I don't mind the medigun, but I want the assistkills and finishedoffkills to still work, so could those edits be added into the code as well to make it all work as one?

Port:


--- Quote from: YourBuddyBill on March 23, 2012, 03:35:30 PM ---Ah. Will it be broken by anything that modifies that damage and is sorted after the addon with the code?'
And furthermore, is there a way to, ahem, 'splice' the mods together? I don't mind the medigun, but I want the assistkills and finishedoffkills to still work, so could those edits be added into the code as well to make it all work as one?

--- End quote ---

Well yes, I suppose you can do that.

YourBuddyBill:


--- Quote from: Port on March 23, 2012, 04:35:49 PM ---Well yes, I suppose you can do that.

--- End quote ---
Sweet! Then compatibility with other specialkills mods is possible!
I think I saw another mod do that once, if this other mod was on, it would execute itself last and overwrite that mod with a different version with the overwritten mod's functions built in.

Pages: << < (4/4)

Go to full version