VelIntercept

Moderator: GZDoom Developers

Post Reply
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

VelIntercept

Post by Major Cooke »

Pull Request

This is basically the Thing_ProjectileIntercept code export for a specified actor.

Code: Select all

Class Rawket : Rocket replaces Rocket
{
	override void PostBeginPlay()
	{
		Super.PostBeginPlay();
		if (target && !target.player)
		{
			tracer = target.target;
			if (tracer)
				VelIntercept(tracer);
			Vel3DFromAngle(speed, angle, pitch); // Just to show aimpitch is actually working as intended.
		}
	}
}
Summon a cyberdemon and run around. The rockets will change their aim in an attempt to intercept you.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: VelIntercept

Post by wildweasel »

Since this was Reported, I'd like to leave a friendly reminder that Reported posts go to the moderators, not the developers - the devs don't read them, and non-Admin moderators can't move threads to the Closed areas. If you need to mark a submission or feature thread that has been added but not closed, it's OK to bump it.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: VelIntercept

Post by Nash »

This was already added so whoever reported it probably meant this thread to be closed.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: VelIntercept

Post by Major Cooke »

Nash wrote:This was already added so whoever reported it probably meant this thread to be closed.
This, precisely. But I'll bear that in mind next time, thanks weasel.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”