G
Guest
Guest
Archived from groups: alt.games.vgaplanets4 (More info?)
As some people are talking about movement logic, I want to write down a few
thoughts, too.
First some assumtions:
1. Each captain of each starship (in future I´ll write only ships) will
always try to fire all his weapons on the enemy while trying to keep as far
away as he could to be in range for all of his weapons to avoid being hit by
the enemy (so Min weapon range of all ship weapons is the default. stand off
range )
2. The ships will always try stay in motion.
3. There´s no point black. Point black is ram and this is only useful if
having a much bigger ship.
The movement is determend by 2 mayor influences which both can be caclulated
seperatly and the results are combined by a third rule:
First rule:
The starship will always try to stay at stand off range (to one or more
enemies). This is the linear
distance between the ship and it´s enemy (it´s target). A distance greater
than stand off will result in movement towards the enemy and a distance
smaller than stand off range will result in movement away from the enemy.
Second rule:
The starships will move perpendicular to the line from it to the enemy (or
more enemy ships). Either to the left or right side (needs to be specified).
The disission for the side to move is random and will stay until theres a
change in the circumstances (meaning ship has reached stand off range and
then losses stand off range more than 10%).
The third rule:
Far away from the enemy rule 1 is of greater influence. Near stand off range
Rule 2 is of greater influence. The speed is adjusted to is current speed +
delta speed.
The path finding can also be the way that the starship try to keep
away from more enemies(swarm) (use middlevalue over all vector from
enemies wthin certain range).
Yust came to my mind. But I doubt it´s usefullness, as combat logic of
movement should not be changed. So don´t ask why I wrote this.
Greetings
Sebastian
As some people are talking about movement logic, I want to write down a few
thoughts, too.
First some assumtions:
1. Each captain of each starship (in future I´ll write only ships) will
always try to fire all his weapons on the enemy while trying to keep as far
away as he could to be in range for all of his weapons to avoid being hit by
the enemy (so Min weapon range of all ship weapons is the default. stand off
range )
2. The ships will always try stay in motion.
3. There´s no point black. Point black is ram and this is only useful if
having a much bigger ship.
The movement is determend by 2 mayor influences which both can be caclulated
seperatly and the results are combined by a third rule:
First rule:
The starship will always try to stay at stand off range (to one or more
enemies). This is the linear
distance between the ship and it´s enemy (it´s target). A distance greater
than stand off will result in movement towards the enemy and a distance
smaller than stand off range will result in movement away from the enemy.
Second rule:
The starships will move perpendicular to the line from it to the enemy (or
more enemy ships). Either to the left or right side (needs to be specified).
The disission for the side to move is random and will stay until theres a
change in the circumstances (meaning ship has reached stand off range and
then losses stand off range more than 10%).
The third rule:
Far away from the enemy rule 1 is of greater influence. Near stand off range
Rule 2 is of greater influence. The speed is adjusted to is current speed +
delta speed.
The path finding can also be the way that the starship try to keep
away from more enemies(swarm) (use middlevalue over all vector from
enemies wthin certain range).
Yust came to my mind. But I doubt it´s usefullness, as combat logic of
movement should not be changed. So don´t ask why I wrote this.
Greetings
Sebastian