136
Work In Progress / Help: make aliens melee consistently
« on: April 03, 2014, 12:42:19 am »
So I made this melee AI unit (alien).
I'd want it to go to the target and attack.
Stats for the unit and the weapon seem ok (see code further).
...
Well it just wanders around doing nothing. I had just a single attack against a civilian over several test battles.
Is there some trick to make it aggressive, like "just go straight to the target and attack"?
I'd want it to go to the target and attack.
Stats for the unit and the weapon seem ok (see code further).
...
Well it just wanders around doing nothing. I had just a single attack against a civilian over several test battles.
Is there some trick to make it aggressive, like "just go straight to the target and attack"?
Code: [Select]
items:
- type: CYBERMITE_WEAPON
weight: 3
bigSprite: -3
floorSprite: 31
handSprite: 104
hitSound: 54
clipSize: -1
power: 100
damageType: 7
accuracyMelee: 80
tuMelee: 15
battleType: 3
fixedWeapon: true
invWidth: 2
invHeight: 2
recover: false
units:
- type: STR_CYBERMITE_TERRORIST
race: STR_CYBERMITE
stats:
tu: 90
stamina: 120
health: 30
bravery: 110
reactions: 60
firing: 0
throwing: 0
strength: 20
psiStrength: 100
psiSkill: 0
melee: 80
armor: CYBERMITE_ARMOR
standHeight: 5
kneelHeight: 5
value: 25
deathSound: 23
intelligence: 3
aggression: 2
specab: 1
livingWeapon: true