howto make FastProjectile delay MissileType?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

howto make FastProjectile delay MissileType?

Postby determin1st » Sun Nov 28, 2021 6:34 am

Is there any way to delay appearance of MissleType trail of FastProjectile?

or.. how to get FastProjectile actor's TID in MissleType actor? if i get it, then i'll be able to check some ready flag and show or not show trail.

The use-case for this, is, for example, a rocket that first "jumps off" weapon and flies later. another (my current) example is a bullet (non-tracer) which trail is barely seen at the end of the flight. i spawn it at 14 unit in the front with speed<1 to get the spawn state executed and initialize it (because very fast projectiles dont enter their spawn state at close ranges).. the problem with that is that i see MissileType trail/sprite..
User avatar
determin1st
 
Joined: 06 Oct 2021

Re: howto make FastProjectile delay MissileType?

Postby determin1st » Mon Nov 29, 2021 3:12 pm

okee, with lots and lots of copy-paste code, i think i solved it.. the idea is about

ACTOR BulletTrail01 : BulletTrail {Health 1}
ACTOR BulletTrail02 : BulletTrail {Health 2}
ACTOR BulletTrail03 : BulletTrail {Health 3}
ACTOR BulletTrail04 : BulletTrail {Health 4}
ACTOR BulletTrail05 : BulletTrail {Health 5}
ACTOR BulletTrail06 : BulletTrail {Health 6}
ACTOR BulletTrail07 : BulletTrail {Health 7}
ACTOR BulletTrail08 : BulletTrail {Health 8}
ACTOR BulletTrail09 : BulletTrail {Health 9}
ACTOR BulletTrail10 : BulletTrail {Health 10}

and also 10 bullets with those trails, so.. the limit is 10 simultaneously flying bullets for now.. enough for a pistol i guess.
User avatar
determin1st
 
Joined: 06 Oct 2021


Return to General

Who is online

Users browsing this forum: roncho and 2 guests