View Single Post
Old 07-22-2020   #2
Wandering Protagonist
Goldenhog's Avatar

It's definitely possible to commandeer the base character abilities.

addHook("AbilitySpecial", function(player)		--"AbilitySpecial" hooks when the "player" tries to use their jump+jump ability
	if player.charability == CA_GLIDEANDCLIMB	--check the player's ability
		return true				--true: "don't run the rest of the ability code"
This would stop the gliding from working... though you'd need an additional check for walls or otherwise it also stops the climbing from working. Wall checks like that are unfortunately above my Lua level, but maybe someone else will chime in to help with that.

I kinda wanna know what'll you do with the sprites, though. It's gonna take a bunch of them.
Originally Posted by Asagi Asagiri
I need power over the people! The stupid, STUPID people!
Goldenhog is offline   Reply With Quote