Why do you feel the need to cheat with sprite names? Even when using just letters and numbers you have 1679616 distinct sprite names available.
There's just no need to add such hacks to the engine.
Moderator: GZDoom Developers
Graf Zahl wrote:Why do you feel the need to cheat with sprite names? Even when using just letters and numbers you have 1679616 distinct sprite names available.
There's just no need to add such hacks to the engine.
projectile.angle //works
projectile.pitch //equals to 0
ZoDX32 wrote:It seems the projectile pitch doesn't change while flying, but only angle. So i want to know how to find projectile's momentum pitch in zscript?
override void PostBeginPlay()
{
A_SetPitch(-atan2(vel.z,sqrt((vel.x*vel.x) + (vel.y*vel.y))));
Super.PostBeginPlay();
}
Users browsing this forum: No registered users and 1 guest