Possession Swipe Graphics configurable on instance level
I think it's a good idea that each type of attack can refer to a different ‘PossessSwipeIndex’.
notes for anyone that wants to implement it currently creature specifc cfgs contain
[appearance]
PossessSwipeIndex = 1
expand it so creature.cfg the [instanceXX] blocks also contain the field, which overrides the one on creature level (not overriding it should keep the one on cr level)
when implementing also be sure to check multiplayer, I notice currently game.loaded_swipe_idx has the swipe_ide, which might already not work properly, so best check if nothing gets overriden for wrong player, didn't test if it currently works correctly, but could both be tackled when looking in to the block of code
I see #4311 mentions the issue indeed already exists in mp, so maybe tackle both
Fantastic!
to be clear I'm not looking at picking it up anytime soon, so just added some notes for if someone else does
There is a clear reason why it is not on an instance level currently of course, since swipes are creature properties not attack properties. There is a melee attack, and then the swipe is supposed to be the creatures arm/weapon you see. And this is with melee being the only thing doing swipes and there just being one melee attack per creature, it makes total sense.
What @Dragonlich8 does not explain, is why he would need the swipes on a per attack basis. Surely not to simply split up the 2 melee attacks we have into a total of 12, for very little gain. And then if we do have such an attack that warrants a different swipe, then do we not want to keep the same logic there, and have this new attack do a different swipe for different creature types depending on the weapon they use? (e.g, have a bite attack show different types of teeth depending on the unit).
well it would be custom swipes tied to a spell I suppose, which the current game doesn't really do for melee yeah no need for it
well it would be custom swipes tied to a spell I suppose, which the current game doesn't really do for melee yeah no need for it
Swipes are for abilities without a projectile. So ranged abilities already do not need a swipe. So we would have it for custom spells like 'bite', but there you want the teeth-swipe to match the creature too.
Sorry for the delay... I hadn't seen your posts. So, I would like there to be the option to view different “images” for melee attacks in particular. For example, I have creatures that punch, use their claws (yes, I know punching with long claws is a mess in reality) and kick. So it would be nice if it were possible to see different images. There are also creatures that use a sword attack and a shield attack.