1 |
This sounds very fiddly and extremely inefficient.
|
1 |
This sounds very fiddly and extremely inefficient.
|
2 |
\n
|
2 |
\n
|
3 |
Gravity guns cannot "intercept" projectiles in the sense that you're thinking at least from an engine perspective. You could write a hack for this, but it would not be pretty. Essentially when a projectile is marked as intercepted in spring, it will be deleted. You do not want this for your funny impulse to projectiles gun. You would need to run the following calculations in one intercept loop:
|
3 |
Gravity guns cannot "intercept" projectiles in the sense that you're thinking at least from an engine perspective. You could write a hack for this, but it would not be pretty. Essentially when a projectile is marked as intercepted in spring, it will be deleted. You do not want this for your funny impulse to projectiles gun. You would need to run the following calculations in one intercept loop:
|
4 |
\n
|
4 |
\n
|
5 |
1.) Whether or not the projectile will hit (and splash) anything allied. (important otherwise it will be janky and players will get frustrated)
|
5 |
1.) Whether or not the projectile will hit (and splash) anything allied. (important otherwise it will be janky and players will get frustrated)
|
6 |
2.) The projectile's "mass" -- you'll need to implement a custom calculation to make this work.
|
6 |
2.) The projectile's "mass" -- you'll need to implement a custom calculation to make this work.
|
7 |
3.) The angle at which you're pushing the projectile.
|
7 |
3.) The angle at which you're pushing the projectile.
|
8 |
4.) How much strength you're inflicting onto the projectile.
|
8 |
4.) How much strength you're inflicting onto the projectile.
|
9 |
5.) The new fixed velocity using the angle in step 3 with the velocity impact of step 4 and applying it to the projectile.
|
9 |
5.) The new fixed velocity using the angle in step 3 with the velocity impact of step 4 and applying it to the projectile.
|
10 |
\n
|
10 |
\n
|
11 |
Then finally draw a fake "gravity laser".
|
11 |
Then finally draw a fake "gravity laser".
|
12 |
\n
|
12 |
\n
|
13 |
Complication:
ZK
grav
guns
are
not
beam
lasers!
|
13 |
Complication:
ZK
grav
guns
are
not
beam
lasers
and
there's
no
AllowProjectileInterception.
There's
allowing
a
unit
to
target
a
projectile
during
a
perodic
sweep,
but
nothing
else.
You'd
need
an
engine
FR
for
this
to
work,
most
likely.
|