[Not needed] Flag for solid actor that CAN NOT be shoot

Moderators: Developers, ZDoom.org Team

Flag for solid actor that CAN NOT be shoot

Postby Apeirogon » Wed Nov 01, 2017 2:01 pm

Coding monster with custom hitbox area, like arachnotron that can be injured only with shoot aimed directly into brain, I face two problem.

1.I need to remove +SHOOTABLE flag from monster, that attack can pass through him to some hitbox inside radius/height monster property.
But A_KillMaster and A_DamageMaster, which activate on the death of hitbox actor to kill "master" monster, dont work on "master" without +SHOOTABLE flag.
A_RemoveMaster lead to script error, like dont arising platform/step to exit pillar in 07 map of Doom 2.

2. Projectile which hit +SOLID monster enter death state, even if it mark as -SHOOTABLE.
Even +RIPPER projectile enter to death state without ripping to aimed hitbox area.
Hitscan attack work as expected, "fly" through monster without any changes and problems.

So I need flag that left actor with blocking and collide check properties of +SOLID flag, but dont block flying through it projectile and hitscan.
Currently most suitable flag that show what i wish is SPECTRAL, actor left in area of interest of game physics and do not react to any attack and disturb them.
But it say "A monster with this flag can only be hurt by a missile that also has this flag set.", so it can lead to some...."thing", like "I kill mighty spider mastermind shooting only at it left heel".
Name it like SOLIDCANTSHOOT.
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Flag for solid actor that CAN NOT be shoot

Postby Graf Zahl » Wed Nov 01, 2017 2:23 pm

You can do that easily by using ZScript and overriding the CanCollideWith method for your monster.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Flag for solid actor that CAN NOT be shoot

Postby Apeirogon » Wed Nov 01, 2017 2:54 pm

If I know how to use it...
Well, i get it. Try to find some who teach me what, how and why to do this.
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: Flag for solid actor that CAN NOT be shoot

Postby Graf Zahl » Wed Nov 01, 2017 3:02 pm

That's what the "editing" forum is there for.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Flag for solid actor that CAN NOT be shoot

Postby ZzZombo » Fri Nov 10, 2017 8:42 am

Remove the +SHOOTABLE, add +VULNERABLE.
ZzZombo
 
Joined: 16 Jul 2012

Re: Flag for solid actor that CAN NOT be shoot

Postby Apeirogon » Fri Nov 10, 2017 4:24 pm

ZzZombo wrote:Remove the +SHOOTABLE, add +VULNERABLE.

:wub: :thumb: :glomp:
Dude you awesome, lets drink :cheers:
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests