Code: Select all
version "3.3"
class TestBall : DoomImpBall replaces DoomImpBall
{
int SpawnTime;
bool Spawned;
override void PostBeginPlay()
{
super.PostBeginPlay();
if (!Spawned)
{
let misl = TestBall(Spawn("TestBall",pos));
if (misl)
{
misl.target = target;
misl.angle = angle;
misl.pitch = pitch;
misl.Vel3DFromAngle(speed, misl.angle, target.BulletSlope());
misl.SpawnTime = level.time;
SpawnTime = level.time;
misl.Spawned = true;
}
}
}
override void Tick()
{
Super.Tick();
if (!Spawned && (level.time - SpawnTime > 0))
{
SetStateLabel("null");
}
}
}
I'm gonna also upload a zip with both zscript and mapinfo, ready for testing.
Before you say that this mod this meaningless: I know that, this mod is this simple only for testing purposes. I found this issue with Vel3DFromAngle while doing something else. It really does have a chance to not affect the actor's vertical velocity, so other mods may be affected.