Talk:Projectile Trap
Jump to navigation
Jump to search
Projectiles thrown too fast
Arg2(Speed) - The speed at which the projectile is thrown. 80 is a good value
80 is a good value, he says. How comes that a projectile should derive from FastProjectile class to be capable of easily handling speeds over 60? Either this 80 should be reduced to 60, or FastProjectile parent class should be noted somewhere here. —Preceding unsigned comment added by Usernaem (talk • contribs) 09:16, 8 July 2009
- That's not the same speed. "Speed" is not in Doom a universal notion that means the same thing everywhere. The "speed" property for monsters behaves very differently from the same speed property for projectiles, and here the speed parameter for this function is not the same as the speed property of the projectiles either. Comparing numbers is meaningless because they're not applied in the same way at all. Empirically, a speed of 80 in that function results in projectiles that move fast enough to be believable. A speed of 20 (the amount many projectiles have as their property) results in something ridiculously slow.
- If you look at the page for Thing_Projectile, you'll notice that the speed is "in units per 8 tics" while if you look at the page for actor properties you'll notice that a projectile's speed is "in units per tics". In other words, a speed property of 60 for a projectile would correspond to an argument value of 480 here. The maximum effective speed that can be obtained with an argument is therefore about 32 (255/8=31.875). --Gez 11:59, 8 July 2009 (UTC)