Author Topic: Player variables  (Read 3042 times)

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.
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?
« Last Edit: March 23, 2012, 03:22:14 PM by YourBuddyBill »

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.

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.
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?
« Last Edit: March 23, 2012, 03:44:45 PM by YourBuddyBill »

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?

Well yes, I suppose you can do that.

Well yes, I suppose you can do that.
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.