Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/spawnattack at enemy #22

Merged
merged 2 commits into from Jul 28, 2014

Conversation

Copy link
Contributor

@titison titison commented Jul 27, 2014

  1. Added the ability for SpawnAttacks to let the units spawn when the projectile arrives at the targetpos.
  2. Added a bool spawnAtTarget to spawn attack in which you can define whether the unit spawns at the target or at the attacker.

In Addition i changed the command which is given to the spawned unit to an attack command on the target cell. Unit will always try to attack if it has an attack command.
( I think this makes way more sense than giving a move command to the meeting point)
( This also works if the spawned does not have a attack command. It will move to the enemy then)

so the "new" syntax is <unit value="warrior" amount="10" spawnAtTarget="true" />
if you want to let the unit spawn if the projectile arrives you need to use titi's new projectile syntax and add the unit node to it
Example:

            <projectiles>
                <projectile attack-start-time="0.25" damage-percentage="100">
                    <particle value="true" path="particle_proj.xml"/>
                    <hitsound enabled="false">
                        <sound-file path="$COMMONDATAPATH/sounds/archmage_hit.wav"/>
                    </hitsound>
                    <unit value="warrior" amount="10" spawnAtTarget="true" />
                </projectile>
            </projectiles>

Ask me if you have any questions

titison added 2 commits Jul 27, 2014
…ether the unit spawns at the target or at the attacker.

In Addition i changed the command which is given to the spawned unit to an attack command on the target cell.
( I think this makes way more sense than giving a move command to the meeting point)
( This also works if the spawned does not have a attack command. It will move to the enemy then)
…ojectile arrives at the targetpos.

Unit will always try to attack if it has an attack command.
Unit attacks the target POS and not the target UNIT of the attacker.
titiger added a commit that referenced this issue Jul 28, 2014
@titiger titiger merged commit c2dcda0 into MegaGlest:develop Jul 28, 2014
1 check passed
KatrinaHoffert pushed a commit to KatrinaHoffert/megaglest-source that referenced this issue Feb 5, 2017
KatrinaHoffert pushed a commit to KatrinaHoffert/megaglest-source that referenced this issue Feb 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants