Forts
Not enough ratings
Pilotable Planes Trajectory Preview
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
138.435 KB
23 Aug @ 7:21am
31 Aug @ 8:34am
2 Change Notes ( view )

Subscribe to download
Pilotable Planes Trajectory Preview

Description
Ballistic preview has been added to weapons for some Pilotable Planes
You can add ballistic preview to weapons of other planes. Here are the steps:

1. Add "3554467229" to the Include section in mod.lua.
2. Use the SetProjectileTrajectoryPreview(saveName, weaponIndex, TrajectoryPreview) function in projectile_list.lua.
- saveName: The save name of the projectile
- weaponIndex: Which weapon slot to add the ballistic preview to
- TrajectoryPreview: Specific parameters for the ballistic preview

How to write TrajectoryPreview:
{
step = 3, // Number of steps for ballistic preview
stepDist = 1, // Time interval per step for ballistic preview
color = Red(), // Color of the ballistic preview. You can copy color. lua file from this mod, or use a table like { r = 0, g = 255, b = 255, a = 255 } to represent the color
}

Note: step should not be set too high, and stepDist should not be set too low, as this may cause lag.
(In actual calculations, step will be multiplied by 5, and stepDist will be divided by 5.)

step must be an integer, while stepDist can be a floating-point number.