Questions about few flags

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Questions about few flags

Post by Void Weaver »

1. What does
INTERPOLATEANGLES
DONTINTERPOLATE
and
SPF_INTERPOLATE flags in A_SetAngle\A_SetPitch functions?
I mean that I know in general what's 'interpolation' means, but how it work in therms of modding?

2. What's practice sense of VULNERABLE flag? I mean how taking of a some damage can affect a some non-shootable actor? o_0
EDIT:
An example of use: destructible decoration like a tech lamp. You can't break it with a gun shot, but a rocket will destroy it.

Another example: pipe bombs like in Duke Nukem.

The interest is that they don't need to have the SHOOTABLE flag, so they don't "snag" your autoaim.
Sooo, the VULNERABLE for non-shootable actors acts like SHOOTABLE but only by AoE? Then it make sense. :)
User avatar
Tartlman
Posts: 226
Joined: Thu Oct 11, 2018 5:24 am
Location: meme hell
Contact:

Re: Questions about few flags

Post by Tartlman »

1. It just interpolates turning, just like you can interpolate moving. (example: instead of snapping from 30 to 60 degrees, it goes 30, 35, 40, etc...) It's probably much more noticeable with models.

2. Exactly. That way you can have actors that are destructible as collateral damage but won't get in the way of your normal combat.
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: Questions about few flags

Post by Void Weaver »

1. Oh, those flags are just for smooth movement and render with intermediate step pitch\angle values of models?

How to goes calculation of interpolation step?

In which cases it does matter for sprites too? I mean that doom perspective returns fixed angle values for sprite rendering (8 or 16 direction). Or I'm just misunderstood something?
Post Reply

Return to “Scripting”