Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

Vanilla default missile acceleration, start and max speed

$
0
0
I'm tuning a predicted interception point logic, and have issues with precise missile travel time calculation. Right now I'm using hardcoded value of 195, which works more-a-less well.

I've checked the sources recently, and found this:

Code:
if (ammoDefinition.AmmoType == MyAmmoType.Missile)
	{
		//missiles are accelerating, shotSpeed is reached later
		var mDef = (Sandbox.Definitions.MyMissileAmmoDefinition)ammoDefinition;
		if (mDef.MissileInitialSpeed == 100f &&...
Vanilla default missile acceleration, start and max speed

Viewing all articles
Browse latest Browse all 645

Trending Articles