Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New HitTypes to hit everything but the caster creature #3161

Open
3 tasks
ErminioLucente opened this issue Apr 18, 2024 · 3 comments
Open
3 tasks

New HitTypes to hit everything but the caster creature #3161

ErminioLucente opened this issue Apr 18, 2024 · 3 comments

Comments

@ErminioLucente
Copy link

ErminioLucente commented Apr 18, 2024

; Controls which things will be affected by the AreaDamage of the spell (1..8).
;1 - Affect all creatures and all objects.
;2 - Affect only creatures.
;3 - Affect not own creatures and objects.
;4 - Affect not own creatures.
;5 - Affect not own creatures which are not protected by Armour spell.
;6 - Affect all things.
;7 - Affect only dungeon hearts.
;8 - Affect only not own dungeon hearts.
9 - THit_CrtrsNObjctsNShot, // Affect all creatures and all objects, also allow colliding with other shots
10- THit_TrapsAll, // Affect all traps, not just the ones that are destructable

  • ;11 - Affect all things, except caster.
  • 12 ; Affect all creatures, except caster & objects
  • ;13 - Affect all creatures which are not protected by Armour spell., except caster & objects

HitType = 0

I currently have a slam attack from a big creature, that deals damage to everything, but sadly the caster receives damage too.
So im request 3 additional hit types with altered properties.
Previous spoke about here : https://discord.com/channels/480505152806191114/1083906845502091326/1230205774748450828

@walt253
Copy link
Contributor

walt253 commented Apr 18, 2024

relevant: https://github.com/dkfans/keeperfx/blob/master/src/thing_effects.h#L33

currently 9 and 10 are already used, but are not documented in the config

hit type 9 is:

THit_CrtrsNObjctsNShot, // Affect all creatures and all objects, also allow colliding with other shots

which is for Boulder, then there is hit type 10:

THit_TrapsAll, // Affect all traps, not just the ones that are destructable

@walt253
Copy link
Contributor

walt253 commented Apr 18, 2024

https://github.com/dkfans/keeperfx/blob/master/src/thing_list.c#L3303

@PieterVdc
Copy link
Member

PieterVdc commented Apr 19, 2024

//TODO replace HitType with these ... enum HitTargetFlagsList {

I see mefisto intended to directly use the HitTargetFlagsList instead of HitType, could do it like that, or make the HitType to HitTargetFlagsList list configurable, idk wich of the 2 would make more sense

I suppose the later would be best for backwards compatibility

the specific ones requested by ermin don't have related HitTargetFlagsList, so would also need extra of those to work

@Loobinex Loobinex changed the title 3 New HitTypes (Request) New HitTypes to hit everything but the caster creature Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants