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

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

Code:
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"
	end
end)
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.
__________________
Quote:
Originally Posted by Asagi Asagiri
I need power over the people! The stupid, STUPID people!
Goldenhog is offline   Reply With Quote