VelIntercept

Like feature suggestions, but you've actually written code to make it happen. More likely to make it into the game than some random request in feature suggestions.

Moderator: Developers

Forum rules
Please see Code submission guidelines

GZDoom Status:
Image Image

Link to Legacy Repo

QZDoom Status:
Image Image

VelIntercept

Postby Major Cooke » Mon Sep 24, 2018 11:08 am

Pull Request

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

Code: Select allExpand view
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
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Return to Code Submissions

Who is online

Users browsing this forum: No registered users and 1 guest