by Apeirogon » Sat Nov 04, 2017 9:52 am
I try make monster with custom hitbox area.
Why? Because demon walk through hot magma field, forbidden cybernetics augmentations and unstable trans-dimensional portals just to die from one shot from rusty shootgun, who saw how Hannibal walk to the gates of Rome? I dont think so...
Besides, it make him more dangerous.
How? Well, you shoot him arm? He slowly retreat and still fight back, but not so accurate as before.
Shoot his leg? He fall at ground and lose abytily to walk, just crawl like worm, but gain much smaller hitbox.
Shoot his head? He start pulsing gush with arterial blood from neck stump shooting in every direction indiscriminately.
Pinned him to wall? "Just a flesh wound"
Fill his torso with bullet/holes? He start stain all around with blood and slowly lose hitpoint, accuracy and reaction/walking/shooting/etc. speed.
Now I almost finished pairs of such monsters, but I stuck in process of assembly all head/hand/foot/torso/hoof/horns and other chaingun with rocket launcher in one pile.
The problem is that actor which embody parts of body much smaller than hitbox of desired monster, say imp. I must, and wish, insert all body part inside of hitbox that imp, which make it completely unreachable for attacking, since all attack blocks by hitbox of that imp.
I try add to imp flag "spectral". It works, but now imp can not be reached by its body part, when it try to say/put in inventory token which means "you lost you arm/head" or damage him to imitate pain state.
I try make imp hitbox selectively skip only projectail, melee and hitscan via zscript. I get how make projectile fly through, hitscan and melee stil stuck in imp-master.
I try make infinitesimal hitbox for imp-master. It works as I want, but now imp can literally seep through closed doors/walls/other actors like true ghost, due his size of blocking. I dont know how make it stop do such thing when a_warp of his body part is impossible because of lack of space.
I even try act in the forehead, go over with brute force through all available combinations of flag, actor property and zscript cancollidewith in hope that I miss somethng or dont get. I spare 6 hours without any result.
So, anyone have any ideas how insert actor with smaller hitbox into actor with larger hitbox and make smaller actor shootable/reachable for/with projectile, hitscan and melee attack?